From bc0232c94b8191abb21b0e624a7c8021d070413f Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Tue, 23 Nov 2021 16:49:16 -0600 Subject: [PATCH] Add sheep 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/sheep.cow.jl | 38 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 src/cows/sheep.cow.jl diff --git a/docs/src/cows.md b/docs/src/cows.md index a3a8d28..2c0a9ac 100644 --- a/docs/src/cows.md +++ b/docs/src/cows.md @@ -36,5 +36,6 @@ Cowsay.kitty Cowsay.koala Cowsay.meow Cowsay.moose +Cowsay.sheep Cowsay.vader_koala ``` diff --git a/src/Cowsay.jl b/src/Cowsay.jl index a1ec5a0..b1418f9 100644 --- a/src/Cowsay.jl +++ b/src/Cowsay.jl @@ -20,6 +20,7 @@ include("cows/meow.cow.jl") include("cows/moofasa.cow.jl") include("cows/moose.cow.jl") include("cows/mutilated.cow.jl") +include("cows/sheep.cow.jl") include("cows/udder.cow.jl") include("cows/vader-koala.cow.jl") include("cows/vader.cow.jl") diff --git a/src/cows/sheep.cow.jl b/src/cows/sheep.cow.jl new file mode 100644 index 0000000..722b2de --- /dev/null +++ b/src/cows/sheep.cow.jl @@ -0,0 +1,38 @@ +## +## The non-flaming sheep. +## +""" + function sheep() + +The non-flaming sheep. + +# Example +```jldoctest +julia> cowsay("Baa", cow=Cowsay.sheep) + _____ +< Baa > + ----- + \\ + \\ + __ + UooU\\.'@@@@@@`. + \\__/(@@@@@@@@@@) + (@@@@@@@@) + `YY~~~~YY' + || || +``` +""" +function sheep(;eyes="oo", tongue=" ", thoughts="\\") +the_cow = +""" + $thoughts + $thoughts + __ + U$(eyes)U\\.'@@@@@@`. + \\__/(@@@@@@@@@@) + (@@@@@@@@) + `YY~~~~YY' + || || +""" +return the_cow +end