From ce2fb5e0aba68ea6f9d02a52fe4b5ec26ab6e0ed Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Tue, 23 Nov 2021 15:47:53 -0600 Subject: [PATCH] Add flaming-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/flaming-sheep.cow.jl | 43 +++++++++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 src/cows/flaming-sheep.cow.jl diff --git a/docs/src/cows.md b/docs/src/cows.md index 505edc0..2f31bf3 100644 --- a/docs/src/cows.md +++ b/docs/src/cows.md @@ -26,5 +26,6 @@ Cowsay.bunny Cowsay.dragon_and_cow Cowsay.dragon Cowsay.elephant_in_snake +Cowsay.flaming_sheep Cowsay.vader_koala ``` diff --git a/src/Cowsay.jl b/src/Cowsay.jl index 5760405..df6967c 100644 --- a/src/Cowsay.jl +++ b/src/Cowsay.jl @@ -10,6 +10,7 @@ include("cows/dragon-and-cow.cow.jl") include("cows/dragon.cow.jl") include("cows/elephant-in-snake.cow.jl") include("cows/elephant.cow.jl") +include("cows/flaming-sheep.cow.jl") include("cows/udder.cow.jl") include("cows/vader-koala.cow.jl") include("cows/vader.cow.jl") diff --git a/src/cows/flaming-sheep.cow.jl b/src/cows/flaming-sheep.cow.jl new file mode 100644 index 0000000..7ccc577 --- /dev/null +++ b/src/cows/flaming-sheep.cow.jl @@ -0,0 +1,43 @@ +## +## The flaming sheep, contributed by Geordan Rosario (geordan@csua.berkeley.edu) +## +""" + function flaming_sheep() + +The flaming sheep, contributed by Geordan Rosario (geordan@csua.berkeley.edu) + +# Example + +```jldoctest +julia> cowsay("Baaahhh!", cow=Cowsay.flaming_sheep) + __________ +< Baaahhh! > + ---------- + \\ . . . + \\ . . . ` , + \\ .; . : .' : : : . + \\ i..`: i` i.i.,i i . + \\ `,--.|i |i|ii|ii|i: + UooU\\.'@@@@@@`.||' + \\__/(@@@@@@@@@@)' + (@@@@@@@@) + `YY~~~~YY' + || || +``` +""" +function flaming_sheep(;eyes="oo", tongue=" ", thoughts="\\") +the_cow = +""" + $thoughts . . . + $thoughts . . . ` , + $thoughts .; . : .' : : : . + $thoughts i..`: i` i.i.,i i . + $thoughts `,--.|i |i|ii|ii|i: + U$(eyes)U\\.'@@@@@@`.||' + \\__/(@@@@@@@@@@)' + (@@@@@@@@) + `YY~~~~YY' + || || +""" +return the_cow +end