From aea41ed341c8d53cc07c35e8044e8f816ddd2fed Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Wed, 8 Jul 2020 15:41:46 -0700 Subject: [PATCH] move verbose_debug enable earlier in code to catch more issues. add sysctl and version bump --- jc/cli.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/jc/cli.py b/jc/cli.py index 7a42fb47..01fe9a94 100644 --- a/jc/cli.py +++ b/jc/cli.py @@ -20,7 +20,7 @@ import jc.appdirs as appdirs class info(): - version = '1.11.8' + version = '1.12.0' description = 'jc cli output JSON conversion tool' author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' @@ -69,6 +69,7 @@ parsers = [ 'shadow', 'ss', 'stat', + 'sysctl', 'systemctl', 'systemctl-lj', 'systemctl-ls', @@ -374,6 +375,10 @@ def main(): quiet = 'q' in options raw = 'r' in options + if verbose_debug: + import jc.tracebackplus + jc.tracebackplus.enable(context=11) + if 'a' in options: json_out(about_jc(), pretty=pretty, mono=mono, piped_out=piped_output()) sys.exit(0) @@ -399,10 +404,6 @@ def main(): except Exception: if debug: - if verbose_debug: - import jc.tracebackplus - jc.tracebackplus.enable(context=11) - raise else: