From fdf9cea53373b99b6b3bf26f19a6e4f9982b475e Mon Sep 17 00:00:00 2001 From: Shane Jaroch Date: Sun, 15 Feb 2026 23:54:20 -0500 Subject: [PATCH] fix(admin-cli): concatenation/formatting error, i.e., **NOTE:** If there are any features, tools, or admin internals dependent on this output that would break, let me know! I'm hoping this is acceptable, since it's a human-readable command. Current output: ```shell uwu> server list-backups #1 Mon, 9 Feb 2026 20:36:25 +0000: 66135580 bytes, 595 files#2 Wed, 11 Feb 2026 02:33:15 +0000: 270963746 bytes, 1002 files#3 Sat, 14 Feb 2026 22:11:19 +0000: 675905487 bytes, 2139 files ``` Should be: ```shell uwu> server list-backups #1 Mon, 9 Feb 2026 20:36:25 +0000: 66135580 bytes, 595 files #2 Wed, 11 Feb 2026 02:33:15 +0000: 270963746 bytes, 1002 files #3 Sat, 14 Feb 2026 22:11:19 +0000: 675905487 bytes, 2139 files ``` --- changelog.d/list-backups-formatting.feature | 1 + src/admin/server/commands.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/list-backups-formatting.feature diff --git a/changelog.d/list-backups-formatting.feature b/changelog.d/list-backups-formatting.feature new file mode 100644 index 00000000..f40e42e9 --- /dev/null +++ b/changelog.d/list-backups-formatting.feature @@ -0,0 +1 @@ +Updated `list-backups` admin command to output one backup per line. diff --git a/src/admin/server/commands.rs b/src/admin/server/commands.rs index f8195df6..e5ffce8a 100644 --- a/src/admin/server/commands.rs +++ b/src/admin/server/commands.rs @@ -86,7 +86,7 @@ pub(super) async fn list_backups(&self) -> Result { .db .backup_list()? .try_stream() - .try_for_each(|result| write!(self, "{result}")) + .try_for_each(|result| writeln!(self, "{result}")) .await }