1 unstable release
Uses new Rust 2024
new 0.1.0 | May 13, 2025 |
---|
#1455 in Command line utilities
4KB
rscowsay
A Rust implementation of the classic cowsay program.
Description
rscowsay
is a simple command-line utility that generates an ASCII art of a cow saying whatever message you provide. It's a Rust implementation of the popular Unix program cowsay
.
Installation
Using Cargo
cargo install rscowsay
Building from source
git clone https://github.com/yourusername/rscowsay.git
cd rscowsay
cargo build --release
The binary will be available at target/release/rscowsay
.
Usage
# Basic usage
rscowsay "Hello, World!"
# Output:
# -----------
# < Hello, World! >
# -----------
# \ ^__^
# \ (oo)\_______
# (__)\ )\/\
# ||----w |
# || ||
Options
--help
: Display help message--version
: Display version information
Examples
# Single word
rscowsay "Moo!"
# Multiple words
rscowsay "Hello from Rust!"
# Check version
rscowsay --version
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- Inspired by the original cowsay program.