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

Method stdin

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

Sets the string input passed to child process's `stdin`. This overwrites the previous value. Use [`Cmd::stdin_bytes()`] if you need to pass non-utf8 byte sequences. Nothing is written to `stdin` by default.

(&mut self, stdin: impl Into<String>)

Source from the content-addressed store, hash-verified

337 ///
338 /// Nothing is written to `stdin` by default.
339 pub fn stdin(&mut self, stdin: impl Into<String>) -> &mut Self {
340 self.as_mut().stdin = Some(BinOrUtf8::Utf8(stdin.into()));
341 self
342 }
343
344 /// Sets the bytes input passed to child process's `stdin`.
345 /// This overwrites the previous value.

Callers 1

spawn_withMethod · 0.80

Calls 1

as_mutMethod · 0.80

Tested by

no test coverage detected