From d551b90050f44c6f5c1f7178b30a84ac34da2011 Mon Sep 17 00:00:00 2001 From: Matt Hamilton Date: Tue, 6 Sep 2016 13:04:58 -0700 Subject: [PATCH] [meta] add zim_debug tool Closes #51 --- modules/meta/README.md | 2 ++ modules/meta/functions/zmanage | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/meta/README.md b/modules/meta/README.md index 3357a2f..32e4675 100644 --- a/modules/meta/README.md +++ b/modules/meta/README.md @@ -17,3 +17,5 @@ Usage | build-cache | Rebuild the zim cache | | remove | *experimental* Remove zim as best we can | | reset | Reset zim to the latest commit | +| help | Print this usage message | +| debug | Invokes the trace-zim script which produces logs | diff --git a/modules/meta/functions/zmanage b/modules/meta/functions/zmanage index 7b491a5..07ab20f 100644 --- a/modules/meta/functions/zmanage +++ b/modules/meta/functions/zmanage @@ -7,7 +7,8 @@ Actions: | build-cache | Rebuild the zim cache | | remove | *experimental* Remove zim as best we can | | reset | Reset zim to the latest commit | - | help | Print this usage message |" + | help | Print this usage message | + | debug | Invokes the trace-zim script which produces logs |" if (( ${#} != 1 )); then print ${usage} @@ -32,6 +33,8 @@ case ${1} in ;; reset) zsh ${tools}/zim_reset ;; + debug) zsh ${ZIM}/modules/debug/functions/trace-zim + ;; *) print ${usage} ;; esac