prompt

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 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 FeaturePrompt

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

	gen.Feature
}

type HomebrewConfig

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

func NewHomebrewConfig

func NewHomebrewConfig(conf *config.Config) *HomebrewConfig

func (*HomebrewConfig) GetName

func (h *HomebrewConfig) GetName() string

func (*HomebrewConfig) GetPath

func (h *HomebrewConfig) GetPath() string

func (*HomebrewConfig) HasTemplateDir

func (h *HomebrewConfig) HasTemplateDir() bool

func (*HomebrewConfig) IsDefaultSelected

func (h *HomebrewConfig) IsDefaultSelected() bool

func (*HomebrewConfig) RunPrompt

func (h *HomebrewConfig) RunPrompt() error

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

func (*HomebrewConfig) UpdateTemplateOptions

func (h *HomebrewConfig) 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