mach.commands package
Submodules
mach.commands.commandinfo module
- class mach.commands.commandinfo.CommandInfo(name: str, description: str, subcommands: list, options: dict, subcommand: str = None)
Bases:
object
- mach.commands.commandinfo.command_handlers(command_context)
A dictionary of command handlers keyed by command name.
- mach.commands.commandinfo.commands(command_context)
A sorted list of all command names.
- mach.commands.commandinfo.commands_info(command_context)
Return a list of CommandInfo objects for each command.
- mach.commands.commandinfo.completion_bash(command_context, outfile)
- mach.commands.commandinfo.completion_fish(command_context, outfile)
- mach.commands.commandinfo.completion_zsh(command_context, outfile)
- mach.commands.commandinfo.global_options(command_context)
Return a dict of global options.
Of the form {(“-o”, “–option”): “description”}.
- mach.commands.commandinfo.render_template(shell, context)
- mach.commands.commandinfo.run_commands(command_context)
- mach.commands.commandinfo.run_completion(command_context, args)
- mach.commands.commandinfo.run_debug_commands(command_context, match=None)
mach.commands.settings module
- mach.commands.settings.run_settings(command_context, short=None)
List available settings.