Add base build subcommand
This commit is contained in:
parent
65a6c1b368
commit
9c86450a3f
1 changed files with 6 additions and 1 deletions
|
@ -1,8 +1,11 @@
|
||||||
use clap::{App, AppSettings, ArgMatches, Arg};
|
use clap::{App, AppSettings, ArgMatches, Arg, SubCommand};
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
use clap::Result;
|
use clap::Result;
|
||||||
|
|
||||||
|
fn get_build_command() -> App<'static, 'static> {
|
||||||
|
return SubCommand::with_name("build")
|
||||||
|
}
|
||||||
|
|
||||||
fn build() -> App<'static, 'static> {
|
fn build() -> App<'static, 'static> {
|
||||||
return App::new(crate_name!())
|
return App::new(crate_name!())
|
||||||
|
@ -21,6 +24,8 @@ fn build() -> App<'static, 'static> {
|
||||||
.help("Show verbose output")
|
.help("Show verbose output")
|
||||||
.multiple(true)
|
.multiple(true)
|
||||||
)
|
)
|
||||||
|
.subcommand(get_build_command())
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in a new issue