From c2b2e81a2be3f2354b3836c1f24d376aa7cdf1a7 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Thu, 4 Jan 2024 10:40:06 -0800 Subject: [PATCH] add more slurpable parsers --- jc/parsers/id.py | 2 +- jc/parsers/os_prober.py | 4 ++-- jc/parsers/uname.py | 4 ++-- jc/parsers/uptime.py | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/jc/parsers/id.py b/jc/parsers/id.py index fffff37d..e44145ac 100644 --- a/jc/parsers/id.py +++ b/jc/parsers/id.py @@ -112,7 +112,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'aix', 'freebsd'] magic_commands = ['id'] - tags = ['command'] + tags = ['command', 'slurpable'] __version__ = info.version diff --git a/jc/parsers/os_prober.py b/jc/parsers/os_prober.py index 7712b0e2..94de1f5f 100644 --- a/jc/parsers/os_prober.py +++ b/jc/parsers/os_prober.py @@ -42,13 +42,13 @@ import jc.utils class info(): """Provides parser metadata (version, author, etc.)""" - version = '1.1' + version = '1.2' description = '`os-prober` command parser' author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] magic_commands = ['os-prober'] - tags = ['command'] + tags = ['command', 'slurpable'] __version__ = info.version diff --git a/jc/parsers/uname.py b/jc/parsers/uname.py index 5997d86d..fb4304af 100644 --- a/jc/parsers/uname.py +++ b/jc/parsers/uname.py @@ -48,13 +48,13 @@ from jc.exceptions import ParseError class info(): """Provides parser metadata (version, author, etc.)""" - version = '1.7' + version = '1.8' description = '`uname -a` command parser' author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'freebsd'] magic_commands = ['uname'] - tags = ['command'] + tags = ['command', 'slurpable'] __version__ = info.version diff --git a/jc/parsers/uptime.py b/jc/parsers/uptime.py index 3ecd7fb5..de4e7b5e 100644 --- a/jc/parsers/uptime.py +++ b/jc/parsers/uptime.py @@ -65,13 +65,13 @@ import jc.utils class info(): """Provides parser metadata (version, author, etc.)""" - version = '1.7' + version = '1.8' description = '`uptime` command parser' author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'cygwin', 'aix', 'freebsd'] magic_commands = ['uptime'] - tags = ['command'] + tags = ['command', 'slurpable'] __version__ = info.version