ramble.cmd.common package
- ramble.cmd.common.shell_init_instructions(cmd, equivalent)[source]
Print out instructions for users to initialize shell support.
Submodules
ramble.cmd.common.arguments module
- ramble.cmd.common.arguments.add_common_arguments(parser, list_of_arguments)[source]
Extend a parser with extra arguments
- Parameters:
parser – parser to be extended
list_of_arguments – arguments to be added to the parser
- ramble.cmd.common.arguments.allows_unknown_args(command)[source]
Implements really simple argument injection for unknown arguments.
Commands may add an optional argument called “unknown args” to indicate they can handle unknown args. This checks that the command allows unknown_args as an input argument.
ramble.cmd.common.info module
- ramble.cmd.common.info.all_object_attributes(obj)[source]
Return a list of all attributes on the object
Determine which of the available attributes a given object has (and has definitions in) and return a list of such attributes.
- Returns:
List of all attributes the object contains
- Return type:
(list)
- ramble.cmd.common.info.print_all_attributes(obj, verbose=False, pattern='*', format=supported_formats.text)[source]
Print every attribute on an object
Iterate over all attributes for a given object, and print each one individually.
- ramble.cmd.common.info.print_attribute_header(attr, verbose=False)[source]
Print the attribute header
The attribute header is a separator between different attributes in the output.
- ramble.cmd.common.info.print_object_overview(obj)[source]
Print object overview
Print the available attributes within a given object.
ramble.cmd.common.list module
- ramble.cmd.common.list.html(obj_names, out, object_type)[source]
Print out information on all objects in Sphinx HTML.
This is intended to be inlined directly into Sphinx documentation. We write HTML instead of RST for speed; generating RST from all objects causes the Sphinx build to take forever. Including this as raw HTML is much faster.