-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.go
More file actions
40 lines (36 loc) · 767 Bytes
/
Copy pathmain.go
File metadata and controls
40 lines (36 loc) · 767 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
39
40
package main
import (
"github.com/Pocket/ops-cli/internal/commands"
"gopkg.in/urfave/cli.v1"
"log"
"os"
"time"
)
func main() {
var app = cli.NewApp()
addInfo(app)
addCommands(app)
err := app.Run(os.Args)
if err != nil {
log.Fatal(err)
}
}
func addInfo(app *cli.App) {
app.Name = "Pocket DevOps CLI"
app.Usage = "An tool for all of Pockets DevOps Commands"
app.Version = "0.0.1"
app.Compiled = time.Now()
app.Copyright = "(c) 2019 Read It Later, Inc."
}
func addCommands(app *cli.App) {
app.Commands = []cli.Command{
commands.FeatureCleanup(),
commands.FeatureDeploy(),
commands.FeatureDeployNotify(),
commands.GithubDeployNotify(),
commands.StackExists(),
commands.CreateStack(),
commands.EcsDeploy(),
commands.UpToDate(),
}
}