Skip to content

Add periodic version check #2

@joelspadin

Description

@joelspadin

To let users know when a new version of ZMK CLI is available, it would be helpful to add a check on startup that gets the latest version from PyPI and prints a message telling the user to update. If possible, we should detect whether ZMK CLI was installed with pip or pipx and print an appropriate upgrade command, e.g.

# pipx
pipx upgrade zmk

# pip
python3 -m pip install -U zmk

This check should only be run periodically, e.g. the first time the program is run each day, so we don't waste time repeatedly checking the version. There should also be a setting to disable this, and possibly one to adjust the time between checks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions