1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-07-13 01:20:24 +02:00

normalize show_hidden and show_deprecated to be False by default

This commit is contained in:
Kelly Brazil
2022-10-18 09:35:24 -07:00
parent 8bd7a00410
commit 597a8f468e
2 changed files with 12 additions and 12 deletions

View File

@ -233,10 +233,10 @@ class JcCli():
'license': info.license, 'license': info.license,
'python_version': '.'.join((str(sys.version_info.major), str(sys.version_info.minor), str(sys.version_info.micro))), 'python_version': '.'.join((str(sys.version_info.major), str(sys.version_info.minor), str(sys.version_info.micro))),
'python_path': sys.executable, 'python_path': sys.executable,
'parser_count': len(parser_mod_list()), 'parser_count': len(parser_mod_list(show_hidden=True, show_deprecated=True)),
'standard_parser_count': len(standard_parser_mod_list()), 'standard_parser_count': len(standard_parser_mod_list(show_hidden=True, show_deprecated=True)),
'streaming_parser_count': len(streaming_parser_mod_list()), 'streaming_parser_count': len(streaming_parser_mod_list(show_hidden=True, show_deprecated=True)),
'plugin_parser_count': len(plugin_parser_mod_list()), 'plugin_parser_count': len(plugin_parser_mod_list(show_hidden=True, show_deprecated=True)),
'parsers': all_parser_info(show_hidden=True, show_deprecated=True) 'parsers': all_parser_info(show_hidden=True, show_deprecated=True)
} }

View File

@ -388,8 +388,8 @@ def parse(
return jc_parser.parse(data, quiet=quiet, raw=raw, **kwargs) return jc_parser.parse(data, quiet=quiet, raw=raw, **kwargs)
def parser_mod_list( def parser_mod_list(
show_hidden: bool = True, show_hidden: bool = False,
show_deprecated: bool = True show_deprecated: bool = False
) -> List[str]: ) -> List[str]:
"""Returns a list of all available parser module names.""" """Returns a list of all available parser module names."""
plist: List[str] = [] plist: List[str] = []
@ -407,8 +407,8 @@ def parser_mod_list(
return plist return plist
def plugin_parser_mod_list( def plugin_parser_mod_list(
show_hidden: bool = True, show_hidden: bool = False,
show_deprecated: bool = True show_deprecated: bool = False
) -> List[str]: ) -> List[str]:
""" """
Returns a list of plugin parser module names. This function is a Returns a list of plugin parser module names. This function is a
@ -429,8 +429,8 @@ def plugin_parser_mod_list(
return plist return plist
def standard_parser_mod_list( def standard_parser_mod_list(
show_hidden: bool = True, show_hidden: bool = False,
show_deprecated: bool = True show_deprecated: bool = False
) -> List[str]: ) -> List[str]:
""" """
Returns a list of standard parser module names. This function is a Returns a list of standard parser module names. This function is a
@ -454,8 +454,8 @@ def standard_parser_mod_list(
return plist return plist
def streaming_parser_mod_list( def streaming_parser_mod_list(
show_hidden: bool = True, show_hidden: bool = False,
show_deprecated: bool = True show_deprecated: bool = False
) -> List[str]: ) -> List[str]:
""" """
Returns a list of streaming parser module names. This function is a Returns a list of streaming parser module names. This function is a