Skip to content

Commit

Permalink
added __usage env var
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 10, 2024
1 parent 7701bd4 commit ed76088
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cli/src/cli/complete_word.rs
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ fn sh(script: &str) -> XXResult<String> {
.arg(script)
.stdin(std::process::Stdio::null())
.stderr(std::process::Stdio::inherit())
.env("__usage", env!("CARGO_PKG_VERSION"))
.output()
.map_err(|err| XXError::ProcessError(err, format!("sh -c {script}")))?;

Expand Down

0 comments on commit ed76088

Please sign in to comment.