Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "yaml-to-apiproxy", Short: "Transforms a YAML file into an apiproxy", RunE: func(cmd *cobra.Command, args []string) error { if strings.TrimSpace(string(output)) == "" && dryRun.IsUnset() { return errors.New("required flag(s) \"output\" not set") } model, err := v1.NewAPIProxyModel(string(input)) if err != nil { return err } err = render.CreateBundle(model, string(output), bool(validate), dryRun.Value) return err }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.