Skip to content

Cowsay is a configurable talking cow built in the Swift language.

License

Notifications You must be signed in to change notification settings

lnfnunes/cowsay-swift-cli

Repository files navigation

cowsay-swift-cli

Cowsay is a configurable talking cow for your terminal.

 _____________
< Swift rocks >
 -------------
        \   ^__^
         \  (oo\________
            (__)\       )\/\
                ||----w |
                ||     ||

Why

Cowsay was originally written in Perl by Tony Monroe. This project is a translation in the Swift language based on the original idea. Created for a similar purpose as it's author:

A simple and silly project for learning how to use Swift, as a executable cli, as well as general amusement around this ecosystem.

Install

brew install mint
mint install lnfnunes/cowsay-swift-cli
# That’s it! Now you can run "cowsay" from anywhere!

Usage

cowsay Swift rocks

Options

cowsay -h

USAGE: cowsay [<message> ...] [--eyes <eyes>] [--tongue <tongue>] [--name <name>]

ARGUMENTS:
  <message>               The cow should say something

OPTIONS:
  -e, --eyes <eyes>       Change cow's eyes (default: oo)
  -t, --tongue <tongue>   Change cow's tongue (default:   )
  --name <name>           Select, by name, one of cows included in the package (default: example)
  -h, --help              Show help information.

Developing

git clone [email protected]:lnfnunes/cowsay-swift-cli.git
cd cowsay-swift-cli
swift run cowsay

Contributing

Check it out: CONTRIBUTING.md.

License

MIT LICENSE © Leandro Nunes (lnfnunes)