Add an assets list command
This commit is contained in:
parent
a8796b2728
commit
c026375ce1
5 changed files with 109 additions and 5 deletions
|
@ -1,10 +1,11 @@
|
|||
include!(concat!(env!("OUT_DIR"), "/codegen.rs"));
|
||||
|
||||
use crate::args::Commands;
|
||||
use args::{PeopleCommands, ServerCommands};
|
||||
use args::{AssetsCommands, PeopleCommands, ServerCommands};
|
||||
use clap::Parser;
|
||||
use color_eyre::eyre::{Result, WrapErr};
|
||||
use color_eyre::Section;
|
||||
use commands::list_assets::list_assets;
|
||||
use commands::missing_date_of_birth::missing_date_of_birth;
|
||||
use commands::server_features::server_features;
|
||||
use commands::server_version::server_version;
|
||||
|
@ -51,6 +52,9 @@ async fn main() -> Result<()> {
|
|||
validate_client_connection(&client).await?;
|
||||
|
||||
match &args.command {
|
||||
Commands::Assets { assets_command } => match assets_command {
|
||||
AssetsCommands::List { offline } => list_assets(*offline, &client).await,
|
||||
},
|
||||
Commands::People { people_command } => match people_command {
|
||||
PeopleCommands::MissingDateOfBirths {} => missing_date_of_birth(&client).await,
|
||||
PeopleCommands::SyncDateOfBirths { vcard: _ } => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue