forked from klaudiosinani/taskbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cli.js
executable file
·87 lines (84 loc) · 1.36 KB
/
cli.js
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/usr/bin/env node
'use strict';
const meow = require('meow');
const updateNotifier = require('update-notifier');
const help = require('./src/help');
const pkg = require('./package.json');
const taskbook = require('.');
const cli = meow(help, {
flags: {
help: {
type: 'boolean',
alias: 'h'
},
version: {
type: 'boolean',
alias: 'v'
},
archive: {
type: 'boolean',
alias: 'a'
},
restore: {
type: 'boolean',
alias: 'r'
},
task: {
type: 'boolean',
alias: 't'
},
note: {
type: 'boolean',
alias: 'n'
},
delete: {
type: 'boolean',
alias: 'd'
},
check: {
type: 'boolean',
alias: 'c'
},
begin: {
type: 'boolean',
alias: 'b'
},
star: {
type: 'boolean',
alias: 's'
},
copy: {
type: 'boolean',
alias: 'y'
},
timeline: {
type: 'boolean',
alias: 'i'
},
priority: {
type: 'boolean',
alias: 'p'
},
find: {
type: 'boolean',
alias: 'f'
},
list: {
type: 'boolean',
alias: 'l'
},
edit: {
type: 'boolean',
alias: 'e'
},
move: {
type: 'boolean',
alias: 'm'
},
clear: {
type: 'boolean'
}
}
});
updateNotifier({pkg}).notify();
taskbook(cli.input, cli.flags);