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

Notify user when a new version is available #265

Open
TimoGlastra opened this issue Apr 27, 2023 · 2 comments
Open

Notify user when a new version is available #265

TimoGlastra opened this issue Apr 27, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@TimoGlastra
Copy link
Member

Describe your new idea or enhancement

When using the CLI it would be great if it would periodically check the latest release of Siera CLI and compare it to the version that is currently installed and prompt the user to update.

@TimoGlastra TimoGlastra added the enhancement New feature or request label Apr 27, 2023
@morrieinmaas
Copy link
Contributor

Could check every time when Siera command is invoked if an update is available and print a message or issue a prompt. Print message might be better/ less intrusive cos otherwise usage in scripts breaks

@berendsliedrecht
Copy link
Member

Hmmmm, I will have a think about this. Commonly, this is not the responsibility of the CLI, but of the package manager.

Solution one: check on every command

  • This to me feels way too overkill as I would really not like to see every single time that there is an update. Also, this will break scripts like jq.

Solution two: check periodically

  • I think this would be better in the end but we need to manage state, which could be done in the configuration but thats not the standard way of doing it. This would also break scripts as mentioned before.

Are these the two solutions or am I missing something here?

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

3 participants