9.2.5. CLI Functions¶
Provide functions for CLI parser.
- junifer.cli.parser.parse_elements(element, config)¶
Parse elements from cli.
- Parameters:
- Returns:
- Raises:
ValueErrorIf no element is found either in the command-line options or the configuration file.
- Warns:
RuntimeWarningIf elements are specified both via the command-line options and the configuration file.
- junifer.cli.parser.parse_yaml(filepath)¶
Parse YAML.
- Parameters:
- filepath
strorpathlib.Path The filepath to read from.
- filepath
- Returns:
dictThe contents represented as dictionary.