atagen

roundabout

public
Star0
Watch0
ecc1cf8df0f5b88c6bf2cd07254c98d13827cd26
1
ssh://brewery@pls.lobotomise.me:33/atagen/roundabout.git
src/main.rsRust26 lines542 B
1
mod artifacts;
2
mod cli;
3
mod client;
4
mod config;
5
mod daemon;
6
mod history;
7
mod hook;
8
mod paths;
9
mod proto;
10
mod run;
11
mod sched;
12
mod store;
13
mod sys;
14
mod units;
15
16
use pound::Parse;
17
18
fn main() {
19
    // a typo must not exit 2, that's a blocking pretooluse verdict and would
20
    // wall off every bash call in every session
21
    let cfg = config::Config::load().unwrap_or_else(|e| {
22
        eprintln!("rabt: bad config, using defaults. {e}");
23
        config::Config::default()
24
    });
25
    std::process::exit(cli::dispatch(&cfg, cli::Rabt::parse()));
26
}