aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
blob: ab6f558757605340d50ad03df45f971a9cf349e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use action::Action;
use std::env;

mod action;
mod util;

fn main() -> std::io::Result<()> {
    let args: Vec<String> = env::args().collect();

    match Action::parse(&args) {
        Ok(action) => {
            if let Err(e) = action.execute() {
                eprintln!("forge: {}", e);
            }
        }
        Err(e) => eprintln!("forge: {}", e),
    }
    Ok(())
}