Versions in this module Expand all Collapse all v0 v0.1.1 Aug 8, 2023 v0.1.0 Aug 8, 2023 Changes in this version + const BranchPrompt + const BranchSelectPrompt + const CallPrompt + const ClonePrompt + const CodeLanguagePrompt + const CommitMessagePrompt + const DescriptionPrompt + const Domains + const DoubleStringNotFound + const EmbedTokenPrompt + const EntryPointPrompt + const FalseSelect + const FalseSelectL + const FieldNotDefinedInConfig + const GenerateRepoPrompt + const InvalidSize + const LocalPrompt + const MemoryPrompt + const MustBeABooleanValue + const NetworkPrompts + const NoDomainGeneratePrompt + const NoServiceFromFlag + const PathsPrompt + const PrivatePrompt + const RegexPrompt + const RepositoryNamePrompt + const RepositorySelectPrompt + const Required + const SelectPromptNoOptions + const SelectTemplatePrompt + const SizePrompt + const SourcePrompt + const StringIsNotAValidSelection + const StringIsRequired + const TTLPrompt + const TagLessThanThreeCharacters + const TagsPrompt + const TimeoutPrompt + const TrueSelect + const TrueSelectL + const UnitTypePrompt + const UseTemplatePrompt + var NoServicesDefined = errors.New("no services defined in project config") + var NoValidDomains = errors.New("no valid domains") + var PromptEnabled = true + var SelectionNone = "(none)" + func Ask(qs []*survey.Question, response interface{}, opts ...survey.AskOpt) + func AskOne(p survey.Prompt, response interface{}, opts ...survey.AskOpt) + func ConfirmPrompt(label string) bool + func GetOrAskForAStringValue(c *cli.Context, field string, label string, prev ...string) string + func GetOrAskForBool(c *cli.Context, field string, label string, prev ...bool) bool + func GetOrAskForBoolDefaultTrue(c *cli.Context, field string, label string, prev ...bool) bool + func GetOrAskForEnvironmentVars(c *cli.Context, prev ...map[string]string) map[string]string + func GetOrAskForSelection(c *cli.Context, field string, label string, items []string, prev ...string) string + func GetOrRequireAString(c *cli.Context, field, prompt string, validator validateStringMethod, ...) string + func MultiSelect(c *cli.Context, cnf MultiSelectConfig) (ret []string) + func PanicIfPromptNotEnabled(prompt string) + func RenderTable(data [][]string) + func RenderTableWithMerge(data [][]string) + func RequiredString(c *cli.Context, prompt string, f stringPromptMethod, prev ...string) string + func RequiredStringWithValidator(c *cli.Context, prompt string, f stringPromptMethod, ...) (ret string) + func SelectInterface(names []string, prompt, _default string) (selectedInterface string, err error) + func SelectInterfaceField(ctx *cli.Context, options []string, field string, prompt string, ...) (selected string, err error) + func ValidateOk(err error) bool + type MultiSelectConfig struct + Field string + Options []string + Previous []string + Prompt string + Required bool