wizard

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, steps []Step) error

Run executes the wizard steps in order, skipping completed ones.

Types

type Step

type Step struct {
	Name    string
	Check   func(ctx context.Context) bool // returns true if step is already complete
	Execute func(ctx context.Context) error
}

Step represents a single step in the setup wizard.

func AuthStep

func AuthStep() Step

AuthStep checks if valid credentials exist and runs login if not.

func DomainStep

func DomainStep() Step

DomainStep checks if a valid host is configured and prompts the user if not.

func MCPConfigStep

func MCPConfigStep() Step

MCPConfigStep detects AI tools and generates MCP configuration files.

func RepoStep

func RepoStep() Step

RepoStep detects the current git repository and displays the result.

func SummaryStep

func SummaryStep() Step

SummaryStep reads host/token from config at execution time and displays next steps.

Jump to

Keyboard shortcuts

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