Add an assets list command

This commit is contained in:
Marc Plano-Lesay 2024-11-05 13:40:52 +11:00
parent a8796b2728
commit c026375ce1
Signed by: kernald
GPG key ID: 66A41B08CC62A6CF
5 changed files with 109 additions and 5 deletions

View file

@ -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: _ } => {