kloudlite / kl

Kloudlite CLI Client
GNU Affero General Public License v3.0
5 stars 1 forks source link

Notify Developers of New CLI Version and Enable Update via kl update Command #200

Closed abdheshnayak closed 2 hours ago

abdheshnayak commented 4 hours ago

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.

abdheshnayak commented 4 hours ago

Solution Proposal

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.

Key Features:

  1. 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.

  2. Infrequent Update Warnings:
    To avoid overwhelming the user with frequent warnings, we propose displaying an update notice only under specific conditions:

    • When the user is using an outdated version.
    • After a significant period of inactivity (e.g., if the tool has not been used for 5-6 hours or more).
  3. 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.