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

Method run_inherited_with_cmd_context

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

Source from the content-addressed store, hash-verified

189 }
190
191 fn run_inherited_with_cmd_context(&mut self) -> Result<()> {
192 self.status()?
193 .success()
194 .then_some(())
195 // The [`Debug`] output of command contains a properly shell-escaped commandline
196 // representation that the user can copy paste into their shell
197 .context(format!("Failed to run command: {self:#?}"))
198 }
199
200 fn to_string_pretty(&self) -> String {
201 std::iter::once(self.get_program())

Callers 9

runMethod · 0.80
mountFunction · 0.80
mount_typedFunction · 0.80
install_via_bootupdFunction · 0.80
install_via_ziplFunction · 0.80
wipefsFunction · 0.80
runFunction · 0.80
pull_if_not_presentFunction · 0.80
ensure_podman_installedFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected