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 <strawberry@puppygock.gay>
This commit is contained in:
parent
5b5735f653
commit
7f645ff0e9
1 changed files with 8 additions and 8 deletions
|
@ -26,23 +26,23 @@ pub(super) enum MediaCommand {
|
||||||
/// filesystem. This will always ignore errors.
|
/// filesystem. This will always ignore errors.
|
||||||
DeleteList,
|
DeleteList,
|
||||||
|
|
||||||
/// - Deletes all remote media in the last/after "X" time using filesystem
|
/// - Deletes all remote (and optionally local) media created before or
|
||||||
/// metadata first created at date, or fallback to last modified date.
|
/// after \[duration] time using filesystem metadata first created at
|
||||||
/// This will always ignore errors by default.
|
/// date, or fallback to last modified date. This will always ignore
|
||||||
///
|
/// errors by default.
|
||||||
/// Synapse
|
|
||||||
DeletePastRemoteMedia {
|
DeletePastRemoteMedia {
|
||||||
/// - The duration (at or after/before), e.g. "5m" to delete all media
|
/// - The relative time (e.g. 30s, 5m, 7d) within which to search
|
||||||
/// in the past or up to 5 minutes
|
|
||||||
duration: String,
|
duration: String,
|
||||||
|
|
||||||
|
/// - Only delete media created more recently than \[duration] ago
|
||||||
#[arg(long, short)]
|
#[arg(long, short)]
|
||||||
before: bool,
|
before: bool,
|
||||||
|
|
||||||
|
/// - Only delete media created after \[duration] ago
|
||||||
#[arg(long, short)]
|
#[arg(long, short)]
|
||||||
after: bool,
|
after: bool,
|
||||||
|
|
||||||
/// Long argument to delete local media
|
/// - Long argument to additionally delete local media
|
||||||
#[arg(long)]
|
#[arg(long)]
|
||||||
yes_i_want_to_delete_local_media: bool,
|
yes_i_want_to_delete_local_media: bool,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue