Read all of stdin into a string. Used by the CLI to pick up the structured-output payload piped in by the caller.
()
| 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. |
| 225 | pub 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 | /// |
no outgoing calls
no test coverage detected
searching dependent graphs…