MCPcopy
hub / github.com/kubevela/kubevela / GetGroup

Function GetGroup

pkg/cmd/utils.go:78–82  ·  view source on GitHub ↗

GetGroup get group from command flags

(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

76
77// GetGroup get group from command flags
78func GetGroup(cmd *cobra.Command) string {
79 group, err := cmd.Flags().GetString(flagGroup)
80 cmdutil.CheckErr(err)
81 return group
82}
83
84// GetCluster get cluster from command flags
85func GetCluster(cmd *cobra.Command) string {

Callers

nothing calls this directly

Calls 1

FlagsMethod · 0.80

Tested by

no test coverage detected