🐄 cowsay for Julia!
Find a file
2022-02-01 17:01:14 -06:00
.github/workflows Add latest stable Julia version to CI testing 2022-02-01 16:12:11 -06:00
docs Add cowsaid to the docs 2022-02-01 16:15:50 -06:00
src Add text-wrapping to all functions 2022-02-01 17:01:14 -06:00
test Add optional io choosing for cowsay and cowthink 2022-02-01 16:29:08 -06:00
.gitignore Files generated by PkgTemplates 2021-09-15 17:51:11 -05:00
CHANGELOG.md Update CHANGELOG 2022-02-01 16:35:03 -06:00
LICENSE Files generated by PkgTemplates 2021-09-15 17:51:11 -05:00
Project.toml Add TextWrap dependancy 2022-02-01 16:46:29 -06:00
README.md Make README more useful 2022-01-11 20:03:43 -06:00

Cowsay.jl

 ___________________
< Cowsay for Juila! >
 -------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

Stable Dev Build Status Coverage

A talking cow library for Julia, based on the Fedora release of cowsay.

Installation

You can install straight from the Julia REPL. Press ] to enter pkg mode, then:

add Cowsay

Usage

Complete usage info can be found in the documentation. Cowsay.jl exports two functions: cowsay and cowthink, which print an ASCII cow saying or thinking a message without text wrapping, respectively.

julia> using Cowsay
julia> cowsay("Bessie the heifer\nthe queen of all the cows.")
 ____________________________
/ Bessie the heifer:         \
\ the queen of all the cows. /
 ----------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

julia> cowthink("The farmers who have no livestock,\ntheir lives simply aren't the best")
 ____________________________________
( The farmers who have no livestock, )
( their lives simply aren't the best )
 ------------------------------------
        o   ^__^
         o  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

There are also plenty of unexported Cowfiles that you can use to customize your art.

julia> cowsay("Super cattle growth hormone can make your beef delicious", cow=Cowsay.udder)
 __________________________________________________________
< Super cattle growth hormone can make your beef delicious >
 ----------------------------------------------------------
  \
   \    (__)
        o o\
       ('') \---------
          \           \
           |          |\
           ||---(  )_|| *
           ||    UU  ||
           ==        ==

You can also change the eyeballs and tongue of your cow.

julia> cowsay("You better watch your step\nwhen you know the chips are down!", tongue=" U", eyes="00")
 ___________________________________
/ You better watch your step        \
\ when you know the chips are down! /
 -----------------------------------
        \   ^__^
         \  (00)\_______
            (__)\       )\/\
              U ||----w |
                ||     ||