[Improvement]: Notify the user when there is a new bal tool version is available. #42232
Labels
Area/CLI-BuildTools
Team/DevTools
Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs )
Type/Improvement
Description
Currently, when a user pulls and uses a
bal tool
(eg- health, edi), there is no simple way for the user to be notified if there is a newer version of that tool available. The only way is for the user to invokebal tool search
(bal tool search health) and check the latest version.Describe your problem(s)
This will cause the user not updating to the latest tool version although the tool publisher has published newer versions.
Describe your solution(s)
We should notify the user when there is a newer tool version as an INFO/WARNING. This notification can be sent when the tool is called.
If sending the notification every time the command is executed is too frequent, we can send this only if the last notification was before at least 24 hours (Similar to what we do with package sticky).
Furthermore, we can also send the notification when a
bal tool
subcommand is invoked. However, this needs to be looked at again since providing a warning about a new version in thehealth
when pulling another tool might look out of place.Related area
-> Compilation
Related issue(s) (optional)
#40264
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response
The text was updated successfully, but these errors were encountered: