Skip to content

Commit

Permalink
nix_rs: Remove redundant 'command' option
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Oct 26, 2024
1 parent ae145ca commit 3bfbcc0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions crates/nix_rs/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ pub struct NixCmd {
/// Consider all previously downloaded files out-of-date.
#[cfg_attr(feature = "clap", arg(long))]
pub refresh: bool,

/// The command to run instead of `nix`.
#[cfg_attr(feature = "clap", arg(long))]
pub command: Option<String>,
}

impl Default for NixCmd {
Expand All @@ -58,7 +54,6 @@ impl Default for NixCmd {
extra_experimental_features: vec![],
extra_access_tokens: vec![],
refresh: false,
command: None,
}
}
}
Expand Down Expand Up @@ -113,7 +108,7 @@ impl NixCmd {

/// Return a [Command] for this [NixCmd] configuration
pub fn command(&self) -> Command {
let mut cmd = Command::new(self.command.as_deref().unwrap_or("nix"));
let mut cmd = Command::new("nix");
cmd.kill_on_drop(true);
cmd.args(self.args());
cmd
Expand Down

0 comments on commit 3bfbcc0

Please sign in to comment.