-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
39 lines (34 loc) · 772 Bytes
/
main.go
File metadata and controls
39 lines (34 loc) · 772 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
33
34
35
36
37
38
package main
import (
"log"
"os"
cli "github.com/urfave/cli/v2"
"github.com/linuxerwang/goplz/commands/debug"
initialize "github.com/linuxerwang/goplz/commands/init"
"github.com/linuxerwang/goplz/commands/start"
"github.com/linuxerwang/goplz/commands/stop"
"github.com/linuxerwang/goplz/commands/version"
)
func main() {
app := &cli.App{
Name: "goplz",
Usage: "A fuse mount tool for Please to better support Golang development",
Flags: []cli.Flag{
&cli.BoolFlag{
Name: "verbose",
Value: false,
Usage: "print verbose logs",
},
},
Commands: []*cli.Command{
debug.DebugCmd,
initialize.InitCmd,
start.StartCmd,
stop.StopCmd,
version.VersionCmd,
},
}
if err := app.Run(os.Args); err != nil {
log.Fatal(err)
}
}