use cli::{
create_app,
Commands
};
use command::{
create,
list
};
mod cli;
mod command;
mod common;
mod utils;
fn main() {
let app = create_app();
match app.command {
Some(Commands::Create { name, template }) => {
create(name, template)
}
Some(Commands::List) => {
list();
}
None => {
println!("请使用 --help 查看使用说明");
}
}
}