主函数以后基本上就这样了吧
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();
|
let args = Args::parse();
|
||||||
|
|
||||||
match args.command {
|
match args.command {
|
||||||
Commands::New(config) => {
|
Commands::New(config) => cnew::run(config),
|
||||||
cnew::run(config)?;
|
Commands::Build(config) => cbuild::run(config),
|
||||||
}
|
Commands::Run => cbuild::run(cbuild::CommandsBuild::new_run()),
|
||||||
Commands::Build(config) => {
|
Commands::Store(config) => cstore::run(config),
|
||||||
cbuild::run(config)?;
|
Commands::Add(config) => cadd::run(config),
|
||||||
}
|
Commands::Test(config) => ctest::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(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user