-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.go
50 lines (46 loc) · 932 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
45
46
47
48
49
50
package main
import (
"leaf/commands"
"log"
"os"
"github.com/urfave/cli/v2"
)
func main() {
app := &cli.App{
Name: "lawg",
Usage: "your logs, one place.",
Commands: []*cli.Command{
{
Name: "login",
Aliases: []string{"init"},
Usage: "Login to lawg",
Action: commands.Login,
},
{
Name: "connect",
Aliases: []string{"c", "con"},
Usage: "Connect your apps to an application feed on lawg",
Action: commands.Connect,
},
{
Name: "listen",
Aliases: []string{"l", "li"},
Usage: "Listen to your application feeds on lawg",
Action: commands.Listen,
},
{
Name: "upstart",
Usage: "Configure lawg to start on systemctl",
Action: commands.Upstart,
},
{
Name: "whoami",
Usage: "Get your user information",
Action: commands.WhoAmI,
},
},
}
if err := app.Run(os.Args); err != nil {
log.Fatal(err)
}
}