Skip to content

Commit

Permalink
clarify stdin, stdout and stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
pietroalbini committed Jul 25, 2019
1 parent f28df0f commit 73cbf47
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions text/0000-cargo-token-from-process.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ issued to let the user know about that.

When a `cargo` subcommand needs the authentication token, Cargo will execute
the string contained in the configuration key with the system shell (`cmd.exe`
on Windows and `sh` on other platforms). If the command returns the `0` exit
code, the stardard output (with trimmed newlines) will be treated as the
authentication token. Otherwise an error message will be shown to the user,
along with the standard output.
on Windows and `sh` on other platforms). The process will inherit Cargo's
standard input and error, and the standard output will be captured by Cargo to
read the token (with trimmed newlines). If the command returns an exit code
other than `0` Cargo will treat that as a failure.

The following environment variables will be provided to the executed command:

Expand Down

0 comments on commit 73cbf47

Please sign in to comment.