yaml_to_sharedflow

package
v0.1.0-beta.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "yaml-to-sharedflow",
	Short: "Transforms a YAML file into a sharedflow",
	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.NewSharedFlowBundleModel(string(input))
		if err != nil {
			return err
		}

		return render.CreateBundle(model, string(output), bool(validate), dryRun.Value)
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL