2022-01-03 19:37:03 +01:00
|
|
|
use clap::{Arg, App};
|
2020-12-16 05:21:26 +01:00
|
|
|
|
|
|
|
use crate::util;
|
|
|
|
|
2021-01-24 23:08:48 +01:00
|
|
|
use super::apply;
|
|
|
|
pub use super::apply::run;
|
|
|
|
|
2022-01-03 19:37:03 +01:00
|
|
|
pub fn subcommand() -> App<'static> {
|
|
|
|
let command = App::new("build")
|
2021-01-24 23:08:48 +01:00
|
|
|
.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
|
|
|
|
2021-01-24 23:08:48 +01:00
|
|
|
This subcommand behaves as if you invoked `apply` with the `build` goal."#)
|
2022-01-03 19:37:03 +01:00
|
|
|
.arg(Arg::new("goal")
|
|
|
|
.hide(true)
|
2021-01-24 23:08:48 +01:00
|
|
|
.default_value("build")
|
|
|
|
.possible_values(&["build"])
|
|
|
|
.takes_value(true));
|
2020-12-16 05:21:26 +01:00
|
|
|
|
2021-01-24 23:08:48 +01:00
|
|
|
let command = apply::register_deploy_args(command);
|
2020-12-16 05:21:26 +01:00
|
|
|
|
2021-01-24 23:08:48 +01:00
|
|
|
util::register_selector_args(command)
|
2020-12-16 05:21:26 +01:00
|
|
|
}
|