bsb.cli.commands package#
Module contents#
Contains all of the logic required to create commands. It should always suffice to import just this module for a user to create their own commands.
Inherit from BaseCommand
for regular CLI style commands, or from
BsbCommand
if you want more freedom in what exactly constitutes a command to the
BSB.
- class bsb.cli.commands.BaseCommand[source]#
Bases:
BsbCommand
- class bsb.cli.commands.BaseParser(prog=None, usage=None, description=None, epilog=None, parents=[], formatter_class=<class 'argparse.HelpFormatter'>, prefix_chars='-', fromfile_prefix_chars=None, argument_default=None, conflict_handler='error', add_help=True, allow_abbrev=True, exit_on_error=True)[source]#
Bases:
ArgumentParser
Inherits from argparse.ArgumentParser and overloads the
error
method so that when an error occurs, instead of exiting and exception is thrown.
- class bsb.cli.commands.RootCommand[source]#
Bases:
BaseCommand
- name = 'bsb'#