pipe

package
v0.4.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GenCmd = cli.Command{
	Name:        "pipe",
	Description: "Use this command to generate a pipeline",
	Usage:       "Generate a vela pipeline in a directory",
	Action:      gen,
	Flags: []cli.Flag{

		&cli.StringFlag{
			Name:    "type",
			Aliases: []string{"t"},
			Usage:   "Type of generic pipeline to be generated. (go|node|java)",
		},
		&cli.StringFlag{
			Name:    "path",
			Aliases: []string{"p"},
			Usage:   "Filename to use to create the secret or secrets",
		},
		&cli.BoolFlag{
			Name:    "stages",
			Aliases: []string{"s"},
			Usage:   "Define if the pipeline should be generated with stages",
		},
	},
	CustomHelpTemplate: fmt.Sprintf(`%s
EXAMPLES:
 1. Generate a vela pipeline in your current directory."
		$ {{.HelpName}}
 2. Generate a vela pipeline in a current directory."
		$ {{.HelpName}} -path /path/to/dir/
 3. Generate a node vela pipeline in current directory."
		$ {{.HelpName}} -type node
 4. Generate a java vela pipeline in current directory."
		$ {{.HelpName}} -type java
 5. Generate a go vela pipeline in a current directory."
		$ {{.HelpName}} -type go
 6. Generate a vela pipeline with stages in current directory."
		$ {{.HelpName}} -stages
`, cli.CommandHelpTemplate),
}

GenCmd defines the command for generating a pipeline.

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