API¶
CLI and Plugins¶
|
Main class for the command line interface |
Abstract object for CLI plugins |
|
|
File-based plugins (quick and dirty) |
Load namespace plugins (plugins for wide distribution) |
Parameter Decorators¶
These are the functions used to create the reusable parameter decorators. Note that you will probably never need to use these; instead, use the existing parameter decorators.
|
Wrapper for click.option decorators |
|
Wrapper for click.argument decorators |
|
Abstract object for getting relevant OPS object from the CLI. |
|
Open an OPS storage file |
|
Simple loader that expects its input to be a name or index. |
|
Objects that expect to load a single object. |
Search strategies¶
These are the various strategies for finding objects in a storage, in particular if we have to guess because the user didn’t provide an explicit choice or didn’t tag.
|
Abstract strategy for getting things from storage |
|
Strategy using the CLI input as name for a stored item |
|
Strategy using the CLI input as numeric index of the stored item |
|
Strategy predefining name and store, allow default names |
|
Strategy getting item from store if it is the only one |
|
Strategy selecting item from store if it is the only named item |
|
Strategy selecting only snapshot from a snapshot store |