-
Notifications
You must be signed in to change notification settings - Fork 0
/
evk.go
43 lines (39 loc) · 793 Bytes
/
evk.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
package main
import (
"github.com/codegangsta/cli"
"os"
)
func main() {
app := cli.NewApp()
app.Name = "evk"
app.Usage = "Secret Environment Variables manager with OS X Keychain backend"
app.EnableBashCompletion = true
app.Version = "0.0.1"
app.Commands = []cli.Command{
{
Name: "add",
Usage: "Add a new environment variable to bucket (main if not specified).",
Flags: []cli.Flag{
cli.StringFlag{
Name: "bucket, b",
Value: "main",
Usage: "specified bucket",
},
},
Action: RunAdd,
},
{
Name: "get",
Usage: "Get environments from a specific bucket.",
Flags: []cli.Flag{
cli.StringFlag{
Name: "bucket, b",
Value: "main",
Usage: "specified bucket",
},
},
Action: RunGet,
},
}
app.Run(os.Args)
}