Allow customizing the eyes and tongue

Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
Thomas A. Christensen II 2021-11-23 11:22:16 -06:00
parent 749efc52df
commit 3560278b13
Signed by: millironx
GPG key ID: 139C07724802BC5D

View file

@ -9,7 +9,7 @@ include("cows/default.cow.jl")
Prints a cow saying `message` as unwrapped text.
"""
function cowsay(message::AbstractString)
function cowsay(message::AbstractString; eyes="oo", tongue=" ")
messagelines = split(message, "\n")
nlines = length(messagelines)
@ -54,7 +54,7 @@ function cowsay(message::AbstractString)
)
end
println(string(balloon, default()))
println(string(balloon, default(eyes=eyes, tongue=tongue)))
end