Commit b38f7e1d authored by Adrian DC's avatar Adrian DC
Browse files

fix(main): ensure 'FORCE_COLOR=0' if using '--no-color' flag

Signed-off-by: default avatarAdrian DC <radian.dc@gmail.com>
parent 3de52a27
Loading
Loading
Loading
Loading
Loading
+1
Changes for src/cli/main.py: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -436,6 +436,7 @@ def main() -> None:

    # Configure no_color
    if options.no_color:
        environ[Bundle.ENV_FORCE_COLOR] = '0'
        environ[Bundle.ENV_NO_COLOR] = '1'

    # Prepare colors
+1
Changes for src/package/bundle.py: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@ class Bundle:
    ENV_DEBUG_UPDATES_FAKE: str = 'DEBUG_UPDATES_FAKE'
    ENV_DEBUG_UPDATES_OFFLINE: str = 'DEBUG_UPDATES_OFFLINE'
    ENV_DEBUG_VERSION_FAKE: str = 'DEBUG_VERSION_FAKE'
    ENV_FORCE_COLOR: str = 'FORCE_COLOR'
    ENV_GITLAB_TOKEN: str = 'GITLAB_TOKEN'
    ENV_NO_COLOR: str = 'NO_COLOR'
    ENV_PYTHON_GITLAB_CFG: str = 'PYTHON_GITLAB_CFG'