1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-19 00:17:51 +02:00

move verbose_debug enable earlier in code to catch more issues. add sysctl and version bump

This commit is contained in:
Kelly Brazil
2020-07-08 15:41:46 -07:00
parent d789494cb1
commit aea41ed341

View File

@ -20,7 +20,7 @@ import jc.appdirs as appdirs
class info(): class info():
version = '1.11.8' version = '1.12.0'
description = 'jc cli output JSON conversion tool' description = 'jc cli output JSON conversion tool'
author = 'Kelly Brazil' author = 'Kelly Brazil'
author_email = 'kellyjonbrazil@gmail.com' author_email = 'kellyjonbrazil@gmail.com'
@ -69,6 +69,7 @@ parsers = [
'shadow', 'shadow',
'ss', 'ss',
'stat', 'stat',
'sysctl',
'systemctl', 'systemctl',
'systemctl-lj', 'systemctl-lj',
'systemctl-ls', 'systemctl-ls',
@ -374,6 +375,10 @@ def main():
quiet = 'q' in options quiet = 'q' in options
raw = 'r' in options raw = 'r' in options
if verbose_debug:
import jc.tracebackplus
jc.tracebackplus.enable(context=11)
if 'a' in options: if 'a' in options:
json_out(about_jc(), pretty=pretty, mono=mono, piped_out=piped_output()) json_out(about_jc(), pretty=pretty, mono=mono, piped_out=piped_output())
sys.exit(0) sys.exit(0)
@ -399,10 +404,6 @@ def main():
except Exception: except Exception:
if debug: if debug:
if verbose_debug:
import jc.tracebackplus
jc.tracebackplus.enable(context=11)
raise raise
else: else: