tui

package
v3.88.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AbortError error = errors.New("command aborted")

Functions

func SetKeyTypeCmd

func SetKeyTypeCmd(keyType string) tea.Cmd

Types

type FormPage

type FormPage struct {
	Common  *common.Common
	KeyType string
	// contains filtered or unexported fields
}

func NewFormPage

func NewFormPage(c *common.Common, keyType string) FormPage

func (FormPage) Init

func (FormPage) Init() tea.Cmd

func (FormPage) PrevPage

func (ui FormPage) PrevPage() (tea.Model, tea.Cmd)

func (FormPage) Update

func (ui FormPage) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (FormPage) View

func (ui FormPage) View() string

type KeyTypeItem

type KeyTypeItem string

func (KeyTypeItem) Description

func (i KeyTypeItem) Description() string

func (KeyTypeItem) FilterValue

func (i KeyTypeItem) FilterValue() string

func (KeyTypeItem) ID

func (i KeyTypeItem) ID() string

func (KeyTypeItem) Title

func (i KeyTypeItem) Title() string

type KeyTypePage

type KeyTypePage struct {
	Common *common.Common
	// contains filtered or unexported fields
}

func NewKeyTypePage

func NewKeyTypePage(c *common.Common) KeyTypePage

func (KeyTypePage) Init

func (ui KeyTypePage) Init() tea.Cmd

func (KeyTypePage) NextPage

func (ui KeyTypePage) NextPage(keyType string) (tea.Model, tea.Cmd)

func (KeyTypePage) Update

func (ui KeyTypePage) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (KeyTypePage) View

func (ui KeyTypePage) View() string

type SecretInfo

type SecretInfo struct {
	Parts map[string]string
	Cfg   *config.Config
}

func Run

func Run(keyType string) (string, *SecretInfo, error)

type SetKeyTypeMsg

type SetKeyTypeMsg string

type TUI

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

TUI is the main TUI model.

func (*TUI) Init

func (ui *TUI) Init() tea.Cmd

func (*TUI) SetSize

func (ui *TUI) SetSize(msg tea.WindowSizeMsg)

func (*TUI) Update

func (ui *TUI) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*TUI) View

func (ui *TUI) View() string

Jump to

Keyboard shortcuts

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