in case NO_COLOR is set manually

patch bump
This commit is contained in:
onyx-and-iris 2025-06-22 02:49:32 +01:00
parent 922efddf7a
commit 55e60ff977
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2025-present onyx-and-iris <code@onyxandiris.online>
#
# SPDX-License-Identifier: MIT
__version__ = "0.18.1"
__version__ = "0.18.2"

View File

@ -1,5 +1,7 @@
"""module contains utility functions for the obsws_cli package."""
import os
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:
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 ''