This is a simple cowsay clone written in Hook to demonstrate how packages work.
Use the package manager hpkg to install Hook's Cowsay.
Run the following command to install this package as a dependency of your project:
hpkg install cowsay
Now you can use it in your Hook project:
import cowsay;
cowsay.say("Hello, world!");
The say
function accepts a message and prints the cow saying it to the console. Like this:
-----------------
< Hello, world! >
-----------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
This project is licensed under the MIT License - see the LICENSE file for details.