File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed
Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -148,28 +148,6 @@ impl Nitrocli {
148148 self
149149 }
150150
151- /// Invoke `nitrocli` and retrieve its output as a string.
152- ///
153- /// Note that any error messages emitted by `nitrocli` will not be
154- /// intercepted/captured but will directly be passed through. It is
155- /// recommended that extensions terminate on failure.
156- // TODO: remove once we determined that we don’t need this
157- #[ allow( unused) ]
158- pub fn text ( & mut self ) -> anyhow:: Result < String > {
159- let output = self . cmd . output ( ) . context ( "Failed to invoke nitrocli" ) ?;
160- // We want additional nitrocli emitted output to be visible to the
161- // user (typically controlled through -v/--verbose below). Note that
162- // this means that we will not be able to access this output for
163- // error reporting purposes.
164- self . cmd . stderr ( process:: Stdio :: inherit ( ) ) ;
165-
166- if output. status . success ( ) {
167- String :: from_utf8 ( output. stdout ) . map_err ( From :: from)
168- } else {
169- Err ( anyhow:: anyhow!( "nitrocli call failed" ) )
170- }
171- }
172-
173151 /// Invoke `nitrocli`.
174152 pub fn spawn ( & mut self ) -> anyhow:: Result < ( ) > {
175153 let mut child = self . cmd . spawn ( ) . context ( "Failed to invoke nitrocli" ) ?;
You can’t perform that action at this time.
0 commit comments