clippy-say

Crates.ioclippy-say
lib.rsclippy-say
version1.0.1
created_at2025-07-17 02:57:37.663316+00
updated_at2025-07-17 13:00:20.232977+00
descriptionPrint ASCII art of Clippy to your terminal
homepage
repositoryhttps://github.com/GrimOutlook/clippy-say
max_upload_size
id1757012
size828,578
Dominic Grimaldi (GrimOutlook)

documentation

README

clippy-say

Cowsay but for your favorite annoying paperclip.

This tool can be used both as a library for utilizing in your Rust code or as a command line tool.

Installation

Command Line

cargo install --features cli clippy-say

Library

cargo add clippy-say

Usage

Command Line

You can either use multiline strings in bash or use newline escapes: \n.

$ cargo install clippy-say
$ clippy-say "I'm sorry dave,\nbut I'm afraid I can't do that."

Output

Library

use clippy_say::clippy_say;

fn main() {
    println!("{}", clippy_say("THERE IS AS YET INSUFFICIENT DATA FOR A MEANINGFUL ANSWER"));
}
$ cargo run

Output

Caveats

Currently you have to format the input string yourself. The speech bubbles width is tied to the length of the longest string in your input. The height of the speech bubble is tied to the number of newlines in your input. All input is left justified. Any other justification currently needs to be added manually to the input before submission to Clippy.

Future Features

  • Justification
    • Left
    • Center
    • Right
  • Max width tied to terminal frame width
  • Automatic formatting of text from one to multiple lines.

Contribution

Contributions are welcome 😁

Just fork the repo, make your changes, and submit your pull request!

Commit count: 0

cargo fmt