environment

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: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AddEnvRecommendedCommandName the recommended command name
	AddEnvRecommendedCommandName = "add"
)
View Source
const EnvRecommendedCommandName = "environment"

EnvRecommendedCommandName is the recommended environment command name.

Variables

This section is empty.

Functions

func NewCmdAddEnv

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

NewCmdAddEnv creates the project add environment command.

func NewCmdEnv

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

NewCmdEnv create a new environment command

Types

type AddEnvParameters

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

AddEnvParameters encapsulates the parameters for the kam pipelines init command.

func NewAddEnvParameters

func NewAddEnvParameters() *AddEnvParameters

NewAddEnvParameters bootstraps a AddEnvParameters instance.

func (*AddEnvParameters) Complete

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

Complete completes AddEnvParameters 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 (*AddEnvParameters) Run

func (eo *AddEnvParameters) Run() error

Run runs the project bootstrap command.

func (*AddEnvParameters) Validate

func (eo *AddEnvParameters) Validate() error

Validate validates the parameters of the EnvParameters.

Jump to

Keyboard shortcuts

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