osc_lib.command package

Submodules

osc_lib.command.command module

class osc_lib.command.command.Command(app, app_args, cmd_name=None)

Bases: cliff.command.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 and ShowOne) should override this method to wrap take_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: abc.ABCMeta

class osc_lib.command.command.Lister(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command, cliff.lister.Lister

log = <Logger osc_lib.command.command.Lister (WARNING)>
class osc_lib.command.command.ShowOne(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command, cliff.show.ShowOne

log = <Logger osc_lib.command.command.ShowOne (WARNING)>

osc_lib.command.commandmanager module

class osc_lib.command.commandmanager.CommandManager(namespace, convert_underscores=True)

Bases: cliff.commandmanager.CommandManager

Noop subclass for transition purposes.

osc_lib.command.timing module

Timing Implementation

class osc_lib.command.timing.Timing(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Lister

Show timing data

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.

Module contents