ironicclient.shell module

class ironicclient.shell.App[source]

Bases: cliff.app.App

build_option_parser(description, version, argparse_kwargs=None)[source]

Return an argparse option parser for this application.

Subclasses may override this method to extend the parser with more global options.

Parameters
  • description (str) – full description of the application

  • version (str) – version number for the application

  • argparse_kwargs – extra keyword argument passed to the ArgumentParser constructor

initialize_app(argv)[source]

Hook for subclasses to take global initialization action after the arguments are parsed but before a command is run. Invoked only once, even in interactive mode.

Parameters

argv – List of arguments, including the subcommand to run. Empty for interactive mode.

class ironicclient.shell.ClientManager(cloud_region, options)[source]

Bases: object

property baremetal
property baremetal_introspection
class ironicclient.shell.CommandManager(namespace, convert_underscores=True)[source]

Bases: cliff.commandmanager.CommandManager

load_commands(namespace)[source]

Load all the commands from an entrypoint

ironicclient.shell.main(argv=['-W', '-b', 'html', 'doc/source', 'doc/build/html'])[source]