diff --git a/jc/parsers/env.py b/jc/parsers/env.py index bcfb176d..3bac5f2a 100644 --- a/jc/parsers/env.py +++ b/jc/parsers/env.py @@ -1,4 +1,4 @@ -"""jc - JSON CLI output utility `env` command output parser +"""jc - JSON CLI output utility `env` and `printenv` command output parser This parser will output a list of dictionaries each containing `name` and `value` keys. If you would like a simple dictionary output, then use the `-r` command-line option or the `raw=True` argument in the `parse()` function. @@ -70,7 +70,7 @@ class info(): # compatible options: linux, darwin, cygwin, win32, aix, freebsd compatible = ['linux', 'darwin', 'cygwin', 'win32', 'aix', 'freebsd'] - magic_commands = ['env'] + magic_commands = ['env', 'printenv'] __version__ = info.version