run

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RunCmd = &cobra.Command{
	Use:   "run",
	Short: "Run a pipeline",
	Run: func(cmd *cobra.Command, args []string) {

		if len(varsSlice) > 0 {
			for _, v := range varsSlice {
				splitVar := strings.Split(v, ":")
				shared.Vars[splitVar[0]] = splitVar[1]
			}
		}
		if shared.Pipeline == "" && shared.Module == "" {
			choice := handleTea()
			if choice == "pipeline" {
				execPipeline.Execute()
				os.Exit(0)
			} else {
				execModule.Execute()
				os.Exit(0)
			}
		}
		if shared.Module != "" {
			execModule.Execute()
			os.Exit(0)
		}

		if shared.Pipeline != "" {
			execPipeline.Execute()
			os.Exit(0)
		}
	},
}

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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