-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmain.go
44 lines (36 loc) · 923 Bytes
/
main.go
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
package main
import (
"os"
"github.com/regmicmahesh/merosharemorelikeidontcare/commands"
"github.com/urfave/cli/v2"
)
const DESCRIPTION = `
Meroshare CLI - Rejecting Angular and Bloated Web and embrace the power of CLI.
Environment Variables:
MSHAREKEY used to sign your password before saving in your system.
`
func main() {
app := &cli.App{
Name: "meroshare-cli",
Usage: "meroshare-cli is a command line interface for Meroshare.",
HelpName: "meroshare-cli",
Version: "0.0.1",
Flags: []cli.Flag{
&cli.StringFlag{
Name: "output",
Usage: "output in json or ascii table",
Value: "ascii",
},
},
Description: DESCRIPTION,
Commands: []*cli.Command{
commands.DetailsCommand,
commands.PortfolioCommand,
commands.InitCommand,
commands.CapitalsCommand,
commands.ApplicationReportCommand,
commands.ApplicationReportDetailsCommand,
},
}
app.Run(os.Args)
}