7 releases

Uses new Rust 2024

0.1.6 Jan 13, 2026
0.1.5 Jan 10, 2026

#646 in Command-line interface

Apache-2.0

11KB
125 lines

Perl-like diamond operator for Rust

Crates.io License

// Prints all lines from files and standard input specified by command line
// arguments or from standard input if no argument is given.
fn main() {
    for line in diamond_op::new().line_iter() {
        print!("{}", line.expect("failed to read line"));
    }
}
# Prints all lines from file1.txt, file2.txt, standard input, and file3.txt.
mycmd file1.txt file2.txt - file3.txt

License

Licensed under the Apache License, Version 2.0.

No runtime deps