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
= <logging.Logger object>¶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
()¶osc_lib.command.command.
CommandMeta
¶Bases: abc.ABCMeta
osc_lib.command.command.
Lister
(app, app_args, cmd_name=None)¶Bases: osc_lib.command.command.Command
, cliff.lister.Lister
log
= <logging.Logger object>¶osc_lib.command.command.
ShowOne
(app, app_args, cmd_name=None)¶Bases: osc_lib.command.command.Command
, cliff.show.ShowOne
log
= <logging.Logger object>¶Modify cliff.CommandManager
osc_lib.command.commandmanager.
CommandManager
(namespace, convert_underscores=True)¶Bases: cliff.commandmanager.CommandManager
Add additional functionality to cliff.CommandManager
Load additional command groups after initialization Add _command_group() methods
add_command_group
(group=None)¶Adds another group of command entrypoints
get_command_groups
()¶Returns a list of the loaded command groups
get_command_names
(group=None)¶Returns a list of commands loaded for the specified group
load_commands
(namespace)¶Load all the commands from an entrypoint
Timing Implementation
osc_lib.command.timing.
Timing
(app, app_args, cmd_name=None)¶Bases: osc_lib.command.command.Lister
Show timing data
log
= <logging.Logger object>¶take_action
(parsed_args)¶Return a tuple containing the column names and an iterable containing the data to be listed.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.