Add a docstring for cowthink for IDEs and the REPL

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

View file

@ -81,6 +81,13 @@ function cowsay(message::AbstractString; cow=default, eyes="oo", tongue=" ")
println(string(balloon, cow(eyes=eyes, tongue=tongue)))
end
"""
cowthink(message::AbstractString; kwargs...)
Print an ASCII picture of a cow thinking `message`
See [`cowsay`](@ref)
"""
function cowthink(message::AbstractString; cow=default, eyes="oo", tongue=" ")
balloon = thinkballoon(message)
println(string(balloon, cow(eyes=eyes, tongue=tongue, thoughts="o")))