mirror of
https://github.com/onyx-and-iris/obsws-cli.git
synced 2025-06-27 14:00:30 +01:00
in case NO_COLOR is set manually
patch bump
This commit is contained in:
parent
922efddf7a
commit
55e60ff977
@ -1,4 +1,4 @@
|
|||||||
# SPDX-FileCopyrightText: 2025-present onyx-and-iris <code@onyxandiris.online>
|
# SPDX-FileCopyrightText: 2025-present onyx-and-iris <code@onyxandiris.online>
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
__version__ = "0.18.1"
|
__version__ = "0.18.2"
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
"""module contains utility functions for the obsws_cli package."""
|
"""module contains utility functions for the obsws_cli package."""
|
||||||
|
|
||||||
|
import os
|
||||||
|
|
||||||
import typer
|
import typer
|
||||||
|
|
||||||
|
|
||||||
@ -13,6 +15,6 @@ def check_mark(ctx: typer.Context, value: bool, empty_if_false: bool = False) ->
|
|||||||
if empty_if_false and not value:
|
if empty_if_false and not value:
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
if ctx.obj['style'].name == 'no_colour':
|
if os.getenv('NO_COLOR', '') != '' or ctx.obj['style'].name == 'no_colour':
|
||||||
return '✓' if value else '✗'
|
return '✓' if value else '✗'
|
||||||
return '✅' if value else '❌'
|
return '✅' if value else '❌'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user