setup

package
v0.0.13 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "setup",
	Short: "Setup template configuration (interactive mode)",
	Long: `Setup and configure the current template with an interactive setup wizard.

This interactive command:
- Helps with setting up the template configuration

This command launches an interactive terminal interface to guide you through
the template configuration process step by step.`,
	RunE: func(_ *cobra.Command, _ []string) error {
		return RunTea()
	},
}

Functions

func RunTea

func RunTea() error

RunTea starts the template setup TUI

Types

type LoginModel

type LoginModel struct {
	APIKeyChan chan string

	GetHostCmd tea.Cmd
	SuccessCmd tea.Cmd
	// contains filtered or unexported fields
}

func (LoginModel) Init

func (lm LoginModel) Init() tea.Cmd

func (LoginModel) Update

func (lm LoginModel) Update(msg tea.Msg) (LoginModel, tea.Cmd)

func (LoginModel) View

func (lm LoginModel) View() string

type Model

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

func NewModel

func NewModel() Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Model) View

func (m Model) View() string

Jump to

Keyboard shortcuts

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