stuffer.system module

class stuffer.system.ShellCommand(command: Union[str, stuffer.content.DeferStr])[source]

Bases: stuffer.core.Action

Run an arbitrary shell command.

Command to execute. It will be interpreted by the shell, so pipes, redirects, etc are allowed.

Shell command to run. Override this or run().

Should either return a list of strings to pass to subprocess.check_output, or a string, in which case shell=True will be passed with subprocess.check_output..