add interface to get file metadata w/ admin command
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
e7b2c14280
commit
7b0e830f4c
3 changed files with 27 additions and 2 deletions
|
@ -2,7 +2,7 @@ mod commands;
|
|||
|
||||
use clap::Subcommand;
|
||||
use conduit::Result;
|
||||
use ruma::{EventId, MxcUri, ServerName};
|
||||
use ruma::{EventId, MxcUri, OwnedMxcUri, ServerName};
|
||||
|
||||
use crate::admin_command_dispatch;
|
||||
|
||||
|
@ -55,4 +55,9 @@ pub(super) enum MediaCommand {
|
|||
#[arg(short, long)]
|
||||
force: bool,
|
||||
},
|
||||
|
||||
GetFileInfo {
|
||||
/// The MXC URL to lookup info for.
|
||||
mxc: OwnedMxcUri,
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue