INNER CODE UNIT · Python

_inner_main

hartwork/git-delete-merged-branches · git_delete_merged_branches/_cli.py:188

def _inner_main():
    colorize = "NO_COLOR" not in os.environ
    if colorize:
        colorama.init()

    messenger = Messenger(colorize=colorize)

    config = _parse_command_line(colorize=colorize)
    try:
        _innermost_main(config, messenger, colorize)
    except CalledProcessError as e:
        # Produce more human-friendly output than str(e)
        message = f"Command '{' '.join(e.cmd)}' returned non-zero exit status {e.returncode}."
        messenger.tell_error(message)
        sys.exit(1)
    except Exception as e:
        if config.debug:
            traceback.print_exc()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…