journal_manager.cli.commands.template_commands.show module
- journal_manager.cli.commands.template_commands.show.show(template_name: str, attribute_names: List[str])[source]
Get attribute data from a registered template.
- Parameters:
template_name (str) – The template name.
attribute_names (optional) – List of attribute names which values one wants to show.
- Returns:
The attribute value if a single attribute was requested. For two or more attributes, several strings are returned. One for line requested attribute. The string has the format “attribute_name: attribute_value”.
- Raises:
InvalidName if the template name is invalid. –
InvalidAttribute if an attribute name is invalid. –