MCPcopy Index your code
hub / github.com/elastio/devx / cmd_context

Method cmd_context

devx-cmd/src/error.rs:18–20  ·  view source on GitHub ↗
(self, cmd: &Cmd)

Source from the content-addressed store, hash-verified

16}
17impl<T, E: fmt::Display> Context<T> for Result<T, E> {
18 fn cmd_context(self, cmd: &Cmd) -> Result<T> {
19 self.map_err(|err| Error::cmd(cmd, &err))
20 }
21 fn proc_context(self, proc: &Child) -> Result<T> {
22 self.map_err(|err| Error::proc(proc, &err))
23 }

Callers 1

spawn_withMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected