From 37ee7beb81156f06da773b026914345cd2aa2d36 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Tue, 23 Nov 2021 17:11:22 -0600 Subject: [PATCH] Add surgery cowfile Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com> --- docs/src/cows.md | 10 +++++-- src/Cowsay.jl | 1 + src/cows/surgery.cow.jl | 60 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 69 insertions(+), 2 deletions(-) create mode 100644 src/cows/surgery.cow.jl diff --git a/docs/src/cows.md b/docs/src/cows.md index f7039b8..6ee8b11 100644 --- a/docs/src/cows.md +++ b/docs/src/cows.md @@ -7,8 +7,6 @@ Examples of all the cowfiles available. ```@docs Cowsay.default Cowsay.cower -Cowsay.dragon_and_cow -Cowsay.mech_and_cow Cowsay.moofasa Cowsay.mutilated Cowsay.skeleton @@ -26,6 +24,14 @@ Cowsay.blowfish Cowsay.elephant ``` +## Cows and friends + +```@docs +Cowsay.dragon_and_cow +Cowsay.mech_and_cow +Cowsay.surgery +``` + ## Other ```@docs diff --git a/src/Cowsay.jl b/src/Cowsay.jl index 24c0156..ba1a289 100644 --- a/src/Cowsay.jl +++ b/src/Cowsay.jl @@ -25,6 +25,7 @@ include("cows/skeleton.cow.jl") include("cows/small.cow.jl") include("cows/stegosaurus.cow.jl") include("cows/supermilker.cow.jl") +include("cows/surgery.cow.jl") include("cows/udder.cow.jl") include("cows/vader-koala.cow.jl") include("cows/vader.cow.jl") diff --git a/src/cows/surgery.cow.jl b/src/cows/surgery.cow.jl new file mode 100644 index 0000000..9636574 --- /dev/null +++ b/src/cows/surgery.cow.jl @@ -0,0 +1,60 @@ +## +## A cow operation, artist unknown +## +""" + function surgery() + +A cow operation, artist unknown + +# Example +```jldoctest +julia> cowsay("Removing the last bit of net wrap now", cow=Cowsay.surgery) + _______________________________________ +< Removing the last bit of net wrap now > + --------------------------------------- + \\ \\ / + \\ \\/ + (__) /\\ + (oo) O O + _\\/_ // + * ( ) // + \\ (\\\\ // + \\( \\\\ ) + ( \\\\ ) /\\ + ___[\\______/^^^^^^^\\__/) o-)__ + |\\__[=======______//________)__\\ + \\|_______________//____________| + ||| || //|| ||| + ||| || @.|| ||| + || \\/ .\\/ || + . . + '.'.` + + COW-OPERATION +``` +""" +function surgery(;eyes="oo", tongue=" ", thoughts="\\") +the_cow = +""" + $thoughts \\ / + $thoughts \\/ + (__) /\\ + ($eyes) O O + _\\/_ // + * ( ) // + \\ (\\\\ // + \\( \\\\ ) + ( \\\\ ) /\\ + ___[\\______/^^^^^^^\\__/) o-)__ + |\\__[=======______//________)__\\ + \\|_______________//____________| + ||| || //|| ||| + ||| || @.|| ||| + || \\/ .\\/ || + . . + '.'.` + + COW-OPERATION +""" +return the_cow +end