-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
33 lines (27 loc) · 660 Bytes
/
Copy pathmain.go
File metadata and controls
33 lines (27 loc) · 660 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
package main
import (
"cloudctl/provider/aws/cli"
"cloudctl/provider/aws/cli/globals"
"github.com/alecthomas/kong"
)
type CLI struct {
globals.CLIFlag
AWS cli.AWSCmd `name:"aws" cmd:"" help:"AWS cloud provider commands"`
}
func main() {
cli := CLI{
CLIFlag: globals.CLIFlag{},
}
ctx := kong.Parse(&cli,
kong.Name("cloudctl"),
kong.Description("cloudctl is a GO library that interacts with cloud providers and displays output in a human-readable fashion."),
kong.UsageOnError(),
kong.ConfigureHelp(kong.HelpOptions{
Compact: true,
}),
kong.Vars{
"version": "0.0.1",
})
err := ctx.Run(&cli.CLIFlag)
ctx.FatalIfErrorf(err)
}