There are additional class options and functions you can specify in the task definition class, based on which runner is used.
Command
shell (bool, default: False): Run subprocess.Popen with shell=True (dangerous !).
shell
bool
default: False
subprocess.Popen
shell=True
cwd (str, default: None): Command current working directory.
cwd
str
default: None
encoding (dict, default: utf-8): Output encoding.
encoding
dict
default: utf-8
opt_prefix (str, default: -): Change the prefix used to specify command options.
opt_prefix
default: -
version_flag (str, default: None): The version flag. Defaults to {opt_prefix}version.
version_flag
{opt_prefix}version
ignore_return_code (bool, default: False): Ignore the command return code (useful if your command has non-standard return codes).
ignore_return_code
Last updated 1 year ago