pctx 0.1.3

Generate LLM-ready context from your codebase
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Standard output writing.

use std::io::{self, Write};

use crate::error::PctxError;

/// Write content to stdout
pub fn write(content: &str) -> Result<(), PctxError> {
    let stdout = io::stdout();
    let mut handle = stdout.lock();
    handle.write_all(content.as_bytes())?;
    handle.flush()?;
    Ok(())
}