SCAutolib.cli_commands

Implementation of CLI commands for SCAutolib.

Functions

check_conf_path(conf)[source]
run_all(ctx, actions, install_missing)[source]

Run all cli actions in order

Classes

class NaturalOrderGroup(name=None, commands=None, **attrs)[source]

Command group trying to list subcommands in the order they were added. Example use:

@click.group(cls=NaturalOrderGroup)

If passing dict of commands from other sources, ensure they are of type OrderedDict and properly ordered, otherwise order of them will be random and newly added will come to the end.

list_commands(ctx)[source]

List command names as they are in commands dict.

If the dict is OrderedDict, it will preserve the order commands were added.