From c458ec11ac2ad101ee913da129e71d6a222cf75e Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Tue, 23 Nov 2021 16:53:29 -0600 Subject: [PATCH] Add skeleton 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/skeleton.cow.jl | 41 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 src/cows/skeleton.cow.jl diff --git a/docs/src/cows.md b/docs/src/cows.md index 2c0a9ac..7ce1d80 100644 --- a/docs/src/cows.md +++ b/docs/src/cows.md @@ -11,6 +11,7 @@ Cowsay.dragon_and_cow Cowsay.mech_and_cow Cowsay.moofasa Cowsay.mutilated +Cowsay.skeleton Cowsay.udder Cowsay.vader Cowsay.www diff --git a/src/Cowsay.jl b/src/Cowsay.jl index b1418f9..a682ab0 100644 --- a/src/Cowsay.jl +++ b/src/Cowsay.jl @@ -21,6 +21,7 @@ include("cows/moofasa.cow.jl") include("cows/moose.cow.jl") include("cows/mutilated.cow.jl") include("cows/sheep.cow.jl") +include("cows/skeleton.cow.jl") include("cows/udder.cow.jl") include("cows/vader-koala.cow.jl") include("cows/vader.cow.jl") diff --git a/src/cows/skeleton.cow.jl b/src/cows/skeleton.cow.jl new file mode 100644 index 0000000..bb55e40 --- /dev/null +++ b/src/cows/skeleton.cow.jl @@ -0,0 +1,41 @@ +## + +## +""" + function skeleton() + +This 'Scowleton' brought to you by one of +{appel,kube,rowe}@csua.berkeley.edu + +# Example +```jldoctest +julia> cowsay("All T-Bone, no steak", cow=Cowsay.skeleton) + ______________________ +< All T-Bone, no steak > + ---------------------- + \\ (__) + \\ /oo| + \\ (_"_)*+++++++++* + //I#\\\\\\\\\\\\\\\\I\\ + I[I|I|||||I I ` + I`I'///'' I I + I I I I + ~ ~ ~ ~ + Scowleton +``` +""" +function skeleton(;eyes="oo", tongue=" ", thoughts="\\") +the_cow = +""" + $thoughts (__) + $thoughts /$eyes| + $thoughts (_"_)*+++++++++* + //I#\\\\\\\\\\\\\\\\I\\ + I[I|I|||||I I ` + I`I'///'' I I + I I I I + ~ ~ ~ ~ + Scowleton +""" +return the_cow +end