主函数以后基本上就这样了吧
This commit is contained in:
parent
c594cbf22a
commit
2bee2f325f
26
src/main.rs
26
src/main.rs
@ -38,25 +38,13 @@ fn main() -> std::io::Result<()> {
|
||||
let args = Args::parse();
|
||||
|
||||
match args.command {
|
||||
Commands::New(config) => {
|
||||
cnew::run(config)?;
|
||||
}
|
||||
Commands::Build(config) => {
|
||||
cbuild::run(config)?;
|
||||
}
|
||||
Commands::Run => {
|
||||
cbuild::run(cbuild::CommandsBuild::new_run())?;
|
||||
}
|
||||
Commands::Store(config) => {
|
||||
cstore::run(config)?;
|
||||
}
|
||||
Commands::Add(config) => {
|
||||
cadd::run(config)?;
|
||||
}
|
||||
Commands::Test(config) => {
|
||||
ctest::run(config)?;
|
||||
}
|
||||
}
|
||||
Commands::New(config) => cnew::run(config),
|
||||
Commands::Build(config) => cbuild::run(config),
|
||||
Commands::Run => cbuild::run(cbuild::CommandsBuild::new_run()),
|
||||
Commands::Store(config) => cstore::run(config),
|
||||
Commands::Add(config) => cadd::run(config),
|
||||
Commands::Test(config) => ctest::run(config),
|
||||
}?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user