diff --git a/CHANGELOG b/CHANGELOG index c8c8bcf8..12971cdd 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,8 +1,10 @@ jc changelog -20221223 v1.23.4 +20221227 v1.23.4 - Add `iwconfig` command parser - Fix `proc` parser magic signature detection for `/proc/pid/stat` hacks +- Add category tags to parser metadata +- Add "list parsers by category" view to help - Fix python 3.6-related issues - Add python 3.6 to automated tests diff --git a/jc/cli.py b/jc/cli.py index 8525f6dd..c00aec29 100644 --- a/jc/cli.py +++ b/jc/cli.py @@ -9,7 +9,7 @@ from datetime import datetime, timezone import textwrap import shlex import subprocess -from typing import List, Union, Optional, TextIO +from typing import List, Dict, Union, Optional, TextIO from types import ModuleType from .lib import ( __version__, parser_info, all_parser_info, parsers, _get_parser, _parser_is_streaming, @@ -64,12 +64,12 @@ if PYGMENTS_INSTALLED: class JcCli(): __slots__ = ( 'data_in', 'data_out', 'options', 'args', 'parser_module', 'parser_name', 'indent', 'pad', - 'custom_colors', 'show_hidden', 'ascii_only', 'json_separators', 'json_indent', - 'run_timestamp', 'about', 'debug', 'verbose_debug', 'force_color', 'mono', 'help_me', - 'pretty', 'quiet', 'ignore_exceptions', 'raw', 'meta_out', 'unbuffer', 'version_info', - 'yaml_output', 'bash_comp', 'zsh_comp', 'magic_found_parser', 'magic_options', - 'magic_run_command', 'magic_run_command_str', 'magic_stdout', 'magic_stderr', - 'magic_returncode' + 'custom_colors', 'show_hidden', 'show_categories', 'ascii_only', 'json_separators', + 'json_indent', 'run_timestamp', 'about', 'debug', 'verbose_debug', 'force_color', 'mono', + 'help_me', 'pretty', 'quiet', 'ignore_exceptions', 'raw', 'meta_out', 'unbuffer', + 'version_info', 'yaml_output', 'bash_comp', 'zsh_comp', 'magic_found_parser', + 'magic_options', 'magic_run_command', 'magic_run_command_str', 'magic_stdout', + 'magic_stderr', 'magic_returncode' ) def __init__(self) -> None: @@ -83,6 +83,7 @@ class JcCli(): self.pad: int = 0 self.custom_colors: CustomColorType = {} self.show_hidden: bool = False + self.show_categories: bool = False self.ascii_only: bool = False self.json_separators: Optional[tuple[str, str]] = (',', ':') self.json_indent: Optional[int] = None @@ -198,6 +199,41 @@ class JcCli(): return ptext + def parser_categories_text(self) -> str: + """Return lists of parsers by category""" + category_text: str = '' + padding_char: str = ' ' + all_parsers = all_parser_info(show_hidden=True, show_deprecated=False) + generic = [{'arg': x['argument'], 'desc': x['description']} for x in all_parsers if 'generic' in x['tags']] + standard = [{'arg': x['argument'], 'desc': x['description']} for x in all_parsers if 'standard' in x['tags']] + command = [{'arg': x['argument'], 'desc': x['description']} for x in all_parsers if 'command' in x['tags']] + file_str_bin = [ + {'arg': x['argument'], 'desc': x['description']} for x in all_parsers + if 'file' in x['tags'] or + 'string' in x['tags'] or + 'binary' in x['tags'] + ] + streaming = [{'arg': x['argument'], 'desc': x['description']} for x in all_parsers if x.get('streaming')] + categories: Dict = { + 'Generic Parsers:': generic, + 'Standard Spec Parsers:': standard, + 'File/String/Binary Parsers:': file_str_bin, + 'Streaming Parsers:': streaming, + 'Command Parsers:': command + } + + for cat, cat_objs in categories.items(): + category_text += f'{cat} ({len(cat_objs)})\n' + for p in cat_objs: + parser_arg: str = p.get('arg', 'UNKNOWN') + parser_desc: str = p.get('desc', 'No description available.') + padding: int = self.pad - len(parser_arg) + padding_text: str = padding_char * padding + category_text += f'{parser_arg}{padding_text}{parser_desc}\n' + category_text += '\n' + + return category_text[:-1] + def options_text(self) -> str: """Return the argument and description information from each option""" otext: str = '' @@ -236,8 +272,6 @@ class JcCli(): def helptext(self) -> str: """Return the help text with the list of parsers""" - self.indent = 4 - self.pad = 20 parsers_string: str = self.parsers_text() options_string: str = self.options_text() helptext_string: str = f'{helptext_preamble_string}{parsers_string}\nOptions:\n{options_string}\n{helptext_end_string}' @@ -248,6 +282,13 @@ class JcCli(): Pages the parser documentation if a parser is found in the arguments, otherwise the general help text is printed. """ + self.indent = 4 + self.pad = 20 + + if self.show_categories: + utils._safe_print(self.parser_categories_text()) + return + for arg in self.args: parser_name: str = self.parser_shortname(arg) @@ -655,6 +696,7 @@ class JcCli(): self.force_color = 'C' in self.options self.help_me = 'h' in self.options self.show_hidden = self.options.count('h') > 1 # verbose help + self.show_categories = self.options.count('h') > 2 self.pretty = 'p' in self.options self.quiet = 'q' in self.options self.ignore_exceptions = self.options.count('q') > 1 diff --git a/jc/cli_data.py b/jc/cli_data.py index 9dd61a65..6311d97f 100644 --- a/jc/cli_data.py +++ b/jc/cli_data.py @@ -91,6 +91,7 @@ Examples: Parser Documentation: $ jc --help --dig - Show Hidden Parsers: - $ jc -hh + More Help: + $ jc -hh # show hidden parsers + $ jc -hhh # list parsers by category ''' \ No newline at end of file diff --git a/jc/jc_types.py b/jc/jc_types.py index 6ac5894d..d34af271 100644 --- a/jc/jc_types.py +++ b/jc/jc_types.py @@ -20,6 +20,7 @@ if sys.version_info >= (3, 8): "author_email": str, "compatible": List[str], "magic_commands": List[str], + "tags": List[str], "documentation": str, "streaming": bool, "plugin": bool, diff --git a/jc/parsers/acpi.py b/jc/parsers/acpi.py index c1f731c0..ed69fd1a 100644 --- a/jc/parsers/acpi.py +++ b/jc/parsers/acpi.py @@ -233,6 +233,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] magic_commands = ['acpi'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/airport.py b/jc/parsers/airport.py index b7e7353e..696100f8 100644 --- a/jc/parsers/airport.py +++ b/jc/parsers/airport.py @@ -86,6 +86,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['darwin'] magic_commands = ['airport -I'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/airport_s.py b/jc/parsers/airport_s.py index cb7d1fe1..802c726e 100644 --- a/jc/parsers/airport_s.py +++ b/jc/parsers/airport_s.py @@ -115,6 +115,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['darwin'] magic_commands = ['airport -s'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/arp.py b/jc/parsers/arp.py index e1e24f0c..130fa7a1 100644 --- a/jc/parsers/arp.py +++ b/jc/parsers/arp.py @@ -125,6 +125,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'aix', 'freebsd', 'darwin'] magic_commands = ['arp'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/asciitable.py b/jc/parsers/asciitable.py index 724eb849..b7da4b94 100644 --- a/jc/parsers/asciitable.py +++ b/jc/parsers/asciitable.py @@ -130,6 +130,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'cygwin', 'win32', 'aix', 'freebsd'] + tags = ['generic', 'string'] __version__ = info.version diff --git a/jc/parsers/asciitable_m.py b/jc/parsers/asciitable_m.py index 8c77ce8b..24b55487 100644 --- a/jc/parsers/asciitable_m.py +++ b/jc/parsers/asciitable_m.py @@ -115,6 +115,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'cygwin', 'win32', 'aix', 'freebsd'] + tags = ['generic', 'string'] __version__ = info.version diff --git a/jc/parsers/blkid.py b/jc/parsers/blkid.py index 19969740..6d28664c 100644 --- a/jc/parsers/blkid.py +++ b/jc/parsers/blkid.py @@ -127,6 +127,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] magic_commands = ['blkid'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/cbt.py b/jc/parsers/cbt.py index 96adf3bc..184993fa 100644 --- a/jc/parsers/cbt.py +++ b/jc/parsers/cbt.py @@ -106,6 +106,7 @@ class info(): author_email = 'andreas.weiden@gmail.com' compatible = ['linux', 'darwin', 'cygwin', 'win32', 'aix', 'freebsd'] magic_commands = ['cbt'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/cef.py b/jc/parsers/cef.py index a834c0ce..dae7bc54 100644 --- a/jc/parsers/cef.py +++ b/jc/parsers/cef.py @@ -129,6 +129,8 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' details = 'Using the pycef library at https://github.com/DavidJBianco/pycef/releases/tag/v1.11-2' compatible = ['linux', 'darwin', 'cygwin', 'win32', 'aix', 'freebsd'] + tags = ['standard', 'file', 'string'] + __version__ = info.version diff --git a/jc/parsers/cef_s.py b/jc/parsers/cef_s.py index 6a945e25..00215aca 100644 --- a/jc/parsers/cef_s.py +++ b/jc/parsers/cef_s.py @@ -103,6 +103,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' details = 'Using the pycef library at https://github.com/DavidJBianco/pycef/releases/tag/v1.11-2' compatible = ['linux', 'darwin', 'cygwin', 'win32', 'aix', 'freebsd'] + tags = ['standard', 'file', 'string'] streaming = True diff --git a/jc/parsers/chage.py b/jc/parsers/chage.py index a2ef099f..ad24cffa 100644 --- a/jc/parsers/chage.py +++ b/jc/parsers/chage.py @@ -63,6 +63,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] magic_commands = ['chage --list', 'chage -l'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/cksum.py b/jc/parsers/cksum.py index 87428f92..4e798474 100644 --- a/jc/parsers/cksum.py +++ b/jc/parsers/cksum.py @@ -60,6 +60,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'cygwin', 'aix', 'freebsd'] magic_commands = ['cksum', 'sum'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/clf.py b/jc/parsers/clf.py index 214e13a3..374553ce 100644 --- a/jc/parsers/clf.py +++ b/jc/parsers/clf.py @@ -179,6 +179,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'cygwin', 'win32', 'aix', 'freebsd'] + tags = ['standard', 'file', 'string'] __version__ = info.version diff --git a/jc/parsers/clf_s.py b/jc/parsers/clf_s.py index 610c7ca1..fc43ed1e 100644 --- a/jc/parsers/clf_s.py +++ b/jc/parsers/clf_s.py @@ -95,6 +95,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'cygwin', 'win32', 'aix', 'freebsd'] + tags = ['standard', 'file', 'string'] streaming = True diff --git a/jc/parsers/crontab.py b/jc/parsers/crontab.py index 9f19026f..07f7da53 100644 --- a/jc/parsers/crontab.py +++ b/jc/parsers/crontab.py @@ -180,6 +180,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'aix', 'freebsd'] magic_commands = ['crontab'] + tags = ['file', 'command'] __version__ = info.version diff --git a/jc/parsers/crontab_u.py b/jc/parsers/crontab_u.py index aa4f77be..7fb5a938 100644 --- a/jc/parsers/crontab_u.py +++ b/jc/parsers/crontab_u.py @@ -176,6 +176,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'aix', 'freebsd'] + tags = ['file', 'command'] __version__ = info.version diff --git a/jc/parsers/csv.py b/jc/parsers/csv.py index 8d1e5833..e97e9669 100644 --- a/jc/parsers/csv.py +++ b/jc/parsers/csv.py @@ -86,6 +86,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' details = 'Using the python standard csv library' compatible = ['linux', 'darwin', 'cygwin', 'win32', 'aix', 'freebsd'] + tags = ['standard', 'file', 'string'] __version__ = info.version diff --git a/jc/parsers/csv_s.py b/jc/parsers/csv_s.py index 98a8ce97..9eaf1a1b 100644 --- a/jc/parsers/csv_s.py +++ b/jc/parsers/csv_s.py @@ -69,6 +69,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' details = 'Using the python standard csv library' compatible = ['linux', 'darwin', 'cygwin', 'win32', 'aix', 'freebsd'] + tags = ['standard', 'file', 'string'] streaming = True diff --git a/jc/parsers/date.py b/jc/parsers/date.py index 237ead6d..594f3b80 100644 --- a/jc/parsers/date.py +++ b/jc/parsers/date.py @@ -84,6 +84,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'freebsd'] magic_commands = ['date'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/datetime_iso.py b/jc/parsers/datetime_iso.py index 2da60b62..e7ef9404 100644 --- a/jc/parsers/datetime_iso.py +++ b/jc/parsers/datetime_iso.py @@ -75,6 +75,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' details = 'Using the pyiso8601 library from https://github.com/micktwomey/pyiso8601/releases/tag/1.0.2' compatible = ['linux', 'aix', 'freebsd', 'darwin', 'win32', 'cygwin'] + tags = ['standard', 'string'] __version__ = info.version diff --git a/jc/parsers/df.py b/jc/parsers/df.py index e077a1e2..50fdfa8e 100644 --- a/jc/parsers/df.py +++ b/jc/parsers/df.py @@ -105,6 +105,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'freebsd'] magic_commands = ['df'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/dig.py b/jc/parsers/dig.py index be7bcd2e..b184454e 100644 --- a/jc/parsers/dig.py +++ b/jc/parsers/dig.py @@ -328,6 +328,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'aix', 'freebsd', 'darwin', 'win32', 'cygwin'] magic_commands = ['dig'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/dir.py b/jc/parsers/dir.py index 68ea7070..0115fce6 100644 --- a/jc/parsers/dir.py +++ b/jc/parsers/dir.py @@ -126,6 +126,7 @@ class info(): author = 'Rasheed Elsaleh' author_email = 'rasheed@rebelliondefense.com' compatible = ['win32'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/dmidecode.py b/jc/parsers/dmidecode.py index 3b7e180e..98a342e3 100644 --- a/jc/parsers/dmidecode.py +++ b/jc/parsers/dmidecode.py @@ -131,6 +131,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] magic_commands = ['dmidecode'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/dpkg_l.py b/jc/parsers/dpkg_l.py index c82ee28a..6375c608 100644 --- a/jc/parsers/dpkg_l.py +++ b/jc/parsers/dpkg_l.py @@ -138,6 +138,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] magic_commands = ['dpkg -l'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/du.py b/jc/parsers/du.py index 96c26a3e..f55edda2 100644 --- a/jc/parsers/du.py +++ b/jc/parsers/du.py @@ -98,6 +98,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'aix', 'freebsd'] magic_commands = ['du'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/email_address.py b/jc/parsers/email_address.py index a2132fb1..f20c6726 100644 --- a/jc/parsers/email_address.py +++ b/jc/parsers/email_address.py @@ -47,6 +47,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'cygwin', 'win32', 'aix', 'freebsd'] + tags = ['standard', 'string'] __version__ = info.version diff --git a/jc/parsers/env.py b/jc/parsers/env.py index 667a4ffc..1d4bb68a 100644 --- a/jc/parsers/env.py +++ b/jc/parsers/env.py @@ -78,6 +78,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'cygwin', 'win32', 'aix', 'freebsd'] magic_commands = ['env', 'printenv'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/file.py b/jc/parsers/file.py index 10789858..264ccb3a 100644 --- a/jc/parsers/file.py +++ b/jc/parsers/file.py @@ -69,6 +69,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'aix', 'freebsd', 'darwin'] magic_commands = ['file'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/findmnt.py b/jc/parsers/findmnt.py index 8ae88a4e..4d18c4f1 100644 --- a/jc/parsers/findmnt.py +++ b/jc/parsers/findmnt.py @@ -99,6 +99,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] magic_commands = ['findmnt'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/finger.py b/jc/parsers/finger.py index 52f37381..f46df76e 100644 --- a/jc/parsers/finger.py +++ b/jc/parsers/finger.py @@ -98,6 +98,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'cygwin', 'freebsd'] magic_commands = ['finger'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/foo.py b/jc/parsers/foo.py index e27b4e0a..8a4d1c97 100644 --- a/jc/parsers/foo.py +++ b/jc/parsers/foo.py @@ -48,6 +48,9 @@ class info(): # compatible options: linux, darwin, cygwin, win32, aix, freebsd compatible = ['linux', 'darwin', 'cygwin', 'win32', 'aix', 'freebsd'] + + # tags options: generic, standard, file, string, binary, command + tags = ['command'] magic_commands = ['foo'] diff --git a/jc/parsers/foo_s.py b/jc/parsers/foo_s.py index 88aae251..93416e41 100644 --- a/jc/parsers/foo_s.py +++ b/jc/parsers/foo_s.py @@ -58,6 +58,9 @@ class info(): # compatible options: linux, darwin, cygwin, win32, aix, freebsd compatible = ['linux', 'darwin', 'cygwin', 'win32', 'aix', 'freebsd'] + + # tags options: generic, standard, file, string, binary, command + tags = ['command'] streaming = True diff --git a/jc/parsers/free.py b/jc/parsers/free.py index 8116f2e9..b8d0b187 100644 --- a/jc/parsers/free.py +++ b/jc/parsers/free.py @@ -79,6 +79,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] magic_commands = ['free'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/fstab.py b/jc/parsers/fstab.py index f51afed8..c5618696 100644 --- a/jc/parsers/fstab.py +++ b/jc/parsers/fstab.py @@ -90,6 +90,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'freebsd'] + tags = ['file'] __version__ = info.version diff --git a/jc/parsers/git_log.py b/jc/parsers/git_log.py index d89d56cd..9b58fc11 100644 --- a/jc/parsers/git_log.py +++ b/jc/parsers/git_log.py @@ -159,6 +159,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'cygwin', 'win32', 'aix', 'freebsd'] magic_commands = ['git log'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/git_log_s.py b/jc/parsers/git_log_s.py index b4364410..048e199f 100644 --- a/jc/parsers/git_log_s.py +++ b/jc/parsers/git_log_s.py @@ -93,6 +93,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'cygwin', 'win32', 'aix', 'freebsd'] + tags = ['command'] streaming = True diff --git a/jc/parsers/git_ls_remote.py b/jc/parsers/git_ls_remote.py index 352a9442..e05c8993 100644 --- a/jc/parsers/git_ls_remote.py +++ b/jc/parsers/git_ls_remote.py @@ -72,6 +72,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'cygwin', 'win32', 'aix', 'freebsd'] magic_commands = ['git ls-remote'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/gpg.py b/jc/parsers/gpg.py index dff1495a..21eb32fa 100644 --- a/jc/parsers/gpg.py +++ b/jc/parsers/gpg.py @@ -126,6 +126,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] magic_commands = ['gpg --with-colons'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/group.py b/jc/parsers/group.py index e24ec987..6bf65f52 100644 --- a/jc/parsers/group.py +++ b/jc/parsers/group.py @@ -114,6 +114,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'aix', 'freebsd'] + tags = ['file'] __version__ = info.version diff --git a/jc/parsers/gshadow.py b/jc/parsers/gshadow.py index 34422498..b2b87dea 100644 --- a/jc/parsers/gshadow.py +++ b/jc/parsers/gshadow.py @@ -82,6 +82,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'aix', 'freebsd'] + tags = ['file'] __version__ = info.version diff --git a/jc/parsers/hash.py b/jc/parsers/hash.py index 9de1b592..c88b87a9 100644 --- a/jc/parsers/hash.py +++ b/jc/parsers/hash.py @@ -43,6 +43,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'cygwin', 'aix', 'freebsd'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/hashsum.py b/jc/parsers/hashsum.py index 512016a0..be47b742 100644 --- a/jc/parsers/hashsum.py +++ b/jc/parsers/hashsum.py @@ -76,6 +76,7 @@ class info(): compatible = ['linux', 'darwin', 'cygwin', 'aix', 'freebsd'] magic_commands = ['md5sum', 'md5', 'shasum', 'sha1sum', 'sha224sum', 'sha256sum', 'sha384sum', 'sha512sum'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/hciconfig.py b/jc/parsers/hciconfig.py index e21f2b68..7b769172 100644 --- a/jc/parsers/hciconfig.py +++ b/jc/parsers/hciconfig.py @@ -323,6 +323,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] magic_commands = ['hciconfig'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/history.py b/jc/parsers/history.py index 095f09c1..d07d09e0 100644 --- a/jc/parsers/history.py +++ b/jc/parsers/history.py @@ -69,6 +69,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' details = 'Optimizations by https://github.com/philippeitis' compatible = ['linux', 'darwin', 'cygwin', 'aix', 'freebsd'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/hosts.py b/jc/parsers/hosts.py index 6164f61c..bb5dd009 100644 --- a/jc/parsers/hosts.py +++ b/jc/parsers/hosts.py @@ -79,6 +79,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'cygwin', 'win32', 'aix', 'freebsd'] + tags = ['file'] __version__ = info.version diff --git a/jc/parsers/id.py b/jc/parsers/id.py index d3f310a2..fffff37d 100644 --- a/jc/parsers/id.py +++ b/jc/parsers/id.py @@ -112,6 +112,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'aix', 'freebsd'] magic_commands = ['id'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/ifconfig.py b/jc/parsers/ifconfig.py index 83ed94e0..f8bc9503 100644 --- a/jc/parsers/ifconfig.py +++ b/jc/parsers/ifconfig.py @@ -225,6 +225,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'aix', 'freebsd', 'darwin'] magic_commands = ['ifconfig'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/ini.py b/jc/parsers/ini.py index 6a68ba07..37081219 100644 --- a/jc/parsers/ini.py +++ b/jc/parsers/ini.py @@ -76,6 +76,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' details = 'Using configparser from the standard library' compatible = ['linux', 'darwin', 'cygwin', 'win32', 'aix', 'freebsd'] + tags = ['standard', 'file', 'string'] __version__ = info.version diff --git a/jc/parsers/iostat.py b/jc/parsers/iostat.py index 4bd01f3b..0a4b4107 100644 --- a/jc/parsers/iostat.py +++ b/jc/parsers/iostat.py @@ -166,6 +166,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] magic_commands = ['iostat'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/iostat_s.py b/jc/parsers/iostat_s.py index b86e56ed..c2f5921f 100644 --- a/jc/parsers/iostat_s.py +++ b/jc/parsers/iostat_s.py @@ -113,6 +113,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['command'] streaming = True diff --git a/jc/parsers/ip_address.py b/jc/parsers/ip_address.py index ba5f62d7..103ea31e 100644 --- a/jc/parsers/ip_address.py +++ b/jc/parsers/ip_address.py @@ -538,6 +538,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'cygwin', 'win32', 'aix', 'freebsd'] + tags = ['standard', 'string'] __version__ = info.version diff --git a/jc/parsers/iptables.py b/jc/parsers/iptables.py index c33f6917..7a1d45b2 100644 --- a/jc/parsers/iptables.py +++ b/jc/parsers/iptables.py @@ -169,6 +169,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] magic_commands = ['iptables'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/iso_datetime.py b/jc/parsers/iso_datetime.py index 49f9f317..b4294e9e 100644 --- a/jc/parsers/iso_datetime.py +++ b/jc/parsers/iso_datetime.py @@ -17,6 +17,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' details = 'Deprecated - please use datetime-iso' compatible = ['linux', 'aix', 'freebsd', 'darwin', 'win32', 'cygwin'] + tags = ['standard', 'string'] deprecated = True diff --git a/jc/parsers/iw_scan.py b/jc/parsers/iw_scan.py index 607dca0c..8b936807 100644 --- a/jc/parsers/iw_scan.py +++ b/jc/parsers/iw_scan.py @@ -129,6 +129,7 @@ class info(): details = 'Enhancements by Philipp Schmitt (https://pschmitt.dev/)' compatible = ['linux'] magic_commands = ['iw dev'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/iwconfig.py b/jc/parsers/iwconfig.py index c380dd94..aa73d43f 100644 --- a/jc/parsers/iwconfig.py +++ b/jc/parsers/iwconfig.py @@ -93,6 +93,7 @@ class info(): author_email = 'vrince@gmail.com' compatible = ['linux'] magic_commands = ['iwconfig'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/jar_manifest.py b/jc/parsers/jar_manifest.py index 4c930fbf..d54a2901 100644 --- a/jc/parsers/jar_manifest.py +++ b/jc/parsers/jar_manifest.py @@ -83,6 +83,7 @@ class info(): author = 'Matt J' author_email = 'https://github.com/listuser' compatible = ['linux', 'darwin', 'cygwin', 'win32', 'aix', 'freebsd'] + tags = ['file'] __version__ = info.version diff --git a/jc/parsers/jobs.py b/jc/parsers/jobs.py index 8637d81b..0befa601 100644 --- a/jc/parsers/jobs.py +++ b/jc/parsers/jobs.py @@ -99,6 +99,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'cygwin', 'aix', 'freebsd'] magic_commands = ['jobs'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/jwt.py b/jc/parsers/jwt.py index 0f293fda..df659343 100644 --- a/jc/parsers/jwt.py +++ b/jc/parsers/jwt.py @@ -56,6 +56,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'cygwin', 'win32', 'aix', 'freebsd'] + tags = ['standard', 'string'] __version__ = info.version diff --git a/jc/parsers/kv.py b/jc/parsers/kv.py index 6e368535..6bcddc5b 100644 --- a/jc/parsers/kv.py +++ b/jc/parsers/kv.py @@ -1,4 +1,4 @@ -"""jc - JSON Convert `Key/Value` file parser +"""jc - JSON Convert `Key/Value` file and string parser Supports files containing simple key/value pairs. @@ -55,11 +55,12 @@ Examples: class info(): """Provides parser metadata (version, author, etc.)""" version = '1.2' - description = 'Key/Value file parser' + description = 'Key/Value file and string parser' author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' details = 'This is a wrapper for the INI parser' compatible = ['linux', 'darwin', 'cygwin', 'win32', 'aix', 'freebsd'] + tags = ['generic', 'file', 'string'] __version__ = info.version diff --git a/jc/parsers/last.py b/jc/parsers/last.py index d3040553..36f5f95e 100644 --- a/jc/parsers/last.py +++ b/jc/parsers/last.py @@ -113,6 +113,7 @@ class info(): details = 'Enhancements by https://github.com/zerolagtime' compatible = ['linux', 'darwin', 'aix', 'freebsd'] magic_commands = ['last', 'lastb'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/ls.py b/jc/parsers/ls.py index 8dad76d3..85a69e42 100644 --- a/jc/parsers/ls.py +++ b/jc/parsers/ls.py @@ -124,6 +124,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'cygwin', 'aix', 'freebsd'] magic_commands = ['ls', 'vdir'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/ls_s.py b/jc/parsers/ls_s.py index b000255c..8cf2213d 100644 --- a/jc/parsers/ls_s.py +++ b/jc/parsers/ls_s.py @@ -82,6 +82,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'cygwin', 'aix', 'freebsd'] + tags = ['command'] streaming = True diff --git a/jc/parsers/lsblk.py b/jc/parsers/lsblk.py index ecf28ab7..7276711c 100644 --- a/jc/parsers/lsblk.py +++ b/jc/parsers/lsblk.py @@ -281,6 +281,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] magic_commands = ['lsblk'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/lsmod.py b/jc/parsers/lsmod.py index 035108f1..b4b65d05 100644 --- a/jc/parsers/lsmod.py +++ b/jc/parsers/lsmod.py @@ -132,6 +132,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] magic_commands = ['lsmod'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/lsof.py b/jc/parsers/lsof.py index ac167fd0..0fc434ae 100644 --- a/jc/parsers/lsof.py +++ b/jc/parsers/lsof.py @@ -126,6 +126,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'aix', 'freebsd'] magic_commands = ['lsof'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/lspci.py b/jc/parsers/lspci.py index 7cd281b6..771fe38a 100644 --- a/jc/parsers/lspci.py +++ b/jc/parsers/lspci.py @@ -129,6 +129,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] magic_commands = ['lspci'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/lsusb.py b/jc/parsers/lsusb.py index 490d5429..64b5db8a 100644 --- a/jc/parsers/lsusb.py +++ b/jc/parsers/lsusb.py @@ -275,6 +275,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] magic_commands = ['lsusb'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/m3u.py b/jc/parsers/m3u.py index 2fa3b691..76fbb4d3 100644 --- a/jc/parsers/m3u.py +++ b/jc/parsers/m3u.py @@ -71,6 +71,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'cygwin', 'win32', 'aix', 'freebsd'] + tags = ['file'] __version__ = info.version diff --git a/jc/parsers/mdadm.py b/jc/parsers/mdadm.py index 5c4fde12..852911ae 100644 --- a/jc/parsers/mdadm.py +++ b/jc/parsers/mdadm.py @@ -235,6 +235,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] magic_commands = ['mdadm'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/mount.py b/jc/parsers/mount.py index cbddf4d2..eda5377a 100644 --- a/jc/parsers/mount.py +++ b/jc/parsers/mount.py @@ -81,6 +81,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'freebsd'] magic_commands = ['mount'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/mpstat.py b/jc/parsers/mpstat.py index 6467a36c..a89c940d 100644 --- a/jc/parsers/mpstat.py +++ b/jc/parsers/mpstat.py @@ -122,6 +122,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] magic_commands = ['mpstat'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/mpstat_s.py b/jc/parsers/mpstat_s.py index cecd6164..3a746f2b 100644 --- a/jc/parsers/mpstat_s.py +++ b/jc/parsers/mpstat_s.py @@ -106,6 +106,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['command'] streaming = True diff --git a/jc/parsers/netstat.py b/jc/parsers/netstat.py index a7416152..5e86ef27 100644 --- a/jc/parsers/netstat.py +++ b/jc/parsers/netstat.py @@ -361,6 +361,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'freebsd'] magic_commands = ['netstat'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/nmcli.py b/jc/parsers/nmcli.py index 91644a6a..25572eb9 100644 --- a/jc/parsers/nmcli.py +++ b/jc/parsers/nmcli.py @@ -155,6 +155,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] magic_commands = ['nmcli'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/ntpq.py b/jc/parsers/ntpq.py index 7e0b79f7..ab5740e9 100644 --- a/jc/parsers/ntpq.py +++ b/jc/parsers/ntpq.py @@ -213,6 +213,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'freebsd'] magic_commands = ['ntpq'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/openvpn.py b/jc/parsers/openvpn.py index e3c5ab32..2aa3f1ad 100644 --- a/jc/parsers/openvpn.py +++ b/jc/parsers/openvpn.py @@ -161,6 +161,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'cygwin', 'win32', 'aix', 'freebsd'] + tags = ['file'] __version__ = info.version diff --git a/jc/parsers/os_prober.py b/jc/parsers/os_prober.py index 701fcc8c..7712b0e2 100644 --- a/jc/parsers/os_prober.py +++ b/jc/parsers/os_prober.py @@ -48,6 +48,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] magic_commands = ['os-prober'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/passwd.py b/jc/parsers/passwd.py index 6c73f6a8..523e5d52 100644 --- a/jc/parsers/passwd.py +++ b/jc/parsers/passwd.py @@ -99,6 +99,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'aix', 'freebsd'] + tags = ['file'] __version__ = info.version diff --git a/jc/parsers/pci_ids.py b/jc/parsers/pci_ids.py index 4419fd82..2deb4031 100644 --- a/jc/parsers/pci_ids.py +++ b/jc/parsers/pci_ids.py @@ -81,6 +81,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'cygwin', 'win32', 'aix', 'freebsd'] + tags = ['file'] __version__ = info.version diff --git a/jc/parsers/pgpass.py b/jc/parsers/pgpass.py index 5f6c8e28..409b2c2d 100644 --- a/jc/parsers/pgpass.py +++ b/jc/parsers/pgpass.py @@ -54,6 +54,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'cygwin', 'win32', 'aix', 'freebsd'] + tags = ['file'] __version__ = info.version diff --git a/jc/parsers/pidstat.py b/jc/parsers/pidstat.py index b89427d0..c6271dda 100644 --- a/jc/parsers/pidstat.py +++ b/jc/parsers/pidstat.py @@ -134,6 +134,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] magic_commands = ['pidstat'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/pidstat_s.py b/jc/parsers/pidstat_s.py index 4ac40245..dbaee0d6 100644 --- a/jc/parsers/pidstat_s.py +++ b/jc/parsers/pidstat_s.py @@ -88,6 +88,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['command'] streaming = True diff --git a/jc/parsers/ping.py b/jc/parsers/ping.py index 3ca5e51b..98129856 100644 --- a/jc/parsers/ping.py +++ b/jc/parsers/ping.py @@ -170,6 +170,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'freebsd'] magic_commands = ['ping', 'ping6'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/ping_s.py b/jc/parsers/ping_s.py index e697e737..d68a14cb 100644 --- a/jc/parsers/ping_s.py +++ b/jc/parsers/ping_s.py @@ -90,6 +90,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'freebsd'] + tags = ['command'] streaming = True diff --git a/jc/parsers/pip_list.py b/jc/parsers/pip_list.py index ebaf8f0b..7bafeec2 100644 --- a/jc/parsers/pip_list.py +++ b/jc/parsers/pip_list.py @@ -54,6 +54,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'cygwin', 'win32', 'aix', 'freebsd'] magic_commands = ['pip list', 'pip3 list'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/pip_show.py b/jc/parsers/pip_show.py index 4510e92e..8d12ebd8 100644 --- a/jc/parsers/pip_show.py +++ b/jc/parsers/pip_show.py @@ -72,6 +72,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'cygwin', 'win32', 'aix', 'freebsd'] magic_commands = ['pip show', 'pip3 show'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/plist.py b/jc/parsers/plist.py index fa313069..e4e9da62 100644 --- a/jc/parsers/plist.py +++ b/jc/parsers/plist.py @@ -58,6 +58,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'cygwin', 'win32', 'aix', 'freebsd'] + tags = ['standard', 'file', 'string', 'binary'] __version__ = info.version diff --git a/jc/parsers/postconf.py b/jc/parsers/postconf.py index bfdf999b..c4678fe0 100644 --- a/jc/parsers/postconf.py +++ b/jc/parsers/postconf.py @@ -97,6 +97,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] magic_commands = ['postconf -M'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/proc.py b/jc/parsers/proc.py index 5ac5013a..2330c6ab 100644 --- a/jc/parsers/proc.py +++ b/jc/parsers/proc.py @@ -125,6 +125,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] __version__ = info.version diff --git a/jc/parsers/proc_buddyinfo.py b/jc/parsers/proc_buddyinfo.py index 1efd5680..8262ca45 100644 --- a/jc/parsers/proc_buddyinfo.py +++ b/jc/parsers/proc_buddyinfo.py @@ -108,6 +108,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_consoles.py b/jc/parsers/proc_consoles.py index 3423d0b0..3d8a95be 100644 --- a/jc/parsers/proc_consoles.py +++ b/jc/parsers/proc_consoles.py @@ -92,6 +92,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_cpuinfo.py b/jc/parsers/proc_cpuinfo.py index 5de13991..e7628e65 100644 --- a/jc/parsers/proc_cpuinfo.py +++ b/jc/parsers/proc_cpuinfo.py @@ -227,6 +227,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_crypto.py b/jc/parsers/proc_crypto.py index 93cab164..76b270c5 100644 --- a/jc/parsers/proc_crypto.py +++ b/jc/parsers/proc_crypto.py @@ -123,6 +123,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_devices.py b/jc/parsers/proc_devices.py index 4d2a4441..20c2d1a5 100644 --- a/jc/parsers/proc_devices.py +++ b/jc/parsers/proc_devices.py @@ -83,6 +83,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_diskstats.py b/jc/parsers/proc_diskstats.py index c230b2f8..1067f869 100644 --- a/jc/parsers/proc_diskstats.py +++ b/jc/parsers/proc_diskstats.py @@ -183,6 +183,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_driver_rtc.py b/jc/parsers/proc_driver_rtc.py index 2b046cbc..8356755b 100644 --- a/jc/parsers/proc_driver_rtc.py +++ b/jc/parsers/proc_driver_rtc.py @@ -106,6 +106,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_filesystems.py b/jc/parsers/proc_filesystems.py index 91170de4..2e079b98 100644 --- a/jc/parsers/proc_filesystems.py +++ b/jc/parsers/proc_filesystems.py @@ -61,6 +61,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_interrupts.py b/jc/parsers/proc_interrupts.py index 49a27b19..376c053e 100644 --- a/jc/parsers/proc_interrupts.py +++ b/jc/parsers/proc_interrupts.py @@ -113,6 +113,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_iomem.py b/jc/parsers/proc_iomem.py index 4b526d7a..9d4b2766 100644 --- a/jc/parsers/proc_iomem.py +++ b/jc/parsers/proc_iomem.py @@ -65,6 +65,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_ioports.py b/jc/parsers/proc_ioports.py index a1b6de0f..bac1c563 100644 --- a/jc/parsers/proc_ioports.py +++ b/jc/parsers/proc_ioports.py @@ -66,6 +66,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_loadavg.py b/jc/parsers/proc_loadavg.py index dc234c71..9247a41b 100644 --- a/jc/parsers/proc_loadavg.py +++ b/jc/parsers/proc_loadavg.py @@ -68,6 +68,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_locks.py b/jc/parsers/proc_locks.py index ce4c675e..01e8a3ca 100644 --- a/jc/parsers/proc_locks.py +++ b/jc/parsers/proc_locks.py @@ -110,6 +110,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_meminfo.py b/jc/parsers/proc_meminfo.py index bf378374..d8ddce64 100644 --- a/jc/parsers/proc_meminfo.py +++ b/jc/parsers/proc_meminfo.py @@ -98,6 +98,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_modules.py b/jc/parsers/proc_modules.py index e94cbb54..472c389a 100644 --- a/jc/parsers/proc_modules.py +++ b/jc/parsers/proc_modules.py @@ -112,6 +112,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_mtrr.py b/jc/parsers/proc_mtrr.py index 052414b4..fbeae40b 100644 --- a/jc/parsers/proc_mtrr.py +++ b/jc/parsers/proc_mtrr.py @@ -92,6 +92,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_net_arp.py b/jc/parsers/proc_net_arp.py index 1535326d..47dfa623 100644 --- a/jc/parsers/proc_net_arp.py +++ b/jc/parsers/proc_net_arp.py @@ -62,6 +62,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_net_dev.py b/jc/parsers/proc_net_dev.py index a72ac899..14cf4af6 100644 --- a/jc/parsers/proc_net_dev.py +++ b/jc/parsers/proc_net_dev.py @@ -108,6 +108,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_net_dev_mcast.py b/jc/parsers/proc_net_dev_mcast.py index 62563b9a..3984f341 100644 --- a/jc/parsers/proc_net_dev_mcast.py +++ b/jc/parsers/proc_net_dev_mcast.py @@ -86,6 +86,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_net_if_inet6.py b/jc/parsers/proc_net_if_inet6.py index 700e8ba0..a2e3d11e 100644 --- a/jc/parsers/proc_net_if_inet6.py +++ b/jc/parsers/proc_net_if_inet6.py @@ -69,6 +69,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_net_igmp.py b/jc/parsers/proc_net_igmp.py index 4f80151b..d4f26b7d 100644 --- a/jc/parsers/proc_net_igmp.py +++ b/jc/parsers/proc_net_igmp.py @@ -132,6 +132,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_net_igmp6.py b/jc/parsers/proc_net_igmp6.py index 6c8949ed..a1640959 100644 --- a/jc/parsers/proc_net_igmp6.py +++ b/jc/parsers/proc_net_igmp6.py @@ -106,6 +106,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_net_ipv6_route.py b/jc/parsers/proc_net_ipv6_route.py index ccc0be1a..b9643a8f 100644 --- a/jc/parsers/proc_net_ipv6_route.py +++ b/jc/parsers/proc_net_ipv6_route.py @@ -70,6 +70,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_net_netlink.py b/jc/parsers/proc_net_netlink.py index c5a65966..31a8deb6 100644 --- a/jc/parsers/proc_net_netlink.py +++ b/jc/parsers/proc_net_netlink.py @@ -111,6 +111,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_net_netstat.py b/jc/parsers/proc_net_netstat.py index fe84eb93..d7ae90a7 100644 --- a/jc/parsers/proc_net_netstat.py +++ b/jc/parsers/proc_net_netstat.py @@ -305,6 +305,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_net_packet.py b/jc/parsers/proc_net_packet.py index 37d3cf63..c2945171 100644 --- a/jc/parsers/proc_net_packet.py +++ b/jc/parsers/proc_net_packet.py @@ -76,6 +76,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_net_protocols.py b/jc/parsers/proc_net_protocols.py index 7703b764..11a136dd 100644 --- a/jc/parsers/proc_net_protocols.py +++ b/jc/parsers/proc_net_protocols.py @@ -138,6 +138,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_net_route.py b/jc/parsers/proc_net_route.py index dcbafeb3..ff7e41d7 100644 --- a/jc/parsers/proc_net_route.py +++ b/jc/parsers/proc_net_route.py @@ -90,6 +90,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_net_unix.py b/jc/parsers/proc_net_unix.py index 1f11b71e..db1f5338 100644 --- a/jc/parsers/proc_net_unix.py +++ b/jc/parsers/proc_net_unix.py @@ -81,6 +81,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_pagetypeinfo.py b/jc/parsers/proc_pagetypeinfo.py index 08ef08ba..92a0ed26 100644 --- a/jc/parsers/proc_pagetypeinfo.py +++ b/jc/parsers/proc_pagetypeinfo.py @@ -121,6 +121,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_partitions.py b/jc/parsers/proc_partitions.py index 826a33a5..6afbeda0 100644 --- a/jc/parsers/proc_partitions.py +++ b/jc/parsers/proc_partitions.py @@ -81,6 +81,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_pid_fdinfo.py b/jc/parsers/proc_pid_fdinfo.py index e8e99460..d86d6ec3 100644 --- a/jc/parsers/proc_pid_fdinfo.py +++ b/jc/parsers/proc_pid_fdinfo.py @@ -108,6 +108,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_pid_io.py b/jc/parsers/proc_pid_io.py index 8bfe71c1..c450302d 100644 --- a/jc/parsers/proc_pid_io.py +++ b/jc/parsers/proc_pid_io.py @@ -54,6 +54,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_pid_maps.py b/jc/parsers/proc_pid_maps.py index 22c8765b..e51c0fed 100644 --- a/jc/parsers/proc_pid_maps.py +++ b/jc/parsers/proc_pid_maps.py @@ -106,6 +106,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_pid_mountinfo.py b/jc/parsers/proc_pid_mountinfo.py index 40847cfc..5b43bc94 100644 --- a/jc/parsers/proc_pid_mountinfo.py +++ b/jc/parsers/proc_pid_mountinfo.py @@ -151,6 +151,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_pid_numa_maps.py b/jc/parsers/proc_pid_numa_maps.py index 812a91b4..2210d401 100644 --- a/jc/parsers/proc_pid_numa_maps.py +++ b/jc/parsers/proc_pid_numa_maps.py @@ -107,6 +107,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_pid_smaps.py b/jc/parsers/proc_pid_smaps.py index 692feaf9..921b4a2c 100644 --- a/jc/parsers/proc_pid_smaps.py +++ b/jc/parsers/proc_pid_smaps.py @@ -172,6 +172,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_pid_stat.py b/jc/parsers/proc_pid_stat.py index bac8e73f..44ede29f 100644 --- a/jc/parsers/proc_pid_stat.py +++ b/jc/parsers/proc_pid_stat.py @@ -207,6 +207,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_pid_statm.py b/jc/parsers/proc_pid_statm.py index 6b96519b..a1cd2f42 100644 --- a/jc/parsers/proc_pid_statm.py +++ b/jc/parsers/proc_pid_statm.py @@ -58,6 +58,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_pid_status.py b/jc/parsers/proc_pid_status.py index 6aa214bf..aae91e2f 100644 --- a/jc/parsers/proc_pid_status.py +++ b/jc/parsers/proc_pid_status.py @@ -275,6 +275,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_slabinfo.py b/jc/parsers/proc_slabinfo.py index 9ebbde1e..15488281 100644 --- a/jc/parsers/proc_slabinfo.py +++ b/jc/parsers/proc_slabinfo.py @@ -80,6 +80,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_softirqs.py b/jc/parsers/proc_softirqs.py index d4068ec1..cac25ae9 100644 --- a/jc/parsers/proc_softirqs.py +++ b/jc/parsers/proc_softirqs.py @@ -66,6 +66,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_stat.py b/jc/parsers/proc_stat.py index 99f974cc..a09f67e9 100644 --- a/jc/parsers/proc_stat.py +++ b/jc/parsers/proc_stat.py @@ -141,6 +141,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_swaps.py b/jc/parsers/proc_swaps.py index d50387a0..97269f4b 100644 --- a/jc/parsers/proc_swaps.py +++ b/jc/parsers/proc_swaps.py @@ -72,6 +72,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_uptime.py b/jc/parsers/proc_uptime.py index abea777f..c3207e47 100644 --- a/jc/parsers/proc_uptime.py +++ b/jc/parsers/proc_uptime.py @@ -48,6 +48,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_version.py b/jc/parsers/proc_version.py index 8b888274..e0fc4626 100644 --- a/jc/parsers/proc_version.py +++ b/jc/parsers/proc_version.py @@ -60,6 +60,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_vmallocinfo.py b/jc/parsers/proc_vmallocinfo.py index f3e8a54b..4001830e 100644 --- a/jc/parsers/proc_vmallocinfo.py +++ b/jc/parsers/proc_vmallocinfo.py @@ -106,6 +106,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_vmstat.py b/jc/parsers/proc_vmstat.py index 128d0f70..522f04ba 100644 --- a/jc/parsers/proc_vmstat.py +++ b/jc/parsers/proc_vmstat.py @@ -64,6 +64,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/proc_zoneinfo.py b/jc/parsers/proc_zoneinfo.py index ec3db99b..77688b3b 100644 --- a/jc/parsers/proc_zoneinfo.py +++ b/jc/parsers/proc_zoneinfo.py @@ -314,6 +314,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['file'] hidden = True diff --git a/jc/parsers/ps.py b/jc/parsers/ps.py index b7fc7bc3..11ef2f90 100644 --- a/jc/parsers/ps.py +++ b/jc/parsers/ps.py @@ -213,6 +213,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'cygwin', 'aix', 'freebsd'] magic_commands = ['ps'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/route.py b/jc/parsers/route.py index 4f7bdfdd..add7cf53 100644 --- a/jc/parsers/route.py +++ b/jc/parsers/route.py @@ -115,6 +115,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] magic_commands = ['route'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/rpm_qi.py b/jc/parsers/rpm_qi.py index 21b0c3bd..bcdfa4eb 100644 --- a/jc/parsers/rpm_qi.py +++ b/jc/parsers/rpm_qi.py @@ -167,6 +167,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] magic_commands = ['rpm -qi', 'rpm -qia', 'rpm -qai'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/rsync.py b/jc/parsers/rsync.py index 55ae5599..137d2f7a 100644 --- a/jc/parsers/rsync.py +++ b/jc/parsers/rsync.py @@ -143,6 +143,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'freebsd'] magic_commands = ['rsync -i', 'rsync --itemize-changes'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/rsync_s.py b/jc/parsers/rsync_s.py index 07424046..8c9d07d8 100644 --- a/jc/parsers/rsync_s.py +++ b/jc/parsers/rsync_s.py @@ -93,6 +93,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'freebsd'] + tags = ['command'] streaming = True diff --git a/jc/parsers/semver.py b/jc/parsers/semver.py index e80fe53e..3660e3e9 100644 --- a/jc/parsers/semver.py +++ b/jc/parsers/semver.py @@ -57,6 +57,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'cygwin', 'win32', 'aix', 'freebsd'] + tags = ['standard', 'string'] __version__ = info.version diff --git a/jc/parsers/sfdisk.py b/jc/parsers/sfdisk.py index 440eb5ac..365414c5 100644 --- a/jc/parsers/sfdisk.py +++ b/jc/parsers/sfdisk.py @@ -209,6 +209,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] magic_commands = ['sfdisk'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/shadow.py b/jc/parsers/shadow.py index a57847ff..6b5c8dc4 100644 --- a/jc/parsers/shadow.py +++ b/jc/parsers/shadow.py @@ -106,6 +106,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'aix', 'freebsd'] + tags = ['file'] __version__ = info.version diff --git a/jc/parsers/ss.py b/jc/parsers/ss.py index a4564dcd..628511b3 100644 --- a/jc/parsers/ss.py +++ b/jc/parsers/ss.py @@ -287,6 +287,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] magic_commands = ['ss'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/sshd_conf.py b/jc/parsers/sshd_conf.py index bcedccf2..b6a19e64 100644 --- a/jc/parsers/sshd_conf.py +++ b/jc/parsers/sshd_conf.py @@ -489,6 +489,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'freebsd'] magic_commands = ['sshd -T'] + tags = ['file'] __version__ = info.version diff --git a/jc/parsers/stat.py b/jc/parsers/stat.py index 706610a7..daa07999 100644 --- a/jc/parsers/stat.py +++ b/jc/parsers/stat.py @@ -177,6 +177,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'freebsd'] magic_commands = ['stat'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/stat_s.py b/jc/parsers/stat_s.py index d74b7a4e..c3e1a0b4 100644 --- a/jc/parsers/stat_s.py +++ b/jc/parsers/stat_s.py @@ -89,6 +89,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'freebsd'] + tags = ['command'] streaming = True diff --git a/jc/parsers/sysctl.py b/jc/parsers/sysctl.py index 22f314d8..e1bbe56e 100644 --- a/jc/parsers/sysctl.py +++ b/jc/parsers/sysctl.py @@ -63,6 +63,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'freebsd'] magic_commands = ['sysctl'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/syslog.py b/jc/parsers/syslog.py index 9029061a..4853bdb7 100644 --- a/jc/parsers/syslog.py +++ b/jc/parsers/syslog.py @@ -113,6 +113,8 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'cygwin', 'win32', 'aix', 'freebsd'] + tags = ['standard', 'file', 'string'] + __version__ = info.version diff --git a/jc/parsers/syslog_bsd.py b/jc/parsers/syslog_bsd.py index 44677c15..87ce7236 100644 --- a/jc/parsers/syslog_bsd.py +++ b/jc/parsers/syslog_bsd.py @@ -65,6 +65,8 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'cygwin', 'win32', 'aix', 'freebsd'] + tags = ['standard', 'file', 'string'] + __version__ = info.version diff --git a/jc/parsers/syslog_bsd_s.py b/jc/parsers/syslog_bsd_s.py index 838953c0..a4b05c0c 100644 --- a/jc/parsers/syslog_bsd_s.py +++ b/jc/parsers/syslog_bsd_s.py @@ -68,6 +68,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'cygwin', 'win32', 'aix', 'freebsd'] + tags = ['standard', 'file', 'string'] streaming = True diff --git a/jc/parsers/syslog_s.py b/jc/parsers/syslog_s.py index 5f3e41e6..871f27cf 100644 --- a/jc/parsers/syslog_s.py +++ b/jc/parsers/syslog_s.py @@ -91,6 +91,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'cygwin', 'win32', 'aix', 'freebsd'] + tags = ['standard', 'file', 'string'] streaming = True diff --git a/jc/parsers/systemctl.py b/jc/parsers/systemctl.py index 5e3265fb..9d648449 100644 --- a/jc/parsers/systemctl.py +++ b/jc/parsers/systemctl.py @@ -64,6 +64,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] magic_commands = ['systemctl'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/systemctl_lj.py b/jc/parsers/systemctl_lj.py index 531b89de..0c7ecf04 100644 --- a/jc/parsers/systemctl_lj.py +++ b/jc/parsers/systemctl_lj.py @@ -81,6 +81,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] magic_commands = ['systemctl list-jobs'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/systemctl_ls.py b/jc/parsers/systemctl_ls.py index 774ce6c9..df4baecf 100644 --- a/jc/parsers/systemctl_ls.py +++ b/jc/parsers/systemctl_ls.py @@ -57,6 +57,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] magic_commands = ['systemctl list-sockets'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/systemctl_luf.py b/jc/parsers/systemctl_luf.py index da9059cc..a7019c1d 100644 --- a/jc/parsers/systemctl_luf.py +++ b/jc/parsers/systemctl_luf.py @@ -53,6 +53,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] magic_commands = ['systemctl list-unit-files'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/systeminfo.py b/jc/parsers/systeminfo.py index 8f2e7683..04f9ac9f 100644 --- a/jc/parsers/systeminfo.py +++ b/jc/parsers/systeminfo.py @@ -218,6 +218,7 @@ class info: author_email = "jon@rebelliondefense.com" compatible = ["win32"] magic_commands = ["systeminfo"] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/time.py b/jc/parsers/time.py index b6cb9af5..1d89ac0c 100644 --- a/jc/parsers/time.py +++ b/jc/parsers/time.py @@ -137,6 +137,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'cygwin', 'aix', 'freebsd'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/timedatectl.py b/jc/parsers/timedatectl.py index d5ecafaf..5a7d4e98 100644 --- a/jc/parsers/timedatectl.py +++ b/jc/parsers/timedatectl.py @@ -70,6 +70,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] magic_commands = ['timedatectl', 'timedatectl status'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/timestamp.py b/jc/parsers/timestamp.py index faf1226f..73c9d991 100644 --- a/jc/parsers/timestamp.py +++ b/jc/parsers/timestamp.py @@ -102,6 +102,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'aix', 'freebsd', 'darwin', 'win32', 'cygwin'] + tags = ['standard', 'string'] __version__ = info.version diff --git a/jc/parsers/top.py b/jc/parsers/top.py index ed6a7d23..5ca4717c 100644 --- a/jc/parsers/top.py +++ b/jc/parsers/top.py @@ -322,6 +322,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] magic_commands = ['top -b'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/top_s.py b/jc/parsers/top_s.py index 85e9dff3..34d76750 100644 --- a/jc/parsers/top_s.py +++ b/jc/parsers/top_s.py @@ -158,6 +158,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['command'] streaming = True diff --git a/jc/parsers/tracepath.py b/jc/parsers/tracepath.py index 25ca91bc..929ff1ec 100644 --- a/jc/parsers/tracepath.py +++ b/jc/parsers/tracepath.py @@ -138,6 +138,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] magic_commands = ['tracepath', 'tracepath6'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/traceroute.py b/jc/parsers/traceroute.py index e34cf10d..fe6824be 100644 --- a/jc/parsers/traceroute.py +++ b/jc/parsers/traceroute.py @@ -129,6 +129,7 @@ class info(): details = 'Using the trparse library by Luis Benitez at https://github.com/lbenitez000/trparse' compatible = ['linux', 'darwin', 'freebsd'] magic_commands = ['traceroute', 'traceroute6'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/udevadm.py b/jc/parsers/udevadm.py index 78002083..2f51d3be 100644 --- a/jc/parsers/udevadm.py +++ b/jc/parsers/udevadm.py @@ -125,6 +125,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] magic_commands = ['udevadm info'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/ufw.py b/jc/parsers/ufw.py index f91f0692..d3ca7cff 100644 --- a/jc/parsers/ufw.py +++ b/jc/parsers/ufw.py @@ -208,6 +208,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] magic_commands = ['ufw status'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/ufw_appinfo.py b/jc/parsers/ufw_appinfo.py index 7117c474..f893181e 100644 --- a/jc/parsers/ufw_appinfo.py +++ b/jc/parsers/ufw_appinfo.py @@ -144,6 +144,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] magic_commands = ['ufw app'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/uname.py b/jc/parsers/uname.py index 4d3f8356..5997d86d 100644 --- a/jc/parsers/uname.py +++ b/jc/parsers/uname.py @@ -54,6 +54,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'freebsd'] magic_commands = ['uname'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/update_alt_gs.py b/jc/parsers/update_alt_gs.py index 6d0f0eec..633e2a5c 100644 --- a/jc/parsers/update_alt_gs.py +++ b/jc/parsers/update_alt_gs.py @@ -52,6 +52,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] magic_commands = ['update-alternatives --get-selections'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/update_alt_q.py b/jc/parsers/update_alt_q.py index 14c85668..6f35e56d 100644 --- a/jc/parsers/update_alt_q.py +++ b/jc/parsers/update_alt_q.py @@ -138,6 +138,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] magic_commands = ['update-alternatives --query'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/upower.py b/jc/parsers/upower.py index ea1da122..a659717f 100644 --- a/jc/parsers/upower.py +++ b/jc/parsers/upower.py @@ -204,6 +204,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] magic_commands = ['upower'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/uptime.py b/jc/parsers/uptime.py index 3ae1e8a7..3ecd7fb5 100644 --- a/jc/parsers/uptime.py +++ b/jc/parsers/uptime.py @@ -71,6 +71,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'cygwin', 'aix', 'freebsd'] magic_commands = ['uptime'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/url.py b/jc/parsers/url.py index f03235e2..d211ee2d 100644 --- a/jc/parsers/url.py +++ b/jc/parsers/url.py @@ -207,6 +207,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'cygwin', 'win32', 'aix', 'freebsd'] + tags = ['standard', 'string'] __version__ = info.version diff --git a/jc/parsers/vmstat.py b/jc/parsers/vmstat.py index 6112b4d7..ae004bf6 100644 --- a/jc/parsers/vmstat.py +++ b/jc/parsers/vmstat.py @@ -132,6 +132,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] magic_commands = ['vmstat'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/vmstat_s.py b/jc/parsers/vmstat_s.py index 83b83d06..4ef4d847 100644 --- a/jc/parsers/vmstat_s.py +++ b/jc/parsers/vmstat_s.py @@ -105,6 +105,7 @@ class info(): author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux'] + tags = ['command'] streaming = True diff --git a/jc/parsers/w.py b/jc/parsers/w.py index 6dd7f9f4..c1b764d3 100644 --- a/jc/parsers/w.py +++ b/jc/parsers/w.py @@ -110,6 +110,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'cygwin', 'aix', 'freebsd'] magic_commands = ['w'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/wc.py b/jc/parsers/wc.py index 6ae1ebed..49f64a5b 100644 --- a/jc/parsers/wc.py +++ b/jc/parsers/wc.py @@ -60,6 +60,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'cygwin', 'aix', 'freebsd'] magic_commands = ['wc'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/who.py b/jc/parsers/who.py index 67b1af2a..be8c74e7 100644 --- a/jc/parsers/who.py +++ b/jc/parsers/who.py @@ -142,6 +142,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' compatible = ['linux', 'darwin', 'cygwin', 'aix', 'freebsd'] magic_commands = ['who'] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/x509_cert.py b/jc/parsers/x509_cert.py index b3b909d8..040e3751 100644 --- a/jc/parsers/x509_cert.py +++ b/jc/parsers/x509_cert.py @@ -414,6 +414,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' details = 'Using the asn1crypto library at https://github.com/wbond/asn1crypto/releases/tag/1.5.1' compatible = ['linux', 'darwin', 'cygwin', 'win32', 'aix', 'freebsd'] + tags = ['standard', 'file', 'string', 'binary'] __version__ = info.version diff --git a/jc/parsers/xml.py b/jc/parsers/xml.py index d82e7a72..a54de22c 100644 --- a/jc/parsers/xml.py +++ b/jc/parsers/xml.py @@ -87,6 +87,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' details = 'Using the xmltodict library at https://github.com/martinblech/xmltodict' compatible = ['linux', 'darwin', 'cygwin', 'win32', 'aix', 'freebsd'] + tags = ['standard', 'file', 'string'] __version__ = info.version diff --git a/jc/parsers/xrandr.py b/jc/parsers/xrandr.py index b17c0895..60b51802 100644 --- a/jc/parsers/xrandr.py +++ b/jc/parsers/xrandr.py @@ -141,15 +141,13 @@ import jc.utils class info: """Provides parser metadata (version, author, etc.)""" - version = "1.1" description = "`xrandr` command parser" author = "Kevin Lyter" author_email = "lyter_git at sent.com" - - # compatible options: linux, darwin, cygwin, win32, aix, freebsd compatible = ["linux", "darwin", "cygwin", "aix", "freebsd"] magic_commands = ["xrandr"] + tags = ['command'] __version__ = info.version diff --git a/jc/parsers/yaml.py b/jc/parsers/yaml.py index cc962c60..7e121b1a 100644 --- a/jc/parsers/yaml.py +++ b/jc/parsers/yaml.py @@ -93,6 +93,7 @@ class info(): author_email = 'kellyjonbrazil@gmail.com' details = 'Using the ruamel.yaml library at https://pypi.org/project/ruamel.yaml' compatible = ['linux', 'darwin', 'cygwin', 'win32', 'aix', 'freebsd'] + tags = ['standard', 'file', 'string'] __version__ = info.version diff --git a/jc/parsers/zipinfo.py b/jc/parsers/zipinfo.py index 953b7463..a4e957b3 100644 --- a/jc/parsers/zipinfo.py +++ b/jc/parsers/zipinfo.py @@ -83,6 +83,7 @@ class info(): author_email = 'https://github.com/listuser' compatible = ['linux', 'darwin'] magic_commands = ['zipinfo'] + tags = ['command'] __version__ = info.version