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

Method new_and_run

crates/lib/src/task.rs:184–192  ·  view source on GitHub ↗
(
        description: impl AsRef<str>,
        exe: impl AsRef<str>,
        args: impl IntoIterator<Item = &'a str>,
    )

Source from the content-addressed store, hash-verified

182 }
183
184 pub(crate) fn new_and_run<'a>(
185 description: impl AsRef<str>,
186 exe: impl AsRef<str>,
187 args: impl IntoIterator<Item = &'a str>,
188 ) -> Result<()> {
189 let mut t = Self::new(description.as_ref(), exe);
190 t.cmd.args(args);
191 t.run()
192 }
193}

Callers

nothing calls this directly

Calls 3

argsMethod · 0.80
as_refMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected