-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
get.go
29 lines (23 loc) · 941 Bytes
/
get.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 get
import (
"github.com/spf13/cobra"
"github.com/weaveworks/eksctl/pkg/ctl/cmdutils"
"github.com/weaveworks/eksctl/pkg/printers"
)
type getCmdParams struct {
chunkSize int
output printers.Type
}
// Command will create the `get` commands
func Command(flagGrouping *cmdutils.FlagGrouping) *cobra.Command {
verbCmd := cmdutils.NewVerbCmd("get", "Get resource(s)", "")
cmdutils.AddResourceCmd(flagGrouping, verbCmd, getClusterCmd)
cmdutils.AddResourceCmd(flagGrouping, verbCmd, getNodeGroupCmd)
cmdutils.AddResourceCmd(flagGrouping, verbCmd, getIdentityProvider)
cmdutils.AddResourceCmd(flagGrouping, verbCmd, getIAMServiceAccountCmd)
cmdutils.AddResourceCmd(flagGrouping, verbCmd, getIAMIdentityMappingCmd)
cmdutils.AddResourceCmd(flagGrouping, verbCmd, getLabelsCmd)
cmdutils.AddResourceCmd(flagGrouping, verbCmd, getFargateProfile)
cmdutils.AddResourceCmd(flagGrouping, verbCmd, getAddonCmd)
return verbCmd
}