@@ -66,7 +66,7 @@ impl TaskRunner {
66
66
}
67
67
}
68
68
69
- pub fn run ( command : & mut Command , verbose : bool ) -> Result < ( ) > {
69
+ pub fn run ( command : & mut Command ) -> Result < ( ) > {
70
70
fn format_error ( command : & Command , status : Option < i32 > ) -> String {
71
71
let status = if let Some ( code) = status {
72
72
format ! ( " exited with {}" , code)
@@ -75,24 +75,11 @@ pub fn run(command: &mut Command, verbose: bool) -> Result<()> {
75
75
} ;
76
76
format ! ( "{} `{:?}`{}" , style( "[ERROR]" ) . red( ) , command, status)
77
77
}
78
- if !verbose {
79
- let output = command
80
- . output ( )
81
- . with_context ( || format_error ( command, None ) ) ?;
82
- if !output. status . success ( ) {
83
- let stdout = std:: str:: from_utf8 ( & output. stdout ) ?;
84
- print ! ( "{}" , stdout) ;
85
- let stderr = std:: str:: from_utf8 ( & output. stderr ) ?;
86
- print ! ( "{}" , stderr) ;
87
- anyhow:: bail!( "{}" , format_error( command, output. status. code( ) ) ) ;
88
- }
89
- } else {
90
- let status = command
91
- . status ( )
92
- . with_context ( || format_error ( command, None ) ) ?;
93
- if !status. success ( ) {
94
- anyhow:: bail!( "{}" , format_error( command, status. code( ) ) ) ;
95
- }
78
+ let status = command
79
+ . status ( )
80
+ . with_context ( || format_error ( command, None ) ) ?;
81
+ if !status. success ( ) {
82
+ anyhow:: bail!( "{}" , format_error( command, status. code( ) ) ) ;
96
83
}
97
84
Ok ( ( ) )
98
85
}
0 commit comments