Add a command to delete assets
This commit is contained in:
parent
af5990796e
commit
ebe22cfc10
6 changed files with 114 additions and 0 deletions
|
@ -5,6 +5,7 @@ use args::{AssetsCommands, PeopleCommands, ServerCommands};
|
|||
use clap::Parser;
|
||||
use color_eyre::eyre::{Result, WrapErr};
|
||||
use color_eyre::Section;
|
||||
use commands::delete_assets::delete_assets;
|
||||
use commands::list_assets::list_assets;
|
||||
use commands::missing_date_of_birth::missing_date_of_birth;
|
||||
use commands::server_features::server_features;
|
||||
|
@ -54,6 +55,9 @@ async fn main() -> Result<()> {
|
|||
|
||||
match &args.command {
|
||||
Commands::Assets { assets_command } => match assets_command {
|
||||
AssetsCommands::Delete { offline } => {
|
||||
delete_assets(&client, *offline, args.dry_run, args.no_confirm).await
|
||||
}
|
||||
AssetsCommands::List { offline } => list_assets(*offline, &client).await,
|
||||
},
|
||||
Commands::People { people_command } => match people_command {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue