shell_command
ShellCommand
¶
Bases: BaseModel
Representation of a shell command.
Attributes:
Name | Type | Description |
---|---|---|
prog |
str
|
... |
options |
dict[str, str | list[str] | bool]
|
... |
positional |
list[str]
|
... |
Source code in m/ci/docker/shell_command.py
__str__()
¶
Render the command as a string.
A new line is not added to the end of the string in case the command needs to be piped to another command.
Returns:
Type | Description |
---|---|
str
|
A string representation of the command. |