oio.cli package
Subpackages
Submodules
oio.cli.clientmanager module
-
class
oio.cli.clientmanager.
ClientManager
(*args, **kwargs)[source]
Module contents
-
class
oio.cli.
Command
(app, app_args, cmd_name=None)[source] Bases:
cliff.command.Command
-
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
Lister
andShowOne
) should override this method to wraptake_action()
.Return the value returned by
take_action()
or 0.
-
success
= True
-
-
class
oio.cli.
Lister
(app, app_args, cmd_name=None)[source] Bases:
cliff.lister.Lister
-
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
Lister
andShowOne
) should override this method to wraptake_action()
.Return the value returned by
take_action()
or 0.
-
success
= True
-
-
class
oio.cli.
ShowOne
(app, app_args, cmd_name=None)[source] Bases:
cliff.show.ShowOne
-
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
Lister
andShowOne
) should override this method to wraptake_action()
.Return the value returned by
take_action()
or 0.
-
success
= True
-
-
oio.cli.
get_logger_from_args
(args, default_conf=None)[source] Build a Logger instance from parsed args.
-
oio.cli.
make_logger_args_parser
()[source] Create an ArgumentParser for logger configuration.