mirror of
https://github.com/CIMEngine/cimengine-build-tools.git
synced 2024-10-05 14:46:01 +03:00
18 lines
279 B
Rust
18 lines
279 B
Rust
|
use clap::Parser;
|
||
|
|
||
|
mod build;
|
||
|
mod init;
|
||
|
mod types;
|
||
|
|
||
|
use types::Commands;
|
||
|
|
||
|
fn main() {
|
||
|
let args = types::Cli::parse();
|
||
|
|
||
|
match args.cmd {
|
||
|
Commands::Build => build::build(),
|
||
|
Commands::Init { name } => init::init(name),
|
||
|
_ => unimplemented!(),
|
||
|
}
|
||
|
}
|