1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//! Stderr (and potentially stdout) redirection mode for [`Cmd`](crate::Cmd).
//!
//! Modeled after the subprocess crate's `Redirection` enum — one type, five
//! variants covering every practical I/O configuration. Replaces a sprawl of
//! `inherit_stderr()` / `null_stderr()` / `merge_to_stdout()` builder methods.
use File;
/// Where a child process's stderr (or stdout, when supported) goes.
///
/// The default for [`Cmd::stderr()`](crate::Cmd) is [`Capture`](Self::Capture)
/// — every error variant carries captured stderr, so that's almost always
/// what production code wants. Use the other variants only when you have a
/// reason.