juju_verify.cli module¶
Entrypoint to the ‘juju-verify’ plugin.
- class juju_verify.cli.ExtendAction(option_strings, dest, nargs=None, const=None, default=None, type=None, choices=None, required=False, help=None, metavar=None)¶
Bases:
ActionExtend action for argparse.
- NOTE (rgildein): This action should be removed after python 3.6 support ends, because
since Python 3.8 the “extend” is available directly in stdlib.
- juju_verify.cli.config_logger(log_level: str) None¶
Configure logging options.
- async juju_verify.cli.connect_model(model_name: Optional[str]) Model¶
Connect to a custom or default Juju model.
The Juju model can be identified by ‘model_name’ or the currently active model will be used if left unspecified.
- juju_verify.cli.entrypoint() None¶
Execute ‘juju-verify’ command.
- juju_verify.cli.parse_args() Namespace¶
Parse cli arguments.
- juju_verify.cli.parse_charm_mapping(charm_map: str = '') Tuple[str, str]¶
Parse value of –map-charm argument into a tuple (app_name, charm_name).
Expected input format of mapping is two colon separated strings.
- Parameters:
charm_map – Colon separated pair <APP_NAME>:<CHARM_NAME>.
- Returns:
Input value parsed into tuple (app_name, charm_name)