8000 GitHub - stefnotch/cat-ascii-faces: (。^•ㅅ•^。) Print cats to your terminal, or get a random array of cats in a library!
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

(。^•ㅅ•^。) Print cats to your terminal, or get a random array of cats in a library!

Notifications You must be signed in to change notification settings

stefnotch/cat-ascii-faces

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cat-ascii-faces & cargo-cat

This crate provides two packages, a library and a binary.

The library

You can install the library on your project using the following command:

cargo add cat_ascii_faces

Then, you can use it however you'd like:

use cat_ascii_faces::Cats;

fn main() {
    let mut cats = Cats::new();
    // Print some random cats
    println!("{}", cats.cat()); // (=^・ェ・^=)
    println!("{}", cats.cat()); // ฅ(⌯͒• ɪ •⌯͒)ฅ❣
    println!("{}", cats.cat()); // o(=・ω・=o)

    // Print all cats (will print explicit Unicode because we're using the debug print "{:#?}")
    println!("{:#?}", Cats::all()); // [ ... ]
}

The binary

The binary is even simpler ✨

Installation

cargo install cat-ascii-faces

Usage

$ cargo cat --help
cargo-cat is a tool to print cats to the terminal (=^・ェ・^=)

Usage:
    cargo cat [OPTIONS]

Options:
    --help, -h                  Print this help message
    --all, -a                   Print all cats

If no option is provided, `cargo cat` will print a random cat face.
Note that the cat may render slightly different depending on the terminal.

About

(。^•ㅅ•^。) Print cats to your terminal, or get a random array of cats in a library!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%
0