From a6a576eaa74f99164799a7d71a5fe70b3bc7c884 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Tue, 23 Nov 2021 16:02:33 -0600 Subject: [PATCH] Add kitty 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/kitty.cow.jl | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 src/cows/kitty.cow.jl diff --git a/docs/src/cows.md b/docs/src/cows.md index fe32cb1..2bae5b4 100644 --- a/docs/src/cows.md +++ b/docs/src/cows.md @@ -29,5 +29,6 @@ Cowsay.elephant_in_snake Cowsay.eyes Cowsay.flaming_sheep Cowsay.fox +Cowsay.kitty Cowsay.vader_koala ``` diff --git a/src/Cowsay.jl b/src/Cowsay.jl index 3334628..b993b41 100644 --- a/src/Cowsay.jl +++ b/src/Cowsay.jl @@ -13,6 +13,7 @@ include("cows/elephant.cow.jl") include("cows/eyes.cow.jl") include("cows/flaming-sheep.cow.jl") include("cows/fox.cow.jl") +include("cows/kitty.cow.jl") include("cows/udder.cow.jl") include("cows/vader-koala.cow.jl") include("cows/vader.cow.jl") diff --git a/src/cows/kitty.cow.jl b/src/cows/kitty.cow.jl new file mode 100644 index 0000000..8a45edb --- /dev/null +++ b/src/cows/kitty.cow.jl @@ -0,0 +1,34 @@ +""" + function kitty() + +A kitten of sorts, I think + +# Example + +```jldoctest +julia> cowsay("Meow", cow=Cowsay.kitty) + ______ +< Meow > + ------ + \\ + \\ + ("`-' '-/") .___..--' ' "`-._ + ` *_ * ) `-. ( ) .`-.__. `) + (_Y_.) ' ._ ) `._` ; `` -. .-' + _.. `--'_..-_/ /--' _ .' ,4 + ( i l ),-'' ( l i),' ( ( ! .-' +``` +""" +function kitty(;eyes="oo", tongue=" ", thoughts="\\") +the_cow = +""" + $thoughts + $thoughts + ("`-' '-/") .___..--' ' "`-._ + ` *_ * ) `-. ( ) .`-.__. `) + (_Y_.) ' ._ ) `._` ; `` -. .-' + _.. `--'_..-_/ /--' _ .' ,4 + ( i l ),-'' ( l i),' ( ( ! .-' +""" +return the_cow +end