File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ print_output! = |cmd_output|
6161 Stderr.line!(err_data)
6262
6363 Err(err) ->
64- Stderr.line!(" Failed to start executing command: ${Inspect . to_str (err )}")
64+ Stderr.line!(" Failed to get exit code for command, error : ${Inspect . to_str (err )}")
6565
6666
6767# Run command with an environment variable
Original file line number Diff line number Diff line change @@ -130,15 +130,15 @@ output! = |@Cmd(cmd)|
130130 Host . command_output !(cmd )
131131 |> InternalCmd . from_host_output
132132
133- ## Execute command and inherit stdin, stdout and stderr from parent
133+ ## Execute command and inherit stdin, stdout and stderr from parent. Returns the exit code.
134134##
135135status ! : Cmd => Result I32 [CmdStatusErr InternalIOErr . IOErr ]
136136status ! = |@Cmd (cmd)|
137137 Host . command_status !(cmd )
138138 |> Result . map_err (InternalIOErr . handle_err )
139139 |> Result . map_err (CmdStatusErr )
140140
141- ## Execute command and inherit stdin, stdout and stderr from parent
141+ ## Simplest way to execute a command while inheriting stdin, stdout and stderr from parent.
142142##
143143## ```
144144## # Call echo to print "hello world"
You can’t perform that action at this time.
0 commit comments