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
use anyhow::Result;
use std::path::Path;

/// Save text content to a file.
pub fn save_to_file(text: &str, path: &Path) -> Result<()> {
    std::fs::write(path, text)?;
    Ok(())
}