watcherclient.common.command module¶
- class watcherclient.common.command.Command(app: _app.App, app_args: Namespace | None, cmd_name: str | None = 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 - Listerand- ShowOne) should override this method to wrap- take_action().- Return the value returned by - take_action()or 0.
 
- class watcherclient.common.command.Lister(app: App, app_args: Namespace | None, cmd_name: str | None = None)[source]¶
- Bases: - Command,- Lister- app_dist_name: str | None¶
 - log = <Logger watcherclient.common.command.Lister (WARNING)>¶
 
