idmtools.entities.command_line module¶
-
class
idmtools.entities.command_line.
CommandLine
(executable=None, *args, is_windows: bool = False, raw_args: List[Any] = None, **kwargs)¶ Bases:
object
A class to construct command line strings from executable, options, and params
-
is_windows
: bool = False¶ Is this a command line for a windows system
-
property
executable
¶
-
add_argument
(arg)¶
-
add_raw_argument
(arg)¶ Add an argument that won’t be quote on format
- Parameters
arg – arg
Returns:
-
add_option
(option, value)¶
-
property
options
¶
-
property
arguments
¶
-
property
raw_arguments
¶
-
property
cmd
¶
-
static
from_string
(command: str, as_raw_args: bool = False) → idmtools.entities.command_line.CommandLine¶ Creates a command line object from string
- Parameters
command – Command
as_raw_args – When set to true, arguments will preserve the quoting provided
- Returns
CommandLine object from string
-