create

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

Documentation

Index

Constants

View Source
const (
	FlagGroup        = "group"
	FlagName         = "name"
	FlagDescription  = "description"
	FlagLifecycle    = "lifecycle"
	FlagConfigAsCode = "process-vcs"
)

Variables

This section is empty.

Functions

func NewCmdCreate

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

func PromptForConfigAsCode

func PromptForConfigAsCode(opts *CreateOptions) (cmd.Dependable, error)

func PromptMissing

func PromptMissing(opts *CreateOptions) ([]cmd.Dependable, error)

Types

type ConvertProjectToConfigAsCodeCallback added in v0.7.0

type ConvertProjectToConfigAsCodeCallback func() (cmd.Dependable, error)

type CreateFlags

type CreateFlags struct {
	Group        *flag.Flag[string]
	Name         *flag.Flag[string]
	Description  *flag.Flag[string]
	Lifecycle    *flag.Flag[string]
	ConfigAsCode *flag.Flag[bool]

	ProjectConvertFlags *convert.ConvertFlags
}

func NewCreateFlags

func NewCreateFlags() *CreateFlags

type CreateOptions

type CreateOptions struct {
	*CreateFlags
	*cmd.Dependencies
	*projectConvert.ConvertOptions
	GetAllGroupsCallback       shared.GetAllGroupsCallback
	CreateProjectGroupCallback shared.CreateProjectGroupCallback
	ConvertProjectCallback     ConvertProjectToConfigAsCodeCallback
}

func NewCreateOptions

func NewCreateOptions(createFlags *CreateFlags, dependencies *cmd.Dependencies) *CreateOptions

func (*CreateOptions) Commit

func (co *CreateOptions) Commit() error

func (*CreateOptions) GenerateAutomationCmd

func (co *CreateOptions) GenerateAutomationCmd()

type GetAllGroupsCallback

type GetAllGroupsCallback func() ([]*projectgroups.ProjectGroup, error)

Jump to

Keyboard shortcuts

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