Mercurial > libervia-backend
comparison sat/tools/common/async_process.py @ 3368:e86b71b1aa31
core: minor typos, docstring/comments update
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 20 Sep 2020 14:05:40 +0200 |
parents | be5fffe34987 |
children | be6d91572633 |
comparison
equal
deleted
inserted
replaced
3367:90aee1f2d07c | 3368:e86b71b1aa31 |
---|---|
97 @classmethod | 97 @classmethod |
98 def run(cls, *args, **kwargs): | 98 def run(cls, *args, **kwargs): |
99 """Create a new CommandProtocol and execute the given command. | 99 """Create a new CommandProtocol and execute the given command. |
100 | 100 |
101 @param *args(unicode): command arguments | 101 @param *args(unicode): command arguments |
102 if cls.command is specified, it will be the path to the command to execture | 102 if cls.command is specified, it will be the path to the command to execute |
103 otherwise, first argument must be the path | 103 otherwise, first argument must be the path |
104 @param **kwargs: can be: | 104 @param **kwargs: can be: |
105 - stdin(unicode, None): data to push to standard input | 105 - stdin(unicode, None): data to push to standard input |
106 - verbose(bool): if True stdout and stderr will be logged | 106 - verbose(bool): if True stdout and stderr will be logged |
107 other keyword arguments will be used in reactor.spawnProcess | 107 other keyword arguments will be used in reactor.spawnProcess |