Documentation ¶
Index ¶
- func Confirm(label string) bool
- func ForMaintainer() (*v1beta1.Maintainer, error)
- func ForOperator(fs afero.Fs, pathDefault string, overwrite bool, ...) (*packages.OperatorFile, string, error)
- func ForParameter(planNames []string, paramNameList []string) (*packages.Parameter, error)
- func ForPlan(planNames []string, tasks []v1beta1.Task, fs afero.Fs, path string, ...) (string, *v1beta1.Plan, error)
- func ForTask(name string) (*v1beta1.Task, error)
- func ForTaskName(existingTasks []v1beta1.Task) (string, error)
- func WithDefault(label string, defaultStr string) (string, error)
- func WithOptions(label string, options []string, addLabel string) (string, error)
- func WithValidator(label string, defaultStr string, validate promptui.ValidateFunc) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Confirm ¶
Confirm prompts for Y/N question with label and returns true or false for confirmation
func ForMaintainer ¶
func ForMaintainer() (*v1beta1.Maintainer, error)
ForMaintainer prompts to gather information to add an operator maintainer
func ForOperator ¶
func ForOperator(fs afero.Fs, pathDefault string, overwrite bool, operatorDefault packages.OperatorFile) (*packages.OperatorFile, string, error)
ForOperator prompts to gather details for a new operator
func ForParameter ¶
ForParameter prompts to gather information to add an operator parameter
func WithDefault ¶
WithDefault prompts for a response to a label
func WithOptions ¶
WithOptions prompts for option selection, first element in slice is default
func WithValidator ¶
WithValidator prompts for a response to a label with a validation function
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.