From 55e60ff97748babb1c0a702a830e32e20d558f23 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Sun, 22 Jun 2025 02:49:32 +0100 Subject: [PATCH] in case NO_COLOR is set manually patch bump --- obsws_cli/__about__.py | 2 +- obsws_cli/util.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/obsws_cli/__about__.py b/obsws_cli/__about__.py index 774e75d..8e8dd91 100644 --- a/obsws_cli/__about__.py +++ b/obsws_cli/__about__.py @@ -1,4 +1,4 @@ # SPDX-FileCopyrightText: 2025-present onyx-and-iris # # SPDX-License-Identifier: MIT -__version__ = "0.18.1" +__version__ = "0.18.2" diff --git a/obsws_cli/util.py b/obsws_cli/util.py index f95a99e..6832ef3 100644 --- a/obsws_cli/util.py +++ b/obsws_cli/util.py @@ -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 '❌'