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

Method stdin_bytes

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

Sets the bytes input passed to child process's `stdin`. This overwrites the previous value. Nothing is written to `stdin` by default.

(&mut self, stdin: Vec<u8>)

Source from the content-addressed store, hash-verified

346 ///
347 /// Nothing is written to `stdin` by default.
348 pub fn stdin_bytes(&mut self, stdin: Vec<u8>) -> &mut Self {
349 self.as_mut().stdin = Some(BinOrUtf8::Bin(stdin));
350 self
351 }
352
353 /// Same as `cmd.arg(arg1).arg(arg2)`. This is just a convenient shortcut
354 /// mostly used to lexically group related arguments (for example named arguments).

Callers

nothing calls this directly

Calls 1

as_mutMethod · 0.80

Tested by

no test coverage detected