1 |
|
2 | ;
|
3 | const pkg = require('./package.json');
|
4 | const yosay = require('.');
|
5 |
|
6 | require('taketalk')({
|
7 | init(input, options) {
|
8 | console.log(yosay(input, options));
|
9 | },
|
10 | help() {
|
11 | console.log(`
|
12 | ${pkg.description}
|
13 |
|
14 | Usage
|
15 | $ yosay <string>
|
16 | $ yosay <string> --maxLength 8
|
17 | $ echo <string> | yosay
|
18 |
|
19 | Example
|
20 | $ yosay 'Sindre is a horse'
|
21 | ${yosay('Sindre is a horse')}`);
|
22 | },
|
23 | version: pkg.version
|
24 | });
|