watcherclient.common.command module¶
- class watcherclient.common.command.Command(app, app_args, cmd_name=None)[source]¶
Bases:
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
andShowOne
) should override this method to wraptake_action()
.Return the value returned by
take_action()
or 0.