From bd3a83bf5ed8394bd507943e1c7e67ab6fbc6272 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Tue, 23 Nov 2021 16:34:14 -0600 Subject: [PATCH] Add moofasa 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/moofasa.cow.jl | 40 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 src/cows/moofasa.cow.jl diff --git a/docs/src/cows.md b/docs/src/cows.md index 4e92fb5..b0d832e 100644 --- a/docs/src/cows.md +++ b/docs/src/cows.md @@ -9,6 +9,7 @@ Cowsay.default Cowsay.cower Cowsay.dragon_and_cow Cowsay.mech_and_cow +Cowsay.moofasa Cowsay.udder Cowsay.vader Cowsay.www diff --git a/src/Cowsay.jl b/src/Cowsay.jl index bcef9fc..06ebb8b 100644 --- a/src/Cowsay.jl +++ b/src/Cowsay.jl @@ -17,6 +17,7 @@ include("cows/kitty.cow.jl") include("cows/koala.cow.jl") include("cows/mech-and-cow.cow.jl") include("cows/meow.cow.jl") +include("cows/moofasa.cow.jl") include("cows/udder.cow.jl") include("cows/vader-koala.cow.jl") include("cows/vader.cow.jl") diff --git a/src/cows/moofasa.cow.jl b/src/cows/moofasa.cow.jl new file mode 100644 index 0000000..79ec078 --- /dev/null +++ b/src/cows/moofasa.cow.jl @@ -0,0 +1,40 @@ +## +## MOOfasa. +## +""" + function moofasa() + +MOOfasa + +# Example +```jldoctest +julia> cowsay("It's the circle of life", cow=Cowsay.moofasa) + _________________________ +< It's the circle of life > + ------------------------- + \\ ____ + \\ / \\ + | ^__^ | + | (oo) |______ + | (__) | )\\/\\ + \\____/|----w | + || || + + Moofasa +``` +""" +function moofasa(;eyes="oo", tongue=" ", thoughts="\\") +the_cow = +""" + $thoughts ____ + $thoughts / \\ + | ^__^ | + | ($eyes) |______ + | (__) | )\\/\\ + \\____/|----w | + || || + + Moofasa +""" +return the_cow +end