mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-17 18:23:16 +00:00
Document defaults for stdin, stdout, and stderr methods of Command
This commit is contained in:
parent
3ed8b69842
commit
6f653bb1b1
@ -552,6 +552,15 @@ impl 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`.
|
||||
///
|
||||
/// 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
|
||||
///
|
||||
/// Basic usage:
|
||||
@ -572,6 +581,15 @@ impl 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`.
|
||||
///
|
||||
/// 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
|
||||
///
|
||||
/// Basic usage:
|
||||
@ -592,6 +610,15 @@ impl 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`.
|
||||
///
|
||||
/// 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
|
||||
///
|
||||
/// Basic usage:
|
||||
|
Loading…
Reference in New Issue
Block a user