Specific command output wrappers.
Modules:
Classes:
Functions:
Attributes:
OnlyWithCommand
OnlyWithCommand(*commands: str | list[str])
Methods:
Attributes:
all_cmds instance-attribute
all_cmds: list[str] = [
cmd[0] if isinstance(cmd, list) else cmd for cmd in commands
]
cmd instance-attribute
cmd: list[str] = command if isinstance(command, list) else [command]
cmd_path instance-attribute
cmd_path: str | None = which(cmd[0])
__call__
__call__(function: Callable[P, T]) -> Callable[P, T | None]
call_cmd
call_cmd(cmd: str | list[str]) -> str