Add a command dumping missing date of births
This commit is contained in:
parent
bc09979a62
commit
dfac23a225
7 changed files with 47 additions and 17 deletions
|
@ -4,12 +4,14 @@ use crate::args::Commands;
|
|||
use anyhow::Result;
|
||||
use args::{PeopleCommands, ServerCommands};
|
||||
use clap::Parser;
|
||||
use commands::missing_date_of_birth::missing_date_of_birth;
|
||||
use commands::server_version::server_version;
|
||||
use commands::sync_date_of_birth::sync_date_of_birth;
|
||||
use reqwest::header;
|
||||
|
||||
mod args;
|
||||
mod commands;
|
||||
mod utils;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
|
@ -21,6 +23,7 @@ async fn main() {
|
|||
|
||||
let res = match &args.command {
|
||||
Commands::People { people_command } => match people_command {
|
||||
PeopleCommands::MissingDateOfBirths {} => missing_date_of_birth(&client).await,
|
||||
PeopleCommands::SyncDateOfBirths { vcard_file } => {
|
||||
sync_date_of_birth(&client, vcard_file, args.dry_run).await
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue