Add small cowfile
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
parent
c458ec11ac
commit
0223384197
3 changed files with 32 additions and 0 deletions
|
@ -12,6 +12,7 @@ Cowsay.mech_and_cow
|
|||
Cowsay.moofasa
|
||||
Cowsay.mutilated
|
||||
Cowsay.skeleton
|
||||
Cowsay.small
|
||||
Cowsay.udder
|
||||
Cowsay.vader
|
||||
Cowsay.www
|
||||
|
|
|
@ -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
30
src/cows/small.cow.jl
Normal 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
|
Loading…
Reference in a new issue