tui

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package tui provides terminal user interface components using Bubbletea

Index

Constants

This section is empty.

Variables

View Source
var ErrWizardCancelled = fmt.Errorf("cancelled")

ErrWizardCancelled is returned when the user cancels the wizard

Functions

func NewWizard added in v1.1.0

func NewWizard(branches []string, currentBranch string, defaultDir string) wizardModel

NewWizard creates a new wizard model

Types

type WizardOptions added in v1.1.0

type WizardOptions struct {
	Branch     string
	BaseBranch string
	CopyEnv    bool
	RunSetup   bool
	Push       bool
	CreatePR   bool
	CustomDest string
}

WizardOptions holds all the options that can be configured

func RunWizard added in v1.1.0

func RunWizard(branches []string, currentBranch string, defaultDir string) (WizardOptions, error)

RunWizard runs the interactive wizard and returns the configured options

Jump to

Keyboard shortcuts

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