Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "yaml-to-bundle", Short: "Transforms a YAML file into a bundle", RunE: func(cmd *cobra.Command, args []string) error { if strings.TrimSpace(string(output)) == "" && dryRun.IsUnset() { return errors.New("required flag(s) \"output\" not set") } err := v1.APIProxyModelYAML2Bundle(string(input), string(output), bool(validate), dryRun.Value) if errs, ok := err.(v1.ValidationErrors); ok { for i := 0; i < len(errs.Errors) && i < 10; i++ { _, _ = fmt.Fprintf(os.Stderr, "Error: %s\n", errs.Errors[i].Error()) } os.Exit(1) } return err }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.