def prompt_upgrade()

in wadebug/cli.py [0:0]


def prompt_upgrade(version):
    from outdated import check_outdated

    try:
        is_outdated, latest_version = check_outdated("wadebug", version)
        if is_outdated:
            click.secho(
                "The current version of wadebug ({}) is out of date. "
                "Run `pip3 install wadebug --upgrade` "
                "to upgrade to the latest version ({})\n".format(
                    version, latest_version
                ),
                fg="yellow",
            )
    except Exception:
        if Config().development_mode:
            raise