Commit c63487f8 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

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

parent 7fd39ba4
......@@ -58,6 +58,11 @@ class FileTree(object):
return res
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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment