Skip to content
Snippets Groups Projects
Commit c63487f8 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

ENH: New FileTree method, just a convenience to get all short names

parent 7fd39ba4
No related branches found
No related tags found
No related merge requests found
......@@ -58,6 +58,11 @@ class FileTree(object):
res.update(self.variables)
return res
@property
def short_names(self) -> List[str]:
"""Returns a list containing all short names in the file tree. """
return list(self.templates.keys())
def get_variable(self, name: str, default=None) -> str:
"""
Gets a variable used to fill out the template
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment