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 a command to check for updates #3205

Open
mpal9000 opened this issue Oct 25, 2024 · 2 comments
Open

Add a command to check for updates #3205

mpal9000 opened this issue Oct 25, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@mpal9000
Copy link

Feature Overview

It would be nice to have an aqua check updates or aqua outdated command, that would check for available newer versions of all/installed tools, without applying the updates. For the tools that use semver it could print current, new and latest versions.

Why is the feature needed?

It is convenient to be able to check from the command line, if any of the installed tools has a newer version published. Also the exit code can be used to do some action.

Workaround

aqua list | aqua generate -f -, but the output is not optimal and doesn't work when checking only for --installed tools (#3201).

Example Code

No response

Note

No response

@mpal9000 mpal9000 added the enhancement New feature or request label Oct 25, 2024
@suzuki-shunsuke
Copy link
Member

Thank you for your proposal.
After checking updates, what do you do?
This question is important to decide the feature you really need and the format of output.
If you simply update tools, aqua up is enough.
Do you want to run the command for any automation?
If so, what format do you expect?
Or do you expect human friendly output?
Do you want to read release note or something to judge if you update tools?

the exit code can be used to do some action.

It seems that you want to do some automation.
Do you expect the exit code is non zero if some tools are updated?

@mpal9000
Copy link
Author

Currently I need the command to know if there are any updates, by reading some human friendly output. I integrate "check update" commands of other tools I use, like my system's package manager and check if my system needs any update as a whole. Then I update my system as a whole via different package/version/plugin managers. The order of running those update commands can be important. For example the system packages can be dependencies of tools I install via aqua. Dependencies that aqua (and other similar tools) don't/won't manage. Or the aqua tools can be dependencies of plugins I install via my editors plugin manager. Using a system with rolling releases, requires a more careful update process.
Regarding the action triggering, the exit code is enough most of the times. In general the output of a command should be human friendly and available also as structured (e.g. JSON) via a command line option (if needed). Currently I don't need a structured output, just writing what I use/see in other CLIs.
An example of an automation using the exit code is notifying the system administrator about available updates.

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

2 participants