forked from Ghostavio/piroca
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcli.js
More file actions
executable file
·33 lines (31 loc) · 689 Bytes
/
cli.js
File metadata and controls
executable file
·33 lines (31 loc) · 689 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env node
var meow = require('meow');
var piroca = require('./');
var cli = meow({
help: [
"",
"Examples",
" $ piroca",
" Pingola",
"",
" $ piroca",
" Pipi",
"",
" $ piroca --all",
" Aipim",
" Anaconda",
" ...",
"",
"Options",
" --all Get all piroca names instead of a random piroca name.",
"",
" _,-%/%|",
" _,-' \\//%\\",
" _,-' \\%/|%",
" / / ) __,-- /%\\",
" \\__/_,-'%(% ; %)%",
" %\\%, %\\",
" '--%'"
]
});
console.log(cli.flags.all ? piroca.names.join('\n') : piroca.randomize());