diff --git a/docs/src/cows.md b/docs/src/cows.md index 25a295a..c2d68f9 100644 --- a/docs/src/cows.md +++ b/docs/src/cows.md @@ -6,6 +6,7 @@ Examples of all the cowfiles available. ```@docs Cowsay.default +Cowsay.cower ``` ## Mascots diff --git a/src/cows/cower.cow.jl b/src/cows/cower.cow.jl index eaf789a..e5bf8dd 100644 --- a/src/cows/cower.cow.jl +++ b/src/cows/cower.cow.jl @@ -1,6 +1,30 @@ ## ## A cowering cow ## +""" + function cower() + +A cowering cow + +# Example + +```jldoctest +julia> cowsay("Is it safe to come out yet?", cow=Cowsay.cower) + _____________________________ +< Is it safe to come out yet? > + ----------------------------- + \\ + \\ + ,__, | | + (oo)\\| |___ + (__)\\| | )\\_ + | |_w | \\ + | | || * + + Cower.... + +``` +""" function cower(;eyes="oo", tongue=" ", thoughts="\\") the_cow = """