Skip to content

LyonSyonII/read-pipe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

read-pipe

Simple Rust crate to read pipes from stdin.

Usage

if let Some(pipe) = read_pipe::read_pipe() {
    println!("User has piped \"{pipe}\" to the program.")
}

Examples


Input:

echo "Really interesting pipe" | cargo run

Output:

Some("Really interesting pipe")

Input:

cargo run

Output:

None

About

Small crate to read terminal pipes.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages