osc_lib.command package¶
Submodules¶
osc_lib.command.command module¶
- class osc_lib.command.command.Command(app: _app.App, app_args: Namespace | None, cmd_name: str | None = None)¶
Bases:
Command
- deprecated_option_warning(old_option, new_option)¶
Emit a warning for use of a deprecated option
- log = <Logger osc_lib.command.command.Command (WARNING)>¶
- run(parsed_args)¶
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.
- validate_os_beta_command_enabled()¶
- class osc_lib.command.command.CommandMeta(name, bases, cls_dict)¶
Bases:
ABCMeta
osc_lib.command.commandmanager module¶
- class osc_lib.command.commandmanager.CommandManager(namespace: str, convert_underscores: bool = True)¶
Bases:
CommandManager
Noop subclass for transition purposes.
osc_lib.command.timing module¶
Timing Implementation
- class osc_lib.command.timing.Timing(app: App, app_args: Namespace | None, cmd_name: str | None = None)¶
Bases:
Lister
Show timing data
- app_dist_name: ty.Optional[str]¶
- log = <Logger osc_lib.command.timing.Timing (WARNING)>¶
- take_action(parsed_args)¶
Run command.
Return a tuple containing the column names and an iterable containing the data to be listed.