forked from 99designs/aws-vault
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.go
29 lines (23 loc) · 720 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/v7/cli"
"github.com/alecthomas/kingpin/v2"
)
// 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.ConfigureRemoveCommand(app, a)
cli.ConfigureListCommand(app, a)
cli.ConfigureRotateCommand(app, a)
cli.ConfigureExecCommand(app, a)
cli.ConfigureExportCommand(app, a)
cli.ConfigureClearCommand(app, a)
cli.ConfigureLoginCommand(app, a)
cli.ConfigureProxyCommand(app)
kingpin.MustParse(app.Parse(os.Args[1:]))
}