Skip to content

Cbeck527/rabbitsay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RabbitSay

Rust CI Release License: MIT

Say (possibly mean) things with a cute rabbit.

Installation

# From source
cargo install rabbitsay

# From source
cargo install --path .

Or download from the releases page.

Usage

$ rabbitsay "Hello, world!"
┌─────────────────┐
│  Hello, world!  │
└─────────────────┘
 (\__/) ||
 (•ㅅ•) ||
 /   づ

CLI Options

Usage: rabbitsay [OPTIONS] <MESSAGE>

Arguments:
  <MESSAGE>  Message on the rabbit's sign

Options:
  -p, --padding <PADDING>      Padding around the message [default: 4]
  -w, --max-width <MAX_WIDTH>  Maximum width of the sign [default: 16]
  -h, --help                   Print help
  -V, --version                Print version

As a Library

Add to your Cargo.toml:

[dependencies]
rabbitsay = { git = "https://github.com/Cbeck527/rabbitsay" }

Use in your code:

use rabbitsay::say;

fn main() {
    let output = say("Hello from Rust!");
    println!("{}", output);
}

About

Say (possibly mean) things with a cute rabbit

Resources

License

Stars

Watchers

Forks

Contributors