Add small cowfile

Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
Thomas A. Christensen II 2021-11-23 16:57:16 -06:00
parent c458ec11ac
commit 0223384197
Signed by: millironx
GPG key ID: 139C07724802BC5D
3 changed files with 32 additions and 0 deletions

View file

@ -12,6 +12,7 @@ Cowsay.mech_and_cow
Cowsay.moofasa
Cowsay.mutilated
Cowsay.skeleton
Cowsay.small
Cowsay.udder
Cowsay.vader
Cowsay.www

View file

@ -22,6 +22,7 @@ include("cows/moose.cow.jl")
include("cows/mutilated.cow.jl")
include("cows/sheep.cow.jl")
include("cows/skeleton.cow.jl")
include("cows/small.cow.jl")
include("cows/udder.cow.jl")
include("cows/vader-koala.cow.jl")
include("cows/vader.cow.jl")

30
src/cows/small.cow.jl Normal file
View file

@ -0,0 +1,30 @@
"""
function small()
A small cow, artist unknown
# Example
```jldoctest
julia> cowsay("A calf", cow=Cowsay.small)
________
< A calf >
--------
\\ ,__,
\\ (..)____
(__) )\\
||--|| *
```
"""
function small(;eyes="oo", tongue=" ", thoughts="\\")
if eyes == "oo"
eyes = ".."
end
the_cow =
"""
$thoughts ,__,
$thoughts ($eyes)____
(__) )\\
$tongue||--|| *
"""
return the_cow
end