-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcli.js
More file actions
24 lines (17 loc) · 652 Bytes
/
cli.js
File metadata and controls
24 lines (17 loc) · 652 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
#!/usr/bin/env node
const React = require('react');
const importJsx = require('import-jsx');
const { render } = require('ink');
const meow = require('meow');
const App = importJsx('./app');
const cli = meow(`
Usage: git-tracker [OPTION]...
Mandatory arguments to long options are mandatory for short options too.
--path=<path> Current directory by default
--since=<date> The last day by default
--author=<author> Current user by default
--first-hour=<time> 9 by default
--help display this help and exit
--version output version information and exit
`);
render(React.createElement(App, cli.flags));