prompt

package
v0.0.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DocsFeature added in v0.0.13

type DocsFeature struct {
	// contains filtered or unexported fields
}

func NewDocsFeature added in v0.0.13

func NewDocsFeature(conf *config.Config) *DocsFeature

func (*DocsFeature) GetName added in v0.0.13

func (d *DocsFeature) GetName() string

func (*DocsFeature) GetPath added in v0.0.13

func (d *DocsFeature) GetPath() string

func (*DocsFeature) HasTemplateDir added in v0.0.13

func (d *DocsFeature) HasTemplateDir() bool

func (*DocsFeature) IsDefaultSelected added in v0.0.13

func (d *DocsFeature) IsDefaultSelected() bool

func (*DocsFeature) IsEnabled added in v0.0.13

func (d *DocsFeature) IsEnabled() bool

func (*DocsFeature) RunPrompt added in v0.0.13

func (d *DocsFeature) RunPrompt() error

func (*DocsFeature) UpdateTemplateOptions added in v0.0.13

func (d *DocsFeature) UpdateTemplateOptions(options *gen.TemplateOptions) error

type FeaturePrompt

type FeaturePrompt interface {
	RunPrompt() error
	IsDefaultSelected() bool

	gen.Feature
}

type HomebrewFeature added in v0.0.13

type HomebrewFeature struct {
	// contains filtered or unexported fields
}

func NewHomebrewFeature added in v0.0.13

func NewHomebrewFeature(conf *config.Config) *HomebrewFeature

func (*HomebrewFeature) GetName added in v0.0.13

func (h *HomebrewFeature) GetName() string

func (*HomebrewFeature) GetPath added in v0.0.13

func (h *HomebrewFeature) GetPath() string

func (*HomebrewFeature) HasTemplateDir added in v0.0.13

func (h *HomebrewFeature) HasTemplateDir() bool

func (*HomebrewFeature) IsDefaultSelected added in v0.0.13

func (h *HomebrewFeature) IsDefaultSelected() bool

func (*HomebrewFeature) RunPrompt added in v0.0.13

func (h *HomebrewFeature) RunPrompt() error

RunPrompt runs the homebrew config prompt and updates the config based on the user input

func (*HomebrewFeature) UpdateTemplateOptions added in v0.0.13

func (h *HomebrewFeature) UpdateTemplateOptions(options *gen.TemplateOptions) error

type UserPrompt

type UserPrompt struct {
	AvailableFeatures map[string]FeaturePrompt
	// contains filtered or unexported fields
}

func NewUserPrompt

func NewUserPrompt(conf *config.Config) *UserPrompt

func (*UserPrompt) Run

func (p *UserPrompt) Run() (gen.TemplateOptions, error)

Jump to

Keyboard shortcuts

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