tui

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InteractiveForm

type InteractiveForm struct {
	Inputs []InteractiveInput `yaml:"inputs"`
}

type InteractiveInput

type InteractiveInput struct {
	Placeholder string `yaml:"placeholder"`
	Label       string `yaml:"label"`
	RegExp      string `yaml:"regexp,omitempty"`
	MinLength   int    `yaml:"minLength,omitempty"`
	MaxLength   int    `yaml:"maxLength,omitempty"`
	Default     string `yaml:"default,omitempty"`
	Help        string `yaml:"help,omitempty"`
	Value       string
}

type Model

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

func NewModelFromInteractiveForm

func NewModelFromInteractiveForm(iForm InteractiveForm, header string) *Model

func (*Model) Execute

func (m *Model) Execute() error

func (*Model) GetVariablesForInteractiveForm

func (m *Model) GetVariablesForInteractiveForm(iForm InteractiveForm) map[string]string

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

type SkaInteractiveService

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

func NewSkaInteractiveService

func NewSkaInteractiveService(formTitle string, inputs []configuration.UpstreamConfigInput) *SkaInteractiveService

func (*SkaInteractiveService) Run

func (s *SkaInteractiveService) Run() error

func (*SkaInteractiveService) SetDefaults

func (s *SkaInteractiveService) SetDefaults(variables map[string]string)

func (*SkaInteractiveService) ShouldRun

func (s *SkaInteractiveService) ShouldRun() bool

func (*SkaInteractiveService) Variables

func (s *SkaInteractiveService) Variables() map[string]string

type Variables

type Variables map[string]string

Jump to

Keyboard shortcuts

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