diff options
-rw-r--r-- | python/refcat/cli.py | 2 | ||||
-rw-r--r-- | python/refcat/deps.py | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/python/refcat/cli.py b/python/refcat/cli.py index ced85f0..5d5f85f 100644 --- a/python/refcat/cli.py +++ b/python/refcat/cli.py @@ -155,6 +155,7 @@ def deps(): except TaskClassNotFoundException as exc: print("no such task") + def dot(): """ Render task dependencies as dot. @@ -168,6 +169,7 @@ def dot(): except TaskClassNotFoundException as exc: print("no such task") + def config(): """ Dump config to stdout. diff --git a/python/refcat/deps.py b/python/refcat/deps.py index de76eba..4150eaf 100644 --- a/python/refcat/deps.py +++ b/python/refcat/deps.py @@ -14,6 +14,7 @@ def dump_deps(task=None, indent=0): for dep in g[task]: dump_deps(task=dep, indent=indent + 1) + def dump_deps_dot(task=None): if task is None: return @@ -25,6 +26,7 @@ def dump_deps_dot(task=None): print(""" "{}" -> "{}"; """.format(k, v)) print("}") + def build_dep_graph(task=None): """ Return the task graph as dict mapping nodes to children. |