Tom Hubrecht
170f092ce2
gc: Unify UX across the 3 cli ways to collect garbage
...
There are currently 4 different ways to run garbage collection using
lix:
- `nix-collect-garbage`
- `nix-store --gc`
- `nix store gc`
- (using the daemon directly)
As they were written all at different times, their output varies (and is
broken in some case). This unifies the display of informations in the
following ways:
- The list of paths in the results is always printed (in the nix3 cli it
is hidden unless `-v` is passed)
- The number of paths in the result set is always displayed
- The size of deleted paths is only shown when actually deleting things
(as it would have been 0B in any case)
Fixes #905
Change-Id: I40d9ec7c6d76795f6c6dd30df196d1e855bdb9db
2025-11-20 11:53:18 +00:00
..
2025-07-28 23:00:44 +00:00
2023-12-01 12:06:43 -05:00
2025-08-13 03:05:49 +00:00
2025-11-18 20:01:23 +01:00
2025-02-16 14:15:36 +01:00
2024-06-01 20:31:24 +02:00
2025-10-29 20:13:23 +01:00
2025-07-29 03:34:49 +00:00
2025-11-19 17:46:52 +01:00
2025-08-25 17:11:45 +00:00
2023-12-01 12:06:43 -05:00
2024-10-30 15:12:35 +04:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2025-01-23 17:57:52 -08:00
2025-10-30 15:10:10 +01:00
2023-12-01 12:06:43 -05:00
2025-07-22 10:39:32 +00:00
2023-12-01 12:06:43 -05:00
2025-10-13 11:26:49 +00:00
2023-12-01 12:06:43 -05:00
2025-10-13 11:26:49 +00:00
2024-08-25 19:55:47 +02:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2025-06-24 10:49:49 +00:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2025-06-24 10:49:49 +00:00
2025-07-22 15:32:25 +02:00
2025-09-21 13:58:26 +02:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2025-07-27 19:42:37 +00:00
2025-08-23 16:23:35 +02:00
2025-01-20 15:05:50 +01:00
2025-07-22 10:39:32 +00:00
2025-07-07 11:44:17 +00:00
2025-07-07 11:44:17 +00:00
2025-11-18 19:52:17 +01:00
2025-11-14 14:58:15 +01:00
2023-12-01 12:06:43 -05:00
2025-05-27 22:20:22 +00:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2024-10-30 15:12:35 +04:00
2024-05-03 16:26:16 +02:00
2025-11-03 18:24:07 +01:00
2024-06-01 20:31:24 +02:00
2025-07-07 11:44:17 +00:00
2025-07-07 11:44:17 +00:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2024-03-04 07:15:08 +01:00
2025-05-29 15:25:12 +02:00
2025-05-29 15:25:12 +02:00
2024-06-30 19:28:14 +02:00
2023-12-01 12:06:43 -05:00
2025-07-07 11:44:17 +00:00
2023-12-01 12:06:43 -05:00
2024-05-08 19:31:43 +00:00
2024-05-08 19:31:43 +00:00
2024-03-07 10:46:47 +01:00
2025-05-22 14:00:19 +02:00
2024-09-28 14:52:06 +02:00
2025-05-28 22:24:23 +00:00
2023-12-01 12:06:43 -05:00
2024-08-17 15:48:10 +00:00
2025-01-26 11:22:03 +01:00
2023-12-01 12:06:43 -05:00
2025-03-21 13:19:15 -07:00
2023-12-01 12:06:43 -05:00
2025-02-27 00:26:48 +01:00
2025-02-27 00:26:48 +01:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2025-05-08 20:23:12 +02:00
2025-07-22 10:39:32 +00:00
2024-09-26 14:32:29 -07:00
2024-09-26 14:32:29 -07:00
2024-06-27 22:44:16 -07:00
2024-03-29 22:57:40 -07:00
2025-06-01 18:59:23 +02:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2024-07-19 20:55:55 +00:00
2024-04-25 23:24:21 -04:00
2024-04-25 23:24:21 -04:00
2025-11-20 11:53:18 +00:00
2024-10-14 17:19:22 +04:00
2024-03-07 10:46:47 +01:00
2024-01-11 07:21:16 -05:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2025-05-11 17:26:55 +02:00
2024-12-06 00:59:53 +01:00
2025-07-29 03:34:49 +00:00
2024-06-24 14:00:43 -07:00
2025-05-21 20:36:20 +02:00
2025-11-18 19:45:15 +01:00
2024-04-08 15:40:12 -07:00
2025-07-27 19:42:37 +00:00
2024-04-08 15:40:12 -07:00
2025-02-16 14:15:36 +01:00
2025-11-20 08:45:29 +00:00
2024-12-10 15:43:31 -08:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2025-07-25 21:04:16 +02:00
2025-09-12 23:22:11 +02:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2024-03-29 22:57:40 -07:00
2023-12-01 12:06:43 -05:00
2024-07-09 13:55:05 +00:00
2024-03-07 03:34:00 +01:00
2024-03-07 03:34:00 +01:00
2024-03-07 03:34:00 +01:00
2024-06-24 14:00:43 -07:00
2025-05-20 13:27:04 +02:00
2023-12-01 12:06:43 -05:00
2025-08-24 01:15:15 +02:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2025-02-27 00:26:48 +01:00
2023-12-01 12:06:43 -05:00
2024-05-12 23:04:21 +02:00
2025-07-22 10:39:32 +00:00
2025-02-17 16:05:06 -08:00
2024-06-24 14:00:43 -07:00
2024-03-29 22:57:40 -07:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2025-02-27 00:26:48 +01:00
2025-02-27 00:26:48 +01:00
2023-12-01 12:06:43 -05:00
2024-08-23 17:49:15 -07:00
2025-01-05 14:50:45 +01:00
2025-01-05 14:50:45 +01:00
2025-07-22 10:39:32 +00:00
2025-07-27 01:42:41 +02:00
2023-12-01 12:06:43 -05:00
2025-09-12 23:22:11 +02:00
2023-12-01 12:06:43 -05:00
2024-11-28 18:15:52 +01:00
2025-07-27 19:42:37 +00:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2025-07-22 10:39:32 +00:00
2024-03-04 07:50:55 +01:00
2025-03-07 07:45:08 -05:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2024-03-29 22:57:40 -07:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2025-07-22 10:39:32 +00:00
2023-12-01 12:06:43 -05:00
2025-07-22 10:39:32 +00:00
2025-11-05 00:02:10 +01:00
2023-12-01 12:06:43 -05:00
2025-03-11 20:21:24 +01:00
2025-06-24 10:49:49 +00:00
2024-04-11 15:43:58 +03:00
2025-10-17 18:41:58 +00:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2024-03-14 14:30:38 -07:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2025-07-27 19:42:37 +00:00
2023-12-01 12:06:43 -05:00
2023-12-01 12:06:43 -05:00
2025-05-11 01:07:18 +02:00
2023-12-01 12:06:43 -05:00