create

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagProject     = "project"
	FlagName        = "name"
	FlagValue       = "value"
	FlagType        = "type"
	FlagDescription = "description"
	FlagGitRef      = "git-ref"

	FlagPrompt              = "prompted"
	FlagPromptLabel         = "prompt-label"
	FlagPromptDescription   = "prompt-description"
	FlagPromptType          = "prompt-type"
	FlagPromptRequired      = "prompt-required"
	FlagPromptSelectOptions = "prompt-dropdown-option"

	TypeText          = "text"
	TypeSensitive     = "sensitive"
	TypeAwsAccount    = "awsaccount"
	TypeWorkerPool    = "workerpool"
	TypeAzureAccount  = "azureaccount"
	TypeCertificate   = "certificate"
	TypeGoogleAccount = "googleaccount"

	PromptTypeText      = "text"
	PromptTypeMultiText = "multiline-text"
	PromptTypeCheckbox  = "checkbox"
	PromptTypeDropdown  = "dropdown"
)

Variables

This section is empty.

Functions

func CreateRun added in v1.5.0

func CreateRun(opts *CreateOptions) error

func NewCreateCmd

func NewCreateCmd(f factory.Factory) *cobra.Command

func PromptMissing

func PromptMissing(opts *CreateOptions) error

func PromptVersionControl added in v1.5.0

func PromptVersionControl(opts *CreateOptions, project *projects.Project) error

Types

type CreateFlags

type CreateFlags struct {
	Project     *flag.Flag[string]
	Name        *flag.Flag[string]
	Description *flag.Flag[string]
	Value       *flag.Flag[string]
	Type        *flag.Flag[string]
	GitRef      *flag.Flag[string]

	*sharedProjectVariable.ScopeFlags

	IsPrompted          *flag.Flag[bool]
	PromptLabel         *flag.Flag[string]
	PromptDescription   *flag.Flag[string]
	PromptType          *flag.Flag[string]
	PromptRequired      *flag.Flag[bool]
	PromptSelectOptions *flag.Flag[[]string]
}

func NewCreateFlags

func NewCreateFlags() *CreateFlags

Jump to

Keyboard shortcuts

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