From aa68630d065019aa0f7f632ca3c4fb34b56f8196 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Tue, 23 Nov 2021 17:20:30 -0600 Subject: [PATCH] Add turtle 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/turtle.cow.jl | 49 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 src/cows/turtle.cow.jl diff --git a/docs/src/cows.md b/docs/src/cows.md index 11fec56..c8714c2 100644 --- a/docs/src/cows.md +++ b/docs/src/cows.md @@ -49,5 +49,6 @@ Cowsay.moose Cowsay.sheep Cowsay.stegosaurus Cowsay.turkey +Cowsay.turtle Cowsay.vader_koala ``` diff --git a/src/Cowsay.jl b/src/Cowsay.jl index 7b9a078..7bc5473 100644 --- a/src/Cowsay.jl +++ b/src/Cowsay.jl @@ -28,6 +28,7 @@ include("cows/supermilker.cow.jl") include("cows/surgery.cow.jl") include("cows/three-eyes.cow.jl") include("cows/turkey.cow.jl") +include("cows/turtle.cow.jl") include("cows/udder.cow.jl") include("cows/vader-koala.cow.jl") include("cows/vader.cow.jl") diff --git a/src/cows/turtle.cow.jl b/src/cows/turtle.cow.jl new file mode 100644 index 0000000..48c3ae6 --- /dev/null +++ b/src/cows/turtle.cow.jl @@ -0,0 +1,49 @@ +""" + function turtle() + +A mysterious turtle... + +# Example +```jldoctest +julia> cowsay("Where is that pesky rabbit?", cow=Cowsay.turtle) + _____________________________ +< Where is that pesky rabbit? > + ----------------------------- + \\ ___-------___ + \\ _-~~ ~~-_ + \\ _-~ /~-_ + /^\\__/^\\ /~ \\ / \\ + /| O|| O| / \\_______________/ \\ + | |___||__| / / \\ \\ + | \\ / / \\ \\ + | (_______) /______/ \\_________ \\ + | / / \\ / \\ + \\ \\^\\\\ \\ / \\ / + \\ || \\______________/ _-_ //\\__// + \\ ||------_-~~-_ ------------- \\ --/~ ~\\ || __/ + ~-----||====/~ |==================| |/~~~~~ + (_(__/ ./ / \\_\\ \\. + (_(___/ \\_____)_) +``` +""" +function turtle(;eyes="oo", tongue=" ", thoughts="\\") +the_cow = +""" + $thoughts ___-------___ + $thoughts _-~~ ~~-_ + $thoughts _-~ /~-_ + /^\\__/^\\ /~ \\ / \\ + /| O|| O| / \\_______________/ \\ + | |___||__| / / \\ \\ + | \\ / / \\ \\ + | (_______) /______/ \\_________ \\ + | / / \\ / \\ + \\ \\^\\\\ \\ / \\ / + \\ || \\______________/ _-_ //\\__// + \\ ||------_-~~-_ ------------- \\ --/~ ~\\ || __/ + ~-----||====/~ |==================| |/~~~~~ + (_(__/ ./ / \\_\\ \\. + (_(___/ \\_____)_) +""" +return the_cow +end