INNER CODE UNIT · Go
main
easegress-io/easegress · cmd/builder/main.go:36
func main() {
rootCmd := &cobra.Command{
Use: "egbuilder",
Short: "A command-line tool designed for building Easegress using custom modules.",
SuggestFor: []string{"egbuilder"},
}
addCommandWithGroup := func(group *cobra.Group, cmd ...*cobra.Command) {
for _, c := range cmd {
c.GroupID = group.ID
}
rootCmd.AddCommand(cmd...)
}
addCommandWithGroup(
basicGroup,
command.InitCmd(),
command.AddCmd(),