Skip to content

Commit

Permalink
Remove some commands on some profiles and add default goal for apply
Browse files Browse the repository at this point in the history
  • Loading branch information
i1i1 committed Aug 11, 2023
1 parent 499469e commit fb1fd84
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,13 @@ pub async fn run() {

match opts.command {
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::Eval(args) => r(command::eval::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::Repl => r(command::repl::run(hive), opts.config).await,
#[cfg(debug_assertions)]
Command::TestProgress => r(command::test_progress::run(), opts.config).await,
Command::Build { deploy } => {
let args = command::apply::Opts {
Expand Down
3 changes: 2 additions & 1 deletion src/command/apply.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ 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.
"#,
default_value_if("reboot", ArgPredicate::IsPresent, Some("boot"))
default_value_t,
default_value_if("reboot", ArgPredicate::IsPresent, Some("boot")),
)]
pub goal: Goal,
#[command(flatten)]
Expand Down

0 comments on commit fb1fd84

Please sign in to comment.