Closed abdheshnayak closed 2 hours ago
To manage version updates more effectively, we suggest implementing a DNS-based version check mechanism. This would involve periodically comparing the currently running version of the tool with the latest available version.
Version Check via DNS:
Implement a lightweight DNS query that checks the latest available version of the tool. This approach minimizes the overhead and ensures the tool remains responsive.
Infrequent Update Warnings:
To avoid overwhelming the user with frequent warnings, we propose displaying an update notice only under specific conditions:
Graceful Notification:
The update warning should be subtle and non-intrusive. Ideally, it should be displayed only on the first use after a defined period of inactivity, ensuring that users aren't constantly interrupted during regular usage.
Notify developers when a new version of the CLI is available.
Provide an option for developers to update the CLI using the
kl update
command.