Arksine
2e44766e1e
shell_command: check the return code of the proc for success
...
Add a "get_return_code" method that allows users to fetch the return code after the shell command has executed.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-11-29 12:12:58 -05:00
Arksine
8678e25427
shell_command: return False if an exception is raised
...
Signed-off- by: Eric Callahan <arksine.code@gmail.com>
2020-11-29 06:36:34 -05:00
Arksine
093b8c14d6
shell_command: refactor output parsing
...
Separate output by line, and execute the output callback once per line.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-11-23 06:22:56 -05:00
Arksine
116c1e9f29
shell_command: add run_with_response() method
...
This method collects the entire response and returns it with the call. Suitable for commands that produce little output.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-11-23 06:22:56 -05:00
Arksine
6905515f3d
shell_command: add ability to cancel a running process
...
Also adds an indefinite timeout if the timeout is specified as "None".
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-09-26 06:14:35 -04:00
Arksine
7cd22804dd
moonraker: replace legacy string interpolation with f-strings
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-11 14:28:41 -04:00
Arksine
470cc13b0e
shell_command: Add configparser support
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-11 08:38:28 -04:00
Arksine
1baa85d109
shell_command: Fix logging
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-07-14 07:22:19 -04:00
Arksine
d1c740b900
moonraker: add initial source
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-07-02 12:24:15 -04:00