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)
def cli(ctx, force, caller): maintenance.on_platformio_start(ctx, force, caller)
def cli(ctx, force, caller): if not caller and getenv("PLATFORMIO_CALLER"): caller = getenv("PLATFORMIO_CALLER") maintenance.on_platformio_start(ctx, force, caller)
def cli(ctx): maintenance.on_platformio_start(ctx)