The designateclient.shell Module
updated: 2018-08-29 17:44
-
class
designateclient.shell.DesignateShell[source]
Bases: cliff.app.App
-
CONSOLE_MESSAGE_FORMAT = '%(levelname)s: %(message)s'
-
DEFAULT_VERBOSE_LEVEL = 0
-
build_option_parser(description, version)[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
|
-
configure_logging()[source]
Configure logging for the app
Cliff sets some defaults we don’t want so re-work it a bit
-
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. |
-
run(argv)[source]
Equivalent to the main program for the application.
| Parameters: | argv (list of str) – input arguments and options |
-
designateclient.shell.env(*vars, **kwargs)[source]
Search for the first defined of possibly many env vars
Returns the first environment variable defined in vars, or
returns the default defined in kwargs.
updated: 2018-08-29 17:44