blob: ffcade3f9f42d0de26da261149aba72565b6a77e (
plain) (
blame)
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
|
#[derive(Debug, Clone)]
pub struct ProgramStdoutSetting {
/// Output error messages
pub error_output: bool,
/// Render results and output
pub render_output: bool,
}
impl Default for ProgramStdoutSetting {
fn default() -> Self {
ProgramStdoutSetting {
error_output: true,
render_output: true,
}
}
}
#[derive(Debug, Clone)]
pub struct ProgramUserContext {
/// View help information instead of running the command
pub help: bool,
/// Skip user confirmation step
pub confirm: bool,
}
impl Default for ProgramUserContext {
fn default() -> Self {
ProgramUserContext {
help: false,
confirm: false,
}
}
}
|