blob: 0b3899db37f2802b53ca757987ac77a0e525cd54 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// Copyleft (ɔ) 2021-2021 The Whirlsplash Collective
// SPDX-License-Identifier: GPL-3.0-only
use std::error::Error;
use whirl::cli::Cli;
#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
// Environment
let matches = Cli::setup();
// Logging
dotenv::dotenv().ok();
flexi_logger::Logger::with_str("trace")
.log_to_file()
.directory("log")
.print_message()
.start()?;
// Execution
Cli::execute(matches).await;
Ok(())
}
|