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