Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Exchange = &cobra.Command{ Use: "exchange", Short: "generate echange crd for oam trait & workload.", Long: "generate echange crd for oam trait & workload.", DisableFlagParsing: true, Run: func(cmd *cobra.Command, args []string) { ctx, err := ccmd.Getwd() if err != nil { logger.Error(err, "cmd.Getwd") } g, err := ctx.GetGenerator() if err != nil { logger.Error(err, "ctx.GetGenerator") os.Exit(1) } g.AttachTemplate(typeTemplate, types.TemplateType_Type) args = append(args, "--controller=false") if err := g.Execute(args); err != nil { logger.Error(err, "g.Execute") os.Exit(1) } if err := ctx.UpdateProject(g, types.ResourceType_Exchange); err != nil { logger.Error(err, "ctx.UpdateProject") os.Exit(1) } }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.