Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add periodic version check #2

Open
joelspadin opened this issue Aug 24, 2024 · 0 comments
Open

Add periodic version check #2

joelspadin opened this issue Aug 24, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@joelspadin
Copy link
Collaborator

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.

@joelspadin joelspadin added the enhancement New feature or request label Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant