Documentation ¶
Index ¶
- Constants
- func NewCmdCreate(f factory.Factory) *cobra.Command
- func PromptForConfigAsCode(opts *CreateOptions) (cmd.Dependable, error)
- func PromptMissing(opts *CreateOptions) ([]cmd.Dependable, error)
- type ConvertProjectToConfigAsCodeCallback
- type CreateFlags
- type CreateOptions
- type GetAllGroupsCallback
Constants ¶
View Source
const ( FlagGroup = "group" FlagName = "name" FlagDescription = "description" FlagLifecycle = "lifecycle" FlagConfigAsCode = "process-vcs" )
Variables ¶
This section is empty.
Functions ¶
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)
Click to show internal directories.
Click to hide internal directories.