From 7f645ff0e9111cc6e05e3abc1abad7d0b1f6a5a9 Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Thu, 19 Dec 2024 23:06:01 +0000 Subject: [PATCH] Make some doc changes to `admin media delete-past-remote-media` Adjust before/after doc to clarify internationally Courtesy of @Aranjedeath Run `cargo fmt`, properly Fix stupid doc command issue Signed-off-by: strawberry --- src/admin/media/mod.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/admin/media/mod.rs b/src/admin/media/mod.rs index 046be556..d212aab4 100644 --- a/src/admin/media/mod.rs +++ b/src/admin/media/mod.rs @@ -26,23 +26,23 @@ pub(super) enum MediaCommand { /// filesystem. This will always ignore errors. DeleteList, - /// - Deletes all remote media in the last/after "X" time using filesystem - /// metadata first created at date, or fallback to last modified date. - /// This will always ignore errors by default. - /// - /// Synapse + /// - Deletes all remote (and optionally local) media created before or + /// after \[duration] time using filesystem metadata first created at + /// date, or fallback to last modified date. This will always ignore + /// errors by default. DeletePastRemoteMedia { - /// - The duration (at or after/before), e.g. "5m" to delete all media - /// in the past or up to 5 minutes + /// - The relative time (e.g. 30s, 5m, 7d) within which to search duration: String, + /// - Only delete media created more recently than \[duration] ago #[arg(long, short)] before: bool, + /// - Only delete media created after \[duration] ago #[arg(long, short)] after: bool, - /// Long argument to delete local media + /// - Long argument to additionally delete local media #[arg(long)] yes_i_want_to_delete_local_media: bool, },