cmd

package
v0.0.51 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BootstrapRecommendedCommandName the recommended command name
	BootstrapRecommendedCommandName = "bootstrap"
)
View Source
const (
	// BuildRecommendedCommandName the recommended command name
	BuildRecommendedCommandName = "build"
)

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute is the main entry point into this component.

func MakeRootCmd added in v0.0.10

func MakeRootCmd() *cobra.Command

MakeRootCmd creates and returns the root command for the kam commands.

func NewCmdBootstrap

func NewCmdBootstrap(name, fullName string) *cobra.Command

NewCmdBootstrap creates the project init command.

func NewCmdBuild

func NewCmdBuild(name, fullName string) *cobra.Command

NewCmdBuild creates the pipelines build command.

Types

type BootstrapParameters

type BootstrapParameters struct {
	*pipelines.BootstrapOptions
	Interactive bool
}

BootstrapParameters encapsulates the parameters for the kam pipelines init command.

func NewBootstrapParameters

func NewBootstrapParameters() *BootstrapParameters

NewBootstrapParameters bootsraps a Bootstrap Parameters instance.

func (*BootstrapParameters) Complete

func (io *BootstrapParameters) Complete(name string, cmd *cobra.Command, args []string) error

Complete completes BootstrapParameters after they've been created. If the prefix provided doesn't have a "-" then one is added, this makes the generated environment names nicer to read.

func (*BootstrapParameters) Run

func (io *BootstrapParameters) Run() error

Run runs the project Bootstrap command.

func (*BootstrapParameters) Validate

func (io *BootstrapParameters) Validate() error

Validate validates the parameters of the BootstrapParameters.

type BuildParameters

type BuildParameters struct {
	// contains filtered or unexported fields
}

BuildParameters encapsulates the parameters for the kam pipelines build command.

func NewBuildParameters

func NewBuildParameters() *BuildParameters

NewBuildParameters bootstraps a BuildParameters instance.

func (*BuildParameters) Complete

func (io *BuildParameters) Complete(name string, cmd *cobra.Command, args []string) error

Complete completes BuildParameters after they've been created.

func (*BuildParameters) Run

func (io *BuildParameters) Run() error

Run runs the project bootstrap command.

func (*BuildParameters) Validate

func (io *BuildParameters) Validate() error

Validate validates the parameters of the BuildParameters.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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