-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgum.go
64 lines (58 loc) · 1.32 KB
/
gum.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
package main
import (
"os"
"github.com/urfave/cli"
"github.com/xLegoz/gum/cmds"
_ "github.com/xLegoz/gum/services/datastores"
_ "github.com/xLegoz/gum/services/languages"
)
func main() {
app := cli.NewApp()
app.Name = "gum"
app.Usage = "manage your application environments"
app.Commands = []cli.Command{
{
Name: "init",
Usage: "create a gum application",
Category: "maintenance",
Action: cmds.MaintenanceInit,
},
{
Name: "clean",
Usage: "clean out all gum setup for this repository (leaves configurations)",
Category: "maintenance",
Action: cmds.MaintenanceClean,
},
{
Name: "status",
Usage: "status of the gum application",
Category: "operations",
Action: cmds.OperationStatus,
},
{
Name: "up",
Usage: "starts the gum application",
Category: "operations",
Action: cmds.OperationUp,
},
{
Name: "restart",
Usage: "restarts the gum application",
Category: "operations",
Action: cmds.OperationRestart,
},
{
Name: "down",
Usage: "brings the gum application down",
Category: "operations",
Action: cmds.OperationDown,
},
{
Name: "logs",
Usage: "show the logs of the gum application",
Category: "operations",
Action: cmds.OperationLogs,
},
}
app.Run(os.Args)
}