yes
yes copied to clipboard
An implementation of the `yes` command in Rust
``` ➜ yes git:(master) timeout 10s ./target/release/yes | pv -r >/dev/null [9.30GiB/s] ➜ yes git:(master) timeout 10s yes | pv -r >/dev/null [9.87GiB/s] ```
So I decided to package `yes` for Fedora and it definitely conflicts with coreutils' `yes` binary. Do you think I should use `rust-yes` binary name or `yes-rs` or ...? What...
Also Removed resulting dead code. Note: Performance is not affected by changes.
Running yes with more than one argument ignores other argument and does not print them. Example: ``` ./yes a b a a a .. ``` Expected: ``` ./yes a b...
By using a match statement, we can avoid a lambda, a Cow, and the chain of combinators, with no loss of efficiency.
`fill_up_buffer` keeps doubling the amount it fills with each iteration, but this means that it doesn't fill up as much as it could. For example, let's say the buffer size...