Documentation ¶
Index ¶
Constants ¶
const (
// BootstrapRecommendedCommandName the recommended command name
BootstrapRecommendedCommandName = "bootstrap"
)
const (
// BuildRecommendedCommandName the recommended command name
BuildRecommendedCommandName = "build"
)
Variables ¶
This section is empty.
Functions ¶
func MakeRootCmd ¶ added in v0.0.10
MakeRootCmd creates and returns the root command for the kam commands.
func NewCmdBootstrap ¶
NewCmdBootstrap creates the project init command.
func NewCmdBuild ¶
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 ¶
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) 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.