tftio-asana-cli 2.3.0

An interface to the Asana API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Binary entry point for the Asana CLI.

use asana_cli::{cli, init_tracing};
use tftio_cli_common::run_with_display_error_handler;

fn main() {
    if let Err(err) = init_tracing() {
        eprintln!("failed to initialize tracing: {err}");
    }

    let exit_code = run_with_display_error_handler("asana-cli", false, || {
        cli::run().inspect_err(|err| {
            tracing::error!(error = %err, "command execution failed");
        })
    });
    std::process::exit(exit_code);
}