osc_lib.command.command
Module¶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>¶Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.