cimengine-build-tools/src/main.rs

21 lines
347 B
Rust
Raw Normal View History

2024-04-24 18:52:28 +03:00
use clap::Parser;
mod build;
mod init;
2024-04-24 19:51:02 +03:00
mod new;
2024-04-24 18:52:28 +03:00
mod types;
2024-04-25 14:03:08 +03:00
mod utils;
2024-04-24 18:52:28 +03:00
use types::Commands;
fn main() {
let args = types::Cli::parse();
match args.cmd {
Commands::Build => build::build(),
Commands::Init { name } => init::init(name),
2024-04-24 19:51:02 +03:00
Commands::New { cmd } => new::new(cmd),
2024-04-24 18:52:28 +03:00
_ => unimplemented!(),
}
}