recho
is a simple command-line utility written in Rust that echoes input arguments with optional newline control. It is designed to provide flexibility in printing text, allowing users to control whether a newline character should be appended to the output or not.
To use Recho, build the project and run the executable, passing the desired input arguments:
cargo build --release
./target/release/recho [OPTIONS] [INPUTS...]
-n
: Do not print a newline character at the end of the output.
- Echo with a newline:
./target/release/recho Hello
# Output: Hello
- Echo without a newline:
./target/release/recho -n Hello World
# Output: Hello World%
- Combining options and inputs:
./target/release/recho Apple pie -n recipe
# Output: Apple pie -n recipe
To run the test suit, use the following command:
cargo test
This project is licensed under the MIT License - see the LICENSE file for details.