mirror of
https://github.com/onyx-and-iris/obsws-cli.git
synced 2026-04-18 06:53:38 +00:00
in case NO_COLOR is set manually
patch bump
This commit is contained in:
@@ -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 '❌'
|
||||
|
||||
Reference in New Issue
Block a user