forked from 99designs/aws-vault
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.go
29 lines (23 loc) · 722 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
package main
import (
"os"
"github.com/99designs/aws-vault/v6/cli"
"github.com/alecthomas/kingpin"
_ "github.com/mtibben/androiddnsfix"
)
// Version is provided at compile time
var Version = "dev"
func main() {
app := kingpin.New("aws-vault", "A vault for securely storing and accessing AWS credentials in development environments.")
app.Version(Version)
a := cli.ConfigureGlobals(app)
cli.ConfigureAddCommand(app, a)
cli.ConfigureListCommand(app, a)
cli.ConfigureRotateCommand(app, a)
cli.ConfigureExecCommand(app, a)
cli.ConfigureClearCommand(app, a)
cli.ConfigureRemoveCommand(app, a)
cli.ConfigureLoginCommand(app, a)
cli.ConfigureProxyCommand(app, a)
kingpin.MustParse(app.Parse(os.Args[1:]))
}