stuffer.shell module

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

Bases: stuffer.core.Action

Run an arbitrary shell command.

command
Command to execute. It will be interpreted by the shell, so pipes, redirects, etc are allowed.
command()[source]

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..