From 30faff4071594d2c6dba6e95e3a2ab5d41d1a2ac Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Tue, 23 Nov 2021 15:57:48 -0600 Subject: [PATCH] Add fox 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/fox.cow.jl | 50 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 src/cows/fox.cow.jl diff --git a/docs/src/cows.md b/docs/src/cows.md index 6655cea..fe32cb1 100644 --- a/docs/src/cows.md +++ b/docs/src/cows.md @@ -28,5 +28,6 @@ Cowsay.dragon Cowsay.elephant_in_snake Cowsay.eyes Cowsay.flaming_sheep +Cowsay.fox Cowsay.vader_koala ``` diff --git a/src/Cowsay.jl b/src/Cowsay.jl index 7d890f4..3334628 100644 --- a/src/Cowsay.jl +++ b/src/Cowsay.jl @@ -12,6 +12,7 @@ include("cows/elephant-in-snake.cow.jl") include("cows/elephant.cow.jl") include("cows/eyes.cow.jl") include("cows/flaming-sheep.cow.jl") +include("cows/fox.cow.jl") include("cows/udder.cow.jl") include("cows/vader-koala.cow.jl") include("cows/vader.cow.jl") diff --git a/src/cows/fox.cow.jl b/src/cows/fox.cow.jl new file mode 100644 index 0000000..bb810d2 --- /dev/null +++ b/src/cows/fox.cow.jl @@ -0,0 +1,50 @@ +""" + function fox() + +# Example + +``` +julia> cowsay("What does the fox say?", cow=Cowsay.fox) + ________________________ +< What does the fox say? > + ------------------------ + \\ ,-. .-, + \\ |-.\\ __ /.-| + \\ \\ ` ` / + /_ _ \\ + < _`q p _ > + <.._=/ \\=_. > + {`\\()/`}`\\ + { } \\ + |{ } \\ + \\ '--' .- \\ + |- / \\ + | | | | | ; + | | |.;.,..__ | + .-"";` `| + / | / + `-../____,..---'` +``` +""" +function fox(;eyes="oo", tongue=" ", thoughts="\\") +the_cow = +""" + $thoughts ,-. .-, + $thoughts |-.\\ __ /.-| + $thoughts \\ ` ` / + /_ _ \\ + < _`q p _ > + <.._=/ \\=_. > + {`\\()/`}`\\ + { } \\ + |{ } \\ + \\ '--' .- \\ + |- / \\ + | | | | | ; + | | |.;.,..__ | + .-"";` `| + / | / + `-../____,..---'` +""" +return the_cow +end