MCPcopy Create free account
hub / github.com/elastio/devx / args

Method args

devx-cmd/src/lib.rs:376–383  ·  view source on GitHub ↗

Extends the array of arguments passed to the child process with `args`.

(&mut self, args: I)

Source from the content-addressed store, hash-verified

374
375 /// Extends the array of arguments passed to the child process with `args`.
376 pub fn args<I>(&mut self, args: I) -> &mut Self
377 where
378 I: IntoIterator,
379 I::Item: Into<OsString>,
380 {
381 self.as_mut().args.extend(args.into_iter().map(Into::into));
382 self
383 }
384
385 /// Returns the currently configured list of command line arguments
386 pub fn get_args(&self) -> &[OsString] {

Callers 2

rustfmtMethod · 0.80
spawn_withMethod · 0.80

Calls 1

as_mutMethod · 0.80

Tested by

no test coverage detected