| Crates.io | bolo |
| lib.rs | bolo |
| version | 0.1.0 |
| created_at | 2025-11-16 12:11:08.866203+00 |
| updated_at | 2025-11-16 12:11:08.866203+00 |
| description | A tiny Rust implementation of the classic echo command |
| homepage | |
| repository | https://github.com/fahimaloy/bolo |
| max_upload_size | |
| id | 1935453 |
| size | 25,981 |
A tiny, fast, Rust implementation of the classic
echocommand.
bolobolo is a zero-dependency, blazing fast native binary written in 100% safe Rust. It is designed to be a faithful and efficient clone of the standard POSIX echo utility.
The name "Bolo" means "speak" in Bengali — perfect for an echo clone!
echo behavior-n (suppress newline), -e (enable escapes), -E (disable escapes)-e (e.g., \n, \t, \a, \b, \c, \0nnn, \xHH)--help and --version flagscargo install bolo
Now bolo is available globally!
git clone https://github.com/fahimaloy/bolo.git
cd bolo
cargo install --path .
# Build the optimized release binary
cargo build --release
# Run the binary directly from the target directory
./target/release/bolo hello world
bolo [OPTIONS] [STRING...]
| Command | Output | Notes |
|---|---|---|
bolo hello world |
hello world |
Basic echo |
bolo -n "no newline" |
no newline(no newline at end) |
Use -n to suppress the trailing newline |
bolo -e "Line1\nLine2\tTabbed" |
Line1Line2 Tabbed |
Use -e to interpret escape sequences |
bolo -e "Bell\a" && sleep 1 |
(makes a beep sound) | \a (alert) produces an audible bell sound |
bolo -e "Stop here\c and ignore this" |
Stop here |
\c stops the output immediately |
bolo --help |
Shows the help message | |
bolo --version |
Shows the version information |
-e)| Sequence | Meaning |
|---|---|
\\ |
backslash character |
\a |
alert (bell) |
\b |
backspace |
\c |
stop output immediately |
\e |
escape character |
\f |
form feed |
\n |
newline |
\r |
carriage return |
\t |
horizontal tab |
\v |
vertical tab |
\0nnn |
octal value (1–3 digits) |
\xHH |
hexadecimal value (1–2 digits) |
bolo/
├── Cargo.toml
├── src/
│ └── main.rs
├── README.md
├── LICENSE-MIT
└── LICENSE-APACHE
# Run tests
cargo test
# Build the release binary
cargo build --release
# Run with arguments for quick testing
cargo run -- -e "Hello\nWorld"
Rust provides the perfect environment for small, high-performance CLI tools like bolo:
Contributions are always welcome! Feel free to:
Please follow the Rust community's Code of Conduct.
This project is dual-licensed under the following, at your option:
See LICENSE-MIT and LICENSE-APACHE for full details.
Fahim Ahmed
fahimaloy@gmail.com