def cli(ctx, force, caller, no_ansi):
    try:
        if (no_ansi or str(
                os.getenv("PLATFORMIO_NO_ANSI",
                          os.getenv("PLATFORMIO_DISABLE_COLOR"))).lower()
                == "true"):
            # pylint: disable=protected-access
            click._compat.isatty = lambda stream: False
        elif (str(
                os.getenv(
                    "PLATFORMIO_FORCE_ANSI",
                    os.getenv("PLATFORMIO_FORCE_COLOR"))).lower() == "true"):
            # pylint: disable=protected-access
            click._compat.isatty = lambda stream: True
    except:  # pylint: disable=bare-except
        pass

    maintenance.on_platformio_start(ctx, force, caller)
Exemple #2
0
def cli(ctx, force, caller):
    maintenance.on_platformio_start(ctx, force, caller)
Exemple #3
0
def cli(ctx, force, caller):
    maintenance.on_platformio_start(ctx, force, caller)
Exemple #4
0
def cli(ctx, force, caller):
    if not caller and getenv("PLATFORMIO_CALLER"):
        caller = getenv("PLATFORMIO_CALLER")
    maintenance.on_platformio_start(ctx, force, caller)
Exemple #5
0
def cli(ctx):
    maintenance.on_platformio_start(ctx)
Exemple #6
0
def cli(ctx, force, caller):
    if not caller and getenv("PLATFORMIO_CALLER"):
        caller = getenv("PLATFORMIO_CALLER")
    maintenance.on_platformio_start(ctx, force, caller)
Exemple #7
0
def cli(ctx):
    maintenance.on_platformio_start(ctx)