injm 0.2.0

A CLI tool that injects content into marked regions in source files.
1
2
3
4
5
6
7
8
use crate::error::Result;
use std::io::{self, Read};

pub fn read_stdin() -> Result<String> {
    let mut input = String::new();
    io::stdin().read_to_string(&mut input)?;
    Ok(input)
}