Allow customizing the eyes and tongue
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
parent
749efc52df
commit
3560278b13
1 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ include("cows/default.cow.jl")
|
||||||
|
|
||||||
Prints a cow saying `message` as unwrapped text.
|
Prints a cow saying `message` as unwrapped text.
|
||||||
"""
|
"""
|
||||||
function cowsay(message::AbstractString)
|
function cowsay(message::AbstractString; eyes="oo", tongue=" ")
|
||||||
messagelines = split(message, "\n")
|
messagelines = split(message, "\n")
|
||||||
nlines = length(messagelines)
|
nlines = length(messagelines)
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ function cowsay(message::AbstractString)
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
println(string(balloon, default()))
|
println(string(balloon, default(eyes=eyes, tongue=tongue)))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue