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