shuck-cli 0.0.17

A fast shell script linter
Documentation
1
2
3
4
5
6
7
8
9
use std::io::{self, Read};

use anyhow::Result;

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