From 7cb8f6b3be5f378ca02bae3c611a6566b1ab1d8d Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Tue, 23 Nov 2021 16:07:55 -0600 Subject: [PATCH] Add koala cowfile Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com> --- docs/src/cows.md | 1 + src/Cowsay.jl | 1 + src/cows/koala.cow.jl | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 src/cows/koala.cow.jl diff --git a/docs/src/cows.md b/docs/src/cows.md index 2bae5b4..c7e3040 100644 --- a/docs/src/cows.md +++ b/docs/src/cows.md @@ -30,5 +30,6 @@ Cowsay.eyes Cowsay.flaming_sheep Cowsay.fox Cowsay.kitty +Cowsay.koala Cowsay.vader_koala ``` diff --git a/src/Cowsay.jl b/src/Cowsay.jl index b993b41..8cea75a 100644 --- a/src/Cowsay.jl +++ b/src/Cowsay.jl @@ -14,6 +14,7 @@ include("cows/eyes.cow.jl") include("cows/flaming-sheep.cow.jl") include("cows/fox.cow.jl") include("cows/kitty.cow.jl") +include("cows/koala.cow.jl") include("cows/udder.cow.jl") include("cows/vader-koala.cow.jl") include("cows/vader.cow.jl") diff --git a/src/cows/koala.cow.jl b/src/cows/koala.cow.jl new file mode 100644 index 0000000..bd6c8a5 --- /dev/null +++ b/src/cows/koala.cow.jl @@ -0,0 +1,34 @@ +""" + function koala + +From the canonical koala collection + +# Example + +```jldoctest +julia> cowsay("Welcome to Down Under", cow=Cowsay.koala) + _______________________ +< Welcome to Down Under > + ----------------------- + \\ + \\ + ___ + {~._.~} + ( Y ) + ()~*~() + (_)-(_) +``` +""" +function koala(;eyes="oo", tongue=" ", thoughts="\\") +the_cow = +""" + $thoughts + $thoughts + ___ + {~._.~} + ( Y ) + ()~*~() + (_)-(_) +""" +return the_cow +end