From 2af23181282cb661935c7e3052a959de0da2e0e3 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Tue, 23 Nov 2021 16:46:22 -0600 Subject: [PATCH] Add mutilated 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/mutilated.cow.jl | 28 ++++++++++++++++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 src/cows/mutilated.cow.jl diff --git a/docs/src/cows.md b/docs/src/cows.md index 4614d95..a3a8d28 100644 --- a/docs/src/cows.md +++ b/docs/src/cows.md @@ -10,6 +10,7 @@ Cowsay.cower Cowsay.dragon_and_cow Cowsay.mech_and_cow Cowsay.moofasa +Cowsay.mutilated Cowsay.udder Cowsay.vader Cowsay.www diff --git a/src/Cowsay.jl b/src/Cowsay.jl index 1ae4c73..a1ec5a0 100644 --- a/src/Cowsay.jl +++ b/src/Cowsay.jl @@ -19,6 +19,7 @@ include("cows/mech-and-cow.cow.jl") include("cows/meow.cow.jl") include("cows/moofasa.cow.jl") include("cows/moose.cow.jl") +include("cows/mutilated.cow.jl") include("cows/udder.cow.jl") include("cows/vader-koala.cow.jl") include("cows/vader.cow.jl") diff --git a/src/cows/mutilated.cow.jl b/src/cows/mutilated.cow.jl new file mode 100644 index 0000000..3b6644a --- /dev/null +++ b/src/cows/mutilated.cow.jl @@ -0,0 +1,28 @@ +""" + function mutilated() + +A mutilated cow, from aspolito@csua.berkeley.edu + +# Example +```jldoctest +julia> cowsay("I wouldn't have been so eager to make head cheese...", cow=Cowsay.mutilated) + ______________________________________________________ +< I wouldn't have been so eager to make head cheese... > + ------------------------------------------------------ + \\ \\_______ + v__v \\ \\ O ) + (oo) ||----w | + (__) || || \\/\\ +``` +""" +function mutilated(;eyes="oo", tongue=" ", thoughts="\\") +the_cow = +""" + $thoughts \\_______ + v__v $thoughts \\ O ) + ($eyes) ||----w | + (__) || || \\/\\ + $tongue +""" +return the_cow +end