MCPcopy Create free account
hub / github.com/AIScientists-Dev/Flowtrace / read_stdin_to_string

Function read_stdin_to_string

crates/flowtrace-cli/src/reply.rs:225–229  ·  view source on GitHub ↗

Read all of stdin into a string. Used by the CLI to pick up the structured-output payload piped in by the caller.

()

Source from the content-addressed store, hash-verified

223/// Read all of stdin into a string. Used by the CLI to pick up the
224/// structured-output payload piped in by the caller.
225pub fn read_stdin_to_string() -> Result<String> {
226 let mut s = String::new();
227 std::io::stdin().read_to_string(&mut s)?;
228 Ok(s)
229}
230
231/// Parse stdin content as a typed [`StructuredOutput`] payload.
232///

Callers 1

cmd_replyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…