colmena/src/command/build.rs

24 lines
699 B
Rust
Raw Normal View History

use clap::{Arg, App, SubCommand};
2020-12-16 05:21:26 +01:00
use crate::util;
use super::apply;
pub use super::apply::run;
2020-12-16 05:21:26 +01:00
pub fn subcommand() -> App<'static, 'static> {
let command = SubCommand::with_name("build")
.about("Build the configuration but not push to remote machines")
.long_about(r#"Build the configuration but not push to remote machines
2020-12-16 05:21:26 +01:00
This subcommand behaves as if you invoked `apply` with the `build` goal."#)
.arg(Arg::with_name("goal")
.hidden(true)
.default_value("build")
.possible_values(&["build"])
.takes_value(true));
2020-12-16 05:21:26 +01:00
let command = apply::register_deploy_args(command);
2020-12-16 05:21:26 +01:00
util::register_selector_args(command)
2020-12-16 05:21:26 +01:00
}