Auto merge of #95306 - est31:master, r=Dylan-DPC
std::process docs: linkify references to output, spawn and status
This commit is contained in:
commit
bc881e83d1
@ -525,7 +525,11 @@ impl Command {
|
||||
/// * No arguments to the program
|
||||
/// * Inherit the current process's environment
|
||||
/// * Inherit the current process's working directory
|
||||
/// * Inherit stdin/stdout/stderr for `spawn` or `status`, but create pipes for `output`
|
||||
/// * Inherit stdin/stdout/stderr for [`spawn`] or [`status`], but create pipes for [`output`]
|
||||
///
|
||||
/// [`spawn`]: Self::spawn
|
||||
/// [`status`]: Self::status
|
||||
/// [`output`]: Self::output
|
||||
///
|
||||
/// Builder methods are provided to change these defaults and
|
||||
/// otherwise configure the process.
|
||||
@ -772,11 +776,14 @@ pub fn current_dir<P: AsRef<Path>>(&mut self, dir: P) -> &mut Command {
|
||||
|
||||
/// Configuration for the child process's standard input (stdin) handle.
|
||||
///
|
||||
/// Defaults to [`inherit`] when used with `spawn` or `status`, and
|
||||
/// defaults to [`piped`] when used with `output`.
|
||||
/// Defaults to [`inherit`] when used with [`spawn`] or [`status`], and
|
||||
/// defaults to [`piped`] when used with [`output`].
|
||||
///
|
||||
/// [`inherit`]: Stdio::inherit
|
||||
/// [`piped`]: Stdio::piped
|
||||
/// [`spawn`]: Self::spawn
|
||||
/// [`status`]: Self::status
|
||||
/// [`output`]: Self::output
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
@ -798,11 +805,14 @@ pub fn stdin<T: Into<Stdio>>(&mut self, cfg: T) -> &mut Command {
|
||||
|
||||
/// Configuration for the child process's standard output (stdout) handle.
|
||||
///
|
||||
/// Defaults to [`inherit`] when used with `spawn` or `status`, and
|
||||
/// defaults to [`piped`] when used with `output`.
|
||||
/// Defaults to [`inherit`] when used with [`spawn`] or [`status`], and
|
||||
/// defaults to [`piped`] when used with [`output`].
|
||||
///
|
||||
/// [`inherit`]: Stdio::inherit
|
||||
/// [`piped`]: Stdio::piped
|
||||
/// [`spawn`]: Self::spawn
|
||||
/// [`status`]: Self::status
|
||||
/// [`output`]: Self::output
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
@ -824,11 +834,14 @@ pub fn stdout<T: Into<Stdio>>(&mut self, cfg: T) -> &mut Command {
|
||||
|
||||
/// Configuration for the child process's standard error (stderr) handle.
|
||||
///
|
||||
/// Defaults to [`inherit`] when used with `spawn` or `status`, and
|
||||
/// defaults to [`piped`] when used with `output`.
|
||||
/// Defaults to [`inherit`] when used with [`spawn`] or [`status`], and
|
||||
/// defaults to [`piped`] when used with [`output`].
|
||||
///
|
||||
/// [`inherit`]: Stdio::inherit
|
||||
/// [`piped`]: Stdio::piped
|
||||
/// [`spawn`]: Self::spawn
|
||||
/// [`status`]: Self::status
|
||||
/// [`output`]: Self::output
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user