Documentation ¶
Index ¶
- Constants
- Variables
- func AddFormValue(form *url.Values, key, v string)
- func AddFormValues(form *url.Values, key string, values []string)
- func CreateTreeSelect(message, name string, tree *TreeSelect, data *BootForm) *survey.Question
- func CreateValueInput(message, name string, value *Value) *survey.Question
- func CreateValueSelect(message, name string, options *Options) *survey.Question
- type BootForm
- type BootModel
- type Option
- type Options
- type TreeGroup
- type TreeSelect
- type Value
Constants ¶
View Source
const ( OptionGroupID = "group" OptionArtifactID = "artifact" OptionLanguage = "language" OptionJavaVersion = "java-version" OptionBootVersion = "boot-version" OptionPackaging = "packaging" OptionDependency = "dep" OptionDependencyKind = "kind" OptionType = "type" )
Variables ¶
View Source
var DefaultDependencyKinds = []string{"Core", "Web", "Template Engines", "SQL", "I/O", "Ops", "Spring Cloud GCP", "Azure", "Cloud Contract", "Cloud AWS", "Cloud Messaging", "Cloud Tracing"}
Functions ¶
func AddFormValue ¶
func CreateTreeSelect ¶ added in v0.2.23
func CreateTreeSelect(message, name string, tree *TreeSelect, data *BootForm) *survey.Question
Types ¶
type BootForm ¶ added in v0.2.23
type BootForm struct { Packaging string Language string JavaVersion string BootVersion string GroupID string ArtifactID string Version string Name string PackageName string Dependencies []string DependencyKinds []string Type string }
func (*BootForm) AddFormValues ¶ added in v0.2.23
type BootModel ¶ added in v0.2.23
type BootModel struct { Packaging Options Language Options JavaVersion Options BootVersion Options Type Options GroupID Value ArtifactID Value Version Value Name Value Description Value PackageName Value Dependencies TreeSelect }
func LoadSpringBoot ¶
func (*BootModel) CreateSurvey ¶ added in v0.2.23
func (*BootModel) ValidateInput ¶ added in v0.2.23
func (*BootModel) ValidateTreeInput ¶ added in v0.2.23
func (model *BootModel) ValidateTreeInput(name string, o *TreeSelect, values []string) error
type Options ¶ added in v0.2.23
func (*Options) StringArray ¶ added in v0.2.23
type TreeSelect ¶ added in v0.2.23
func (*TreeSelect) StringArray ¶ added in v0.2.23
func (options *TreeSelect) StringArray() []string
Click to show internal directories.
Click to hide internal directories.