shared

package
v1.7.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	FlagEnvironmentScope = "environment-scope"
	FlagTargetScope      = "target-scope"
	FlagStepScope        = "step-scope"
	FlagRoleScope        = "role-scope"
	FlagChannelScope     = "channel-scope"
	FlagTagScope         = "tag-scope"
	FlagProcessScope     = "process-scope"
)

Variables

This section is empty.

Functions

func ConvertProcessScopesToReference

func ConvertProcessScopesToReference(processes []*resources.ProcessReferenceDataItem) []*resources.ReferenceDataItem

func PromptScope

func PromptScope(ask question.Asker, scopeDescription string, items []*resources.ReferenceDataItem, displaySelector func(i *resources.ReferenceDataItem) string) ([]string, error)

func PromptScopes

func PromptScopes(asker question.Asker, projectVariables *variables.VariableSet, flags *ScopeFlags, isPrompted bool) error

func RegisterScopeFlags

func RegisterScopeFlags(cmd *cobra.Command, scopeFlags *ScopeFlags)

func ToScopeValues

func ToScopeValues(variable *variables.Variable, variableScopeValues *variables.VariableScopeValues) (*variables.VariableScopeValues, error)

func ToVariableScope

func ToVariableScope(projectVariables *variables.VariableSet, opts *ScopeFlags, project *projects.Project) (*variables.VariableScope, error)

Types

type ScopeFlags

type ScopeFlags struct {
	EnvironmentsScopes *flag.Flag[[]string]
	ChannelScopes      *flag.Flag[[]string]
	TargetScopes       *flag.Flag[[]string]
	StepScopes         *flag.Flag[[]string]
	RoleScopes         *flag.Flag[[]string]
	TagScopes          *flag.Flag[[]string]
	ProcessScopes      *flag.Flag[[]string]
}

func NewScopeFlags

func NewScopeFlags() *ScopeFlags

Jump to

Keyboard shortcuts

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