Document defaults for stdin, stdout, and stderr methods of Command
This commit is contained in:
parent
3ed8b69842
commit
6f653bb1b1
1 changed files with 27 additions and 0 deletions
|
@ -552,6 +552,15 @@ impl Command {
|
||||||
|
|
||||||
/// Configuration for the child process's standard input (stdin) handle.
|
/// 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`.
|
||||||
|
///
|
||||||
|
/// On Windows, if the `#![windows_subsystem = "windows"]` attribute is
|
||||||
|
/// set, no stdin is connected unless explicitly assigned.
|
||||||
|
///
|
||||||
|
/// [`inherit`]: struct.Stdio.html#method.inherit
|
||||||
|
/// [`piped`]: struct.Stdio.html#method.piped
|
||||||
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// Basic usage:
|
/// Basic usage:
|
||||||
|
@ -572,6 +581,15 @@ impl Command {
|
||||||
|
|
||||||
/// Configuration for the child process's standard output (stdout) handle.
|
/// 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`.
|
||||||
|
///
|
||||||
|
/// On Windows, if the `#![windows_subsystem = "windows"]` attribute is
|
||||||
|
/// set, no stdout is connected unless explicitly assigned.
|
||||||
|
///
|
||||||
|
/// [`inherit`]: struct.Stdio.html#method.inherit
|
||||||
|
/// [`piped`]: struct.Stdio.html#method.piped
|
||||||
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// Basic usage:
|
/// Basic usage:
|
||||||
|
@ -592,6 +610,15 @@ impl Command {
|
||||||
|
|
||||||
/// Configuration for the child process's standard error (stderr) handle.
|
/// 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`.
|
||||||
|
///
|
||||||
|
/// On Windows, if the `#![windows_subsystem = "windows"]` attribute is
|
||||||
|
/// set, no stderr is connected unless explicitly assigned.
|
||||||
|
///
|
||||||
|
/// [`inherit`]: struct.Stdio.html#method.inherit
|
||||||
|
/// [`piped`]: struct.Stdio.html#method.piped
|
||||||
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// Basic usage:
|
/// Basic usage:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue