| Crates.io | diamond_op |
| lib.rs | diamond_op |
| version | 0.1.6 |
| created_at | 2026-01-01 03:29:22.722822+00 |
| updated_at | 2026-01-13 01:22:19.294709+00 |
| description | Perl-like diamond operator for Rust |
| homepage | |
| repository | https://github.com/LiosK/diamond-rs |
| max_upload_size | |
| id | 2015699 |
| size | 28,071 |
// 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
Licensed under the Apache License, Version 2.0.