From 6b2ef8218f1313d2c7d4455d85d77dea933e96e8 Mon Sep 17 00:00:00 2001 From: Diptesh Roy Date: Fri, 26 Jun 2026 13:09:13 +0530 Subject: [PATCH] feat: output current time alongside API key reset time in github api-keys CLI Adds a 'Current Time' line above the API key table in the 'collectoss github api-keys' command output. This makes it easier to compare key reset times against the current time at a glance. Fixes #412 Signed-off-by: Diptesh Roy --- collectoss/application/cli/github.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/collectoss/application/cli/github.py b/collectoss/application/cli/github.py index e3b8f75a2..771a2eefc 100644 --- a/collectoss/application/cli/github.py +++ b/collectoss/application/cli/github.py @@ -52,6 +52,9 @@ def update_api_key(): valid_key_data = sorted(valid_key_data, key=lambda x: x[1]["requests_remaining"]) + current_time = epoch_to_local_time_with_am_pm(datetime.now().timestamp()) + print(f"Current Time: {current_time.strip()}") + print("") core_request_header = "Core Requests Left" core_reset_header = "Core Reset Time" graphql_request_header = "Graphql Requests Left"