-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
43 lines (36 loc) · 1.02 KB
/
index.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
#!/usr/bin/env node
const meow = require("meow");
const engine = require("./cli.js");
const cli = meow(
`
Usage
$ actualtasks <command> <flags>
Commands & Options
config Print the location of actualtasks the config file
fix-payees Apply the regex configured and remove it
calculate-mortage Calculate the principal from the mortage payment
ghostfolio-sync Sync Ghostfolio balance accounts with actual accounts
hold-amout-for-next-month Call sync method
Options for all commands
--user, -u Specify the user to load configs for
Examples
$ actualtasks config
`,
{
flags: {
user: {
alias: "u",
type: "string",
},
account: {
alias: "a",
type: "string",
},
since: {
alias: "s",
type: "string",
},
},
}
);
engine(cli.input[0], cli.flags);