sivtr-core 0.2.4

Core library for sivtr terminal output and AI coding session processing across local agent providers
Documentation
1
2
3
4
5
6
7
8
9
10
use anyhow::Result;
use std::io::{self, Read};

/// Read all content from stdin.
/// Used when sivtr is invoked as `cmd | sivtr`.
pub fn read_stdin() -> Result<String> {
    let mut buffer = String::new();
    io::stdin().read_to_string(&mut buffer)?;
    Ok(buffer)
}