1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#![deny(clippy::pedantic)]
#![deny(clippy::unwrap_used)]

// Copyright 2023-2024 Hugo Osvaldo Barrera
//
// SPDX-License-Identifier: EUPL-1.2

use clap::Parser;

mod caldav;
mod carddav;
mod cli;
mod common;

fn main() -> anyhow::Result<()> {
    // TODO: also support email as input?
    let cli = cli::Cli::parse();
    simple_logger::init_with_level(cli.log_level()).expect("logger configuration is valid");

    cli.execute()
}