Abstract cow to cowfile
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
parent
1cd41f6729
commit
749efc52df
2 changed files with 14 additions and 9 deletions
|
@ -2,6 +2,8 @@ module Cowsay
|
||||||
|
|
||||||
export cowsay
|
export cowsay
|
||||||
|
|
||||||
|
include("cows/default.cow.jl")
|
||||||
|
|
||||||
"""
|
"""
|
||||||
cowsay(message::AbstractString)
|
cowsay(message::AbstractString)
|
||||||
|
|
||||||
|
@ -52,15 +54,7 @@ function cowsay(message::AbstractString)
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
cow = string(
|
println(string(balloon, default()))
|
||||||
" \\ ^__^\n",
|
|
||||||
" \\ (oo)\\_______\n",
|
|
||||||
" (__)\\ )\\/\\\n",
|
|
||||||
" ||----w |\n",
|
|
||||||
" || ||"
|
|
||||||
)
|
|
||||||
|
|
||||||
println(string(balloon, cow))
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
11
src/cows/default.cow.jl
Normal file
11
src/cows/default.cow.jl
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
function default(;eyes="oo", tongue=" ", thoughts="\\")
|
||||||
|
thecow =
|
||||||
|
"""
|
||||||
|
$thoughts ^__^
|
||||||
|
$thoughts ($eyes)\\_______
|
||||||
|
(__)\\ )\\/\\
|
||||||
|
$tongue ||----w |
|
||||||
|
|| ||
|
||||||
|
"""
|
||||||
|
return thecow
|
||||||
|
end
|
Loading…
Reference in a new issue