Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hankache/acme-cow

Acme::Cow
https://github.com/hankache/acme-cow

perl6 raku

Last synced: about 1 month ago
JSON representation

Acme::Cow

Awesome Lists containing this project

README

        

Acme::Cow [![Build Status](https://travis-ci.org/hankache/Acme-Cow.svg?branch=master)](https://travis-ci.org/hankache/Acme-Cow) [![Build status](https://ci.appveyor.com/api/projects/status/b9t9b1up1kom5xt9?svg=true)](https://ci.appveyor.com/project/hankache/acme-cow)
=========
A Raku implementation of cowsay.

Installation
------------
To install with zef:

```
zef update
zef install Acme::Cow
```

Examples
--------
```Raku
use Acme::Cow;

# Default
Cow::cow.new(initial-text => "Hello World!").display;

# Custom face
Cow::cow.new(initial-text => "Hello World!").set-face("stoned").display;

# Custom template
Cow::camelia.new(initial-text => "Hello World!").display;

# Custom template & Custom face
Cow::www.new(initial-text => "Hello World!").set-face("stoned").display;
```

Using the binary
----------------
```
cow-say --help
cow-say --about
cow-say --message='Hello World'
cow-say --message='Hello World' --face='stoned'
cow-say --message='Hello World' --template='camelia'
```

To Do
-----
* Enhance the text formatter
* Add more templates
* Use Terminal::ANSIColor to make the output more appealing

Author
------
Naoum Hankache

License
-------
Artistic License 2.0