Subhrajit Makur
93b19a7e72
feat: add watch mode to gt status ( #8 ) ( #11 ) ( #231 )
...
* feat: add watch mode to gt status
- Add --watch/-w flag for continuous status refresh
- Add --interval/-n flag to set refresh interval (default 2s)
- Clears screen and shows timestamp on each refresh
- Graceful Ctrl+C handling to stop watch mode
- Works with existing --fast and --json flags
* fix(status): validate watch interval to prevent panic on zero/negative values
* fix(status): harden watch mode with signal cleanup, TTY detection, and tests
- Add defer signal.Stop() to prevent signal handler leak
- Reject --json + --watch combination (produces invalid output)
- Add TTY detection for ANSI escapes (safe when piped)
- Use style.Dim for header when in TTY mode
- Fix duplicate '(default 2)' in flag help
- Add tests for interval validation and flag conflicts
2026-01-06 19:10:43 -08:00
..
2026-01-01 18:58:56 -08:00
2026-01-01 18:58:56 -08:00
2026-01-05 00:42:24 -08:00
2026-01-03 16:11:55 -08:00
2026-01-06 13:00:46 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:11:55 -08:00
2026-01-01 18:53:39 -08:00
2026-01-05 06:58:46 +01:00
2026-01-05 06:58:46 +01:00
2026-01-05 00:21:42 -08:00
2026-01-03 21:37:05 +01:00
2026-01-06 01:52:19 -08:00
2026-01-04 13:17:39 -08:00
2026-01-04 14:01:02 -08:00
2026-01-04 14:01:02 -08:00
2026-01-06 19:04:29 -08:00
2026-01-05 19:11:14 -08:00
2026-01-03 21:37:05 +01:00
2026-01-04 15:30:57 -05:00
2026-01-03 11:49:42 -08:00
2026-01-03 16:23:44 -08:00
2026-01-06 19:04:29 -08:00
2026-01-05 00:42:24 -08:00
2026-01-01 18:54:36 -08:00
2026-01-06 19:04:29 -08:00
2026-01-03 21:37:05 +01:00
2026-01-06 12:59:37 -08:00
2026-01-06 13:09:32 -08:00
2026-01-04 00:17:37 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:12:27 -08:00
2026-01-06 12:59:45 -08:00
2026-01-04 19:46:27 -08:00
2026-01-03 16:11:55 -08:00
2026-01-04 23:13:03 -08:00
2026-01-04 23:13:03 -08:00
2026-01-05 21:26:31 -08:00
2026-01-03 16:11:55 -08:00
2026-01-02 00:22:17 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 21:00:00 -08:00
2026-01-03 21:00:00 -08:00
2026-01-05 19:39:57 -08:00
2026-01-01 18:58:56 -08:00
2026-01-03 16:11:55 -08:00
2026-01-05 19:39:57 -08:00
2026-01-03 16:11:55 -08:00
2026-01-02 17:18:27 -08:00
2026-01-02 17:18:27 -08:00
2026-01-06 13:09:32 -08:00
2026-01-01 18:56:35 -08:00
2026-01-01 18:54:36 -08:00
2026-01-05 00:42:24 -08:00
2026-01-03 16:11:55 -08:00
2026-01-01 19:16:06 -08:00
2026-01-04 15:16:56 -08:00
2026-01-03 21:37:05 +01:00
2026-01-03 16:11:55 -08:00
2026-01-04 14:28:40 -08:00
2026-01-05 19:38:53 -08:00
2026-01-03 21:53:30 -08:00
2026-01-06 12:59:49 -08:00
2026-01-02 18:25:15 -08:00
2026-01-01 19:11:04 -08:00
2026-01-05 07:23:06 -08:00
2026-01-06 01:51:25 -08:00
2026-01-03 16:11:55 -08:00
2026-01-04 20:53:17 -05:00
2026-01-06 13:00:46 -08:00
2026-01-06 19:04:29 -08:00
2026-01-06 19:10:43 -08:00
2026-01-06 19:10:43 -08:00
2026-01-05 00:42:24 -08:00
2026-01-05 21:18:15 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:11:55 -08:00
2026-01-01 16:01:28 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 14:33:24 -08:00
2026-01-03 16:11:55 -08:00
2026-01-05 19:39:57 -08:00
2026-01-06 01:51:25 -08:00
2026-01-05 00:51:00 -08:00
2026-01-06 13:33:20 -08:00
2026-01-06 12:59:49 -08:00