forked from DGNum/colmena
Remove some commands on some profiles and add default goal for apply
This commit is contained in:
parent
fc5c6d4544
commit
495fc56f6e
2 changed files with 3 additions and 0 deletions
|
@ -284,11 +284,13 @@ pub async fn run() {
|
||||||
|
|
||||||
match opts.command {
|
match opts.command {
|
||||||
Command::Apply(args) => r(command::apply::run(hive, args), opts.config).await,
|
Command::Apply(args) => r(command::apply::run(hive, args), opts.config).await,
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
Command::ApplyLocal(args) => r(command::apply_local::run(hive, args), opts.config).await,
|
Command::ApplyLocal(args) => r(command::apply_local::run(hive, args), opts.config).await,
|
||||||
Command::Eval(args) => r(command::eval::run(hive, args), opts.config).await,
|
Command::Eval(args) => r(command::eval::run(hive, args), opts.config).await,
|
||||||
Command::Exec(args) => r(command::exec::run(hive, args), opts.config).await,
|
Command::Exec(args) => r(command::exec::run(hive, args), opts.config).await,
|
||||||
Command::NixInfo => r(command::nix_info::run(), opts.config).await,
|
Command::NixInfo => r(command::nix_info::run(), opts.config).await,
|
||||||
Command::Repl => r(command::repl::run(hive), opts.config).await,
|
Command::Repl => r(command::repl::run(hive), opts.config).await,
|
||||||
|
#[cfg(debug_assertions)]
|
||||||
Command::TestProgress => r(command::test_progress::run(), opts.config).await,
|
Command::TestProgress => r(command::test_progress::run(), opts.config).await,
|
||||||
Command::Build { deploy } => {
|
Command::Build { deploy } => {
|
||||||
let args = command::apply::Opts {
|
let args = command::apply::Opts {
|
||||||
|
|
|
@ -130,6 +130,7 @@ Same as the targets for switch-to-configuration, with the following extra pseudo
|
||||||
|
|
||||||
`switch` is the default goal unless `--reboot` is passed, in which case `boot` is the default.
|
`switch` is the default goal unless `--reboot` is passed, in which case `boot` is the default.
|
||||||
"#,
|
"#,
|
||||||
|
default_value_t,
|
||||||
default_value_if("reboot", ArgPredicate::IsPresent, Some("boot"))
|
default_value_if("reboot", ArgPredicate::IsPresent, Some("boot"))
|
||||||
)]
|
)]
|
||||||
pub goal: Goal,
|
pub goal: Goal,
|
||||||
|
|
Loading…
Reference in a new issue