pub struct Process {Show 13 fields
pub args: Vec<OsString>,
pub env: Env,
pub cwd: Result<PathBuf, String>,
pub host: HostOs,
pub temp: PathBuf,
pub exe: Result<PathBuf, String>,
pub cores: NonZeroU32,
pub stdout: Box<dyn Write>,
pub stdout_is_terminal: bool,
pub stderr: Box<dyn Write>,
pub stderr_is_terminal: bool,
pub stdin: Box<dyn BufRead>,
pub stdin_is_terminal: bool,
}Expand description
What only the process has, collected by the binary and handed in as
values: no library reads the process itself (docs/en/specs/ architecture.md, “Dependencies between crates”).
Fields§
§args: Vec<OsString>The command line, the program’s name first.
env: EnvThe environment variables.
cwd: Result<PathBuf, String>The current directory, or why it cannot be read. Only a command that
needs it reports the reason, so --help works without one.
host: HostOsThe operating system cuno runs on.
temp: PathBufThe temporary directory.
exe: Result<PathBuf, String>Where the running executable is, or why that cannot be found. Only
cuno self needs it.
cores: NonZeroU32How many processors this machine has: the default number of jobs.
stdout: Box<dyn Write>Standard output: help, the version and the usage. Any writer, so a test can read what was written.
stdout_is_terminal: boolWhether standard output is a terminal.
stderr: Box<dyn Write>Standard error: everything else cuno prints.
stderr_is_terminal: boolWhether standard error is a terminal.
stdin: Box<dyn BufRead>Standard input: the answer to a question cuno asks.
stdin_is_terminal: boolWhether standard input is a terminal; cuno only asks one that is.