wizard

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AskConfirm added in v0.2.0

func AskConfirm(title, description string, result *bool) error

func DiscoverWorkflows

func DiscoverWorkflows(workflowDir string) ([]string, error)

func GetErrorStyle added in v0.2.0

func GetErrorStyle() lipgloss.Style

func GetInfoStyle added in v0.2.0

func GetInfoStyle() lipgloss.Style

func GetWarnStyle added in v0.2.0

func GetWarnStyle() lipgloss.Style

func IsTTY added in v0.2.0

func IsTTY() bool

func RunWithSpinner added in v0.2.0

func RunWithSpinner(ctx context.Context, message string, fn func() (any, error)) (any, error)

Types

type GroupBuilder

type GroupBuilder struct {
	ID          string
	Name        string
	Description string
	Workflows   []string
}

type Wizard

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

func New

func New(workflows []string, configPath string) *Wizard

func (*Wizard) GetConfigType added in v0.3.0

func (w *Wizard) GetConfigType() string

GetConfigType returns the config type chosen by the user

func (*Wizard) Run

func (w *Wizard) Run() (*config.Config, error)

func (*Wizard) SetRepository added in v0.2.0

func (w *Wizard) SetRepository(repo string)

Jump to

Keyboard shortcuts

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