osprofiler.cmd package

Submodules

osprofiler.cmd.cliutils module

osprofiler.cmd.cliutils.add_arg(func, *args, **kwargs)[source]

Bind CLI arguments to a shell.py do_foo function.

osprofiler.cmd.cliutils.arg(*args, **kwargs)[source]

Decorator for CLI args.

Example:

>>> @arg("name", help="Name of the new entity")
    ... def entity_create(args):
    ... pass
osprofiler.cmd.cliutils.env(*args, **kwargs)[source]

Returns the first environment variable set.

If all are empty, defaults to ‘’ or keyword arg default.

osprofiler.cmd.commands module

osprofiler.cmd.shell module

Module contents