diff --git a/docs/src/cows.md b/docs/src/cows.md index c8714c2..e2cf8f7 100644 --- a/docs/src/cows.md +++ b/docs/src/cows.md @@ -23,6 +23,7 @@ Cowsay.www ```@docs Cowsay.blowfish Cowsay.elephant +Cowsay.tux ``` ## Cows and friends diff --git a/src/Cowsay.jl b/src/Cowsay.jl index 7bc5473..61357d3 100644 --- a/src/Cowsay.jl +++ b/src/Cowsay.jl @@ -29,6 +29,7 @@ include("cows/surgery.cow.jl") include("cows/three-eyes.cow.jl") include("cows/turkey.cow.jl") include("cows/turtle.cow.jl") +include("cows/tux.cow.jl") include("cows/udder.cow.jl") include("cows/vader-koala.cow.jl") include("cows/vader.cow.jl") diff --git a/src/cows/tux.cow.jl b/src/cows/tux.cow.jl new file mode 100644 index 0000000..7075b11 --- /dev/null +++ b/src/cows/tux.cow.jl @@ -0,0 +1,42 @@ +## + +## +""" + function tux() + +TuX +(c) pborys@p-soft.silesia.linux.org.pl + +# Example +```jldoctest +julia> cowsay("Talk is cheap. Show me the code.", cow=Cowsay.tux) + __________________________________ +< Talk is cheap. Show me the code. > + ---------------------------------- + \\ + \\ + .--. + |o_o | + |:_/ | + // \\ \\ + (| | ) + /'\\_ _/`\\ + \\___)=(___/ +``` +""" +function tux(;eyes="oo", tongue=" ", thoughts="\\") +the_cow = +""" + $thoughts + $thoughts + .--. + |o_o | + |:_/ | + // \\ \\ + (| | ) + /'\\_ _/`\\ + \\___)=(___/ + +""" +return the_cow +end