mirror of
https://github.com/kennethreitz/bake.git
synced 2026-06-05 23:00:17 +00:00
25 lines
449 B
JavaScript
Executable File
25 lines
449 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
'use strict';
|
|
const pkg = require('./package.json');
|
|
const yosay = require('.');
|
|
|
|
require('taketalk')({
|
|
init(input, options) {
|
|
console.log(yosay(input, options));
|
|
},
|
|
help() {
|
|
console.log(`
|
|
${pkg.description}
|
|
|
|
Usage
|
|
$ yosay <string>
|
|
$ yosay <string> --maxLength 8
|
|
$ echo <string> | yosay
|
|
|
|
Example
|
|
$ yosay 'Sindre is a horse'
|
|
${yosay('Sindre is a horse')}`);
|
|
},
|
|
version: pkg.version
|
|
});
|