pub fn compose_std_command<S: AsRef<OsStr>>(
context: &ExecutionContext<'_>,
command_name: &str,
argv0: &str,
args: &[S],
empty_env: bool,
) -> Result<Command, Error>Expand description
Composes a std::process::Command to execute the given command. Appropriately
configures the command name and arguments, redirections, injected file
descriptors, environment variables, etc.
ยงArguments
context- The execution context in which the command is being composed.command_name- The name of the command to execute.argv0- The value to use forargv[0](may be different from the command).args- The arguments to pass to the command.empty_env- If true, the command will be executed with an empty environment; if false, the command will inherit environment variables marked as exported in the providedShell.