Skip to content

Commit

Permalink
command for a single env var
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronKutch committed Oct 18, 2023
1 parent d6bd6f1 commit 535fa7e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,12 @@ impl Command {
self
}

/// Adds an environment variable
pub fn env(mut self, env_key: &str, env_val: &str) -> Self {
self.envs.push((env_key.to_owned(), env_val.to_owned()));
self
}

pub fn ci_mode(mut self, ci_mode: bool) -> Self {
self.ci = ci_mode;
self
Expand Down

0 comments on commit 535fa7e

Please sign in to comment.