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

add slots

This commit is contained in:
Kelly Brazil
2022-10-03 18:03:06 -07:00
parent e7a8cc3b8b
commit 7650d831e3

View File

@ -54,6 +54,15 @@ if PYGMENTS_INSTALLED:
class JcCli(): class JcCli():
__slots__ = [
'data_in', 'data_out', 'options', 'args', 'parser_module', 'parser_name',
'indent', 'pad', 'env_colors', 'custom_colors', 'show_hidden', 'ascii_only', 'json_separators',
'json_indent', 'path_string', 'jc_exit', 'JC_ERROR_EXIT', 'exit_code', '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: def __init__(self) -> None:
self.data_in = None self.data_in = None
@ -103,7 +112,6 @@ class JcCli():
self.magic_stderr = None self.magic_stderr = None
self.magic_returncode = 0 self.magic_returncode = 0
def set_custom_colors(self): def set_custom_colors(self):
""" """
Sets the custom_colors dictionary to be used in Pygments custom style class. Sets the custom_colors dictionary to be used in Pygments custom style class.
@ -312,7 +320,6 @@ Examples:
''' '''
return textwrap.dedent(versiontext_string) return textwrap.dedent(versiontext_string)
def yaml_out(self): def yaml_out(self):
""" """
Return a YAML formatted string. String may include color codes. If the Return a YAML formatted string. String may include color codes. If the