openstackclient.shell module
Command-line interface to the OpenStack APIs
-
class openstackclient.shell.OpenStackShell
Bases: cliff.app.App
-
CONSOLE_MESSAGE_FORMAT = '%(levelname)s: %(name)s %(message)s'
-
build_option_parser(description, version)
-
clean_up(cmd, result, err)
-
configure_logging()
Configure logging for the app
Cliff sets some defaults we don’t want so re-work it a bit
-
initialize_app(argv)
Global app init bits:
- set up API versions
- validate authentication info
- authenticate against Identity if requested
-
log = <logging.Logger object at 0x7fb2d402d950>
-
prepare_to_run_command(cmd)
Set up auth and API versions
-
run(argv)
-
timing_data = []
-
openstackclient.shell.main(argv=['-b', 'html', 'doc/source', '/home/zigo/sources/openstack/kilo/python-openstackclient/build-area/python-openstackclient-1.0.3/debian/python-openstackclient/usr/share/doc/python-openstackclient/html'])
-
openstackclient.shell.prompt_for_password(prompt=None)
Prompt user for a password
Propmpt for a password if stdin is a tty.