github.com/Korppi/pigsay

Cowsay clone.


License
MIT
Install
go get github.com/Korppi/pigsay

Documentation

Go Report Card

pigsay

Inspired by cowsay. I made this to learn more about go and cobra.

How to use

In builds/ folder you can find binaries for pigsay. For windows use pigsay.exe and for linux use pigsay. Download them, open terminal in folder you downloaded them and execute command

[teppo@vmi1490863 ~]$ ./pigsay Hello World

It should look like this

[teppo@vmi1490863 ~]$ ./pigsay Hello World
   _____________
  /             \
  | Hello World |
  \_  __________/
    \|
         _/|________
        / o         \
       E,            |S
        \___________/
         WW       WW

It is possible that on linux you might need to give executable right to pigsay before it works:

[teppo@vmi1490863 ~]$ sudo chmod +x pigsay

There is help command provided

[teppo@vmi1490863 ~]$ ./pigsay --help
Make a pig say things!

Usage:
  pigsay [-e] <MESSAGE> [flags]

Examples:
pigsay
        Display help
pigsay Hello World
        Display pig saying "Hello World"
pigsay -e @ Hello World
        Display pig with custom eye @ saying "Hello World"
pigsay --eyes @ Hello World
        Display pig with custom eye @ saying "Hello World"


Flags:
  -e, --eyes string   give pig different eyes (default "o")
  -h, --help          help for pigsay
  -v, --version       version for pigsay

Example video

asciicast