INNER CODE UNIT · Go

addCommandWithGroup

easegress-io/easegress · cmd/client/main.go:68

	addCommandWithGroup := func(group *cobra.Group, cmd ...*cobra.Command) {
		for _, c := range cmd {
			c.GroupID = group.ID
		}
		rootCmd.AddCommand(cmd...)
	}

	addCommandWithGroup(
		basicGroup,
		commandv2.CreateCmd(),
		commandv2.DeleteCmd(),
		commandv2.GetCmd(),
		commandv2.DescribeCmd(),
		commandv2.ApplyCmd(),
		commandv2.EditCmd(),
	)

	addCommandWithGroup(

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…