-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.go
More file actions
37 lines (31 loc) · 802 Bytes
/
main.go
File metadata and controls
37 lines (31 loc) · 802 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
package main
import (
"os"
"github.com/atsushi-ishibashi/influencer/cmd"
"github.com/urfave/cli"
)
func main() {
app := cli.NewApp()
app.Flags = []cli.Flag{
cli.StringFlag{
Name: "awscredentialsfile",
Usage: "awsのcredentialsファイル(デフォルトは~/.aws/credential)",
},
cli.StringFlag{
Name: "awsconf",
Usage: "awscredentialsfileから環境変数をセット(プロセスの間のみ)",
},
cli.StringFlag{
Name: "awsregion",
Usage: "AWS_DEFAULT_REGIONにセット(プロセスの間のみ)",
Value: "ap-northeast-1",
},
}
planCommand := cmd.NewPlanCommand(os.Stdout, os.Stderr)
syncDeployCommand := cmd.NewSyncDeployCommand(os.Stdout, os.Stderr)
app.Commands = []cli.Command{
planCommand,
syncDeployCommand,
}
app.Run(os.Args)
}