setup

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContextName focusable = iota
	Port
	User
	PrivateKeyFile
	KnownHostsFile
	GcloudProject
	GcloudRegion
	GcloudCluster
	GcloudConfig
	GcloudName
	Submit
)

Variables

View Source
var (
	Indigo    = lipgloss.Color("63")
	HotPink   = lipgloss.Color("205")
	DarkGray  = lipgloss.Color("240")
	LightGray = lipgloss.Color("244")
	Green     = lipgloss.Color("42")
)

Functions

func Run

func Run(cfg *types.Config, context string) error

func SaveConfig

func SaveConfig(m Model) error

Types

type Input

type Input struct {
	textinput.Model
	Label string
	Style lipgloss.Style
}

func (Input) View

func (i Input) View() string

type Model

type Model struct {
	Inputs           []Input
	Focused          focusable
	Aborted          bool
	StatusMessage    string
	Config           *types.Config
	Styles           *Styles
	Help             string
	Fp               filepicker.Model
	FilePickerActive bool
	FilePickerField  focusable
	Width            int
	Height           int
}

func InitialModel

func InitialModel(cfg *types.Config) Model

func (Model) Init

func (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

type Styles

type Styles struct {
	Border         lipgloss.Style
	Label          lipgloss.Style
	Title          lipgloss.Style
	Help           lipgloss.Style
	Err            lipgloss.Style
	ErrText        lipgloss.Style
	Focused        lipgloss.Style
	Blurred        lipgloss.Style
	NoStyle        lipgloss.Style
	Button         lipgloss.Style
	InputFocused   lipgloss.Style
	InputUnfocused lipgloss.Style
}

func DefaultStyles

func DefaultStyles() *Styles

Jump to

Keyboard shortcuts

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