Add documentation for cowthink

This commit is contained in:
Thomas A. Christensen II 2022-01-11 19:32:42 -06:00
parent 8fecb1e59a
commit 6e5c336ee2
Signed by: millironx
GPG key ID: 139C07724802BC5D

View file

@ -38,8 +38,9 @@ include("cows/www.cow.jl")
""" """
cowsay(message::AbstractString; kwargs...) cowsay(message::AbstractString; kwargs...)
cowthink(message::AbstractString; kwargs...)
Print an ASCII picture of a cow saying `message` Print an ASCII picture of a cow saying/thinking `message`
# Arguments # Arguments
- `message::AbstractString`: Tell the cow what to say - `message::AbstractString`: Tell the cow what to say
@ -63,6 +64,16 @@ julia> cowsay("Have you mooed today?")
(__)\\ )\\/\\ (__)\\ )\\/\\
||----w | ||----w |
|| || || ||
julia> cowthink("Have I mooed today?")
_____________________
( Have I mooed today? )
---------------------
o ^__^
o (oo)\\_______
(__)\\ )\\/\\
||----w |
|| ||
``` ```
""" """
function cowsay(message::AbstractString; cow=default, eyes="oo", tongue=" ") function cowsay(message::AbstractString; cow=default, eyes="oo", tongue=" ")