Source code for stuffer.shell

from stuffer.content import StringArg
from stuffer.core import Action


[docs]class ShellCommand(Action): """Run an arbitrary shell command. Parameters ---------- command Command to execute. It will be interpreted by the shell, so pipes, redirects, etc are allowed. """ def __init__(self, command: StringArg): self._command = command super().__init__()
[docs] def command(self): return self._command