MCPcopy Create free account
hub / github.com/bootc-dev/bootc / run_get_output

Method run_get_output

crates/utils/src/command.rs:170–176  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

168 }
169
170 fn run_get_output(&mut self) -> Result<Box<dyn std::io::BufRead>> {
171 let mut stdout = tempfile::tempfile()?;
172 self.stdout(stdout.try_clone()?);
173 self.run_capture_stderr()?;
174 stdout.seek(std::io::SeekFrom::Start(0)).context("seek")?;
175 Ok(Box::new(std::io::BufReader::new(stdout)))
176 }
177
178 fn run_get_string(&mut self) -> Result<String> {
179 let mut s = String::new();

Callers 4

run_get_stringMethod · 0.80
run_and_parse_jsonMethod · 0.80
loginctl_run_compatFunction · 0.80
get_keys_from_commandFunction · 0.80

Calls 1

run_capture_stderrMethod · 0.80

Tested by

no test coverage detected