types
CliCommands
dataclass
¶
Container to store the commands and subcommands for the cli.
Source code in m/cli/engine/types.py
CliSubcommands
dataclass
¶
Container to store subcommands.
Source code in m/cli/engine/types.py
CommandInputs
dataclass
¶
CommandModule
dataclass
¶
FuncArgs
dataclass
¶
MetaModule
dataclass
¶
Container to store a metadata dictionary from a "meta" module.
Source code in m/cli/engine/types.py
add_arg(*args, **kwargs)
¶
Wrap FuncArgs arguments in a function.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
args |
Any
|
The arguments to argparse add_arguments. |
()
|
kwargs |
Any
|
The keyword arguments to argparse add arguments. |
{}
|
Returns:
Type | Description |
---|---|
FuncArgs
|
A FuncArgs instance. |