mirror of
https://github.com/onyx-and-iris/slobs-cli.git
synced 2026-04-20 16:03:39 +00:00
disable --help wrapping, realign the text
add --help shortname -h patch bump
This commit is contained in:
@@ -46,11 +46,6 @@ class Disabled(Style):
|
||||
highlight: str = 'none'
|
||||
warning: str = 'none'
|
||||
|
||||
def __post__init__(self):
|
||||
"""Post-initialization to set default values."""
|
||||
super().__post_init__()
|
||||
os.environ['NO_COLOR'] = '1'
|
||||
|
||||
|
||||
@register_style
|
||||
@dataclass
|
||||
@@ -210,4 +205,7 @@ class Black(Style):
|
||||
|
||||
def request_style_obj(style_name: str, no_border: bool) -> Style:
|
||||
"""Request a style object by name."""
|
||||
if style_name == 'disabled':
|
||||
os.environ['NO_COLOR'] = '1'
|
||||
|
||||
return registry[style_name.lower()](no_border=no_border)
|
||||
|
||||
Reference in New Issue
Block a user