Possibility of adding extra arguments to nh in config #1871
-
|
Howdy, I love topgrade, but I currently am unable to find a way to pass pub(super) fn nh_switch(ctx: &ExecutionContext, nh: &PathBuf, args: &NhSwitchArgs<'static>) -> Result<()> {
if args.print_separator {
print_separator(format!("nh {}", args.installable_type));
}
let mut cmd = ctx.execute(nh);
cmd.arg(args.installable_type);
cmd.arg("switch");
cmd.arg("-u");
if !ctx.config().yes(Step::System) {
cmd.arg("--ask");
}
cmd.status_checked()?;
Ok(())
}
fn nix_args() -> [&'static str; 2] {
["--extra-experimental-features", "nix-command"]
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hi! Adding arbitrary flags to commands is a feature I've wanted to add for a while, and is being discussed in #1472. Feel free to add a comment or thumbs-up there. |
Beta Was this translation helpful? Give feedback.
Hi! Adding arbitrary flags to commands is a feature I've wanted to add for a while, and is being discussed in #1472. Feel free to add a comment or thumbs-up there.
Before then (since #1472 is going to take a while), you're free to open a PR to add this as a configuration option, similarly to #1685.
I appreciate the question in any case, it's good to know we're going in the right direction :)