-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathindex.js
More file actions
executable file
·32 lines (24 loc) · 736 Bytes
/
Copy pathindex.js
File metadata and controls
executable file
·32 lines (24 loc) · 736 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
#!/usr/bin/env node
/**
* github-stars-contributions
* Log your GitHub Stars Contributions with the ease of a command line CLI
*
* @author Ahmad Awais <https://twitter.com/_AhmadAwais/>
*/
const checkNode = require('cli-check-node');
checkNode('14');
const init = require('./utils/init');
const cli = require('./utils/cli');
const log = require('./utils/log');
const input = cli.input;
const flags = cli.flags;
const { clear, debug } = flags;
const contributions = require('./utils/contributions');
const remove = require('./utils/remove');
(async () => {
await init({ clear });
input.includes(`help`) && cli.showHelp(0);
input.includes(`remove`) && (await remove());
await contributions();
debug && log(flags);
})();