watcherclient.common.command module

class watcherclient.common.command.Command(app, app_args, cmd_name=None)[source]

Bases: cliff.command.Command

log = <Logger watcherclient.common.command.Command (WARNING)>
run(parsed_args)[source]

Invoked by the application when the command is run.

Developers implementing commands should override take_action().

Developers creating new command base classes (such as Lister and ShowOne) should override this method to wrap take_action().

Return the value returned by take_action() or 0.

class watcherclient.common.command.CommandMeta[source]

Bases: abc.ABCMeta

class watcherclient.common.command.Lister(app, app_args, cmd_name=None)[source]

Bases: watcherclient.common.command.Command, cliff.lister.Lister

log = <Logger watcherclient.common.command.Lister (WARNING)>
class watcherclient.common.command.ShowOne(app, app_args, cmd_name=None)[source]

Bases: watcherclient.common.command.Command, cliff.show.ShowOne

get_parser(prog_name, formatter_class=None)[source]

Return an argparse.ArgumentParser.

log = <Logger watcherclient.common.command.ShowOne (WARNING)>