Пример #1
0
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)
Пример #2
0
def cli(ctx, force, caller):
    maintenance.on_platformio_start(ctx, force, caller)
Пример #3
0
def cli(ctx, force, caller):
    maintenance.on_platformio_start(ctx, force, caller)
Пример #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)
Пример #5
0
def cli(ctx):
    maintenance.on_platformio_start(ctx)
Пример #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)
Пример #7
0
def cli(ctx):
    maintenance.on_platformio_start(ctx)