/rust-cowsay

Cowsay implementation in Rust

Primary LanguageRustMIT LicenseMIT

Rust implementation of Cowsay

Building from Source
====================

Requires Rust 1.13+

`cargo build`

This creates `cowsay` and `cowthink` binaries.
It includes the default cowfiles in each binary.

Running
=======

Default

./cowsay "This is a test run"
 ___________________
< This is a test run >
 -------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

Included Cowfile

./cowsay -f tux "This is a test run"
 ___________________
< This is a test run >
 -------------------
   \
    \
        .--.
       |o_o |
       |:_/ |
      //   \ \
     (|     | )
    /'\_   _/`\
    \___)=(___/

Custom Cowfile

./cowsay -f src/go-cowsay/cows/elephant.cow "This is a test run"
 ___________________
< This is a test run >
 -------------------
 \     /\  ___  /\
  \   // \/   \/ \\
     ((    O O    ))
      \\ /     \ //
       \/  | |  \/
        |  | |  |
        |  | |  |
        |   o   |
        | |   | |
        |m|   |m|