tui

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: BSD-3-Clause-Clear Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateViewFormat

func CreateViewFormat(num int) string

func InitAttributeCreateModel

func InitAttributeCreateModel() (tea.Model, tea.Cmd)

func InitAttributeList

func InitAttributeList(id string, sdk handlers.Handler) (tea.Model, tea.Cmd)

func InitLabelList

func InitLabelList(attr *policy.Attribute, sdk handlers.Handler) (tea.Model, tea.Cmd)

func InitRead

func InitRead(title string, items []list.Item) (tea.Model, tea.Cmd)

func StartTea

func StartTea(h handlers.Handler) error

StartTea the entry point for the UI. Initializes the model.

func StyleAttr

func StyleAttr(attr string) string

func ViewList

func ViewList(m list.Model) string

func WindowMsg

func WindowMsg() tea.WindowSizeMsg

Types

type AppMenu

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

func InitAppMenu

func InitAppMenu(h handlers.Handler) (AppMenu, tea.Cmd)

func (AppMenu) Init

func (m AppMenu) Init() tea.Cmd

func (AppMenu) Update

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

func (AppMenu) View

func (m AppMenu) View() string

type AppMenuItem

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

func (AppMenuItem) Description

func (m AppMenuItem) Description() string

func (AppMenuItem) FilterValue

func (m AppMenuItem) FilterValue() string

func (AppMenuItem) Title

func (m AppMenuItem) Title() string

type AttributeCreateModel

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

func (AttributeCreateModel) Init

func (m AttributeCreateModel) Init() tea.Cmd

func (AttributeCreateModel) Update

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

func (AttributeCreateModel) View

func (m AttributeCreateModel) View() string

type AttributeItem

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

func (AttributeItem) Description

func (m AttributeItem) Description() string

func (AttributeItem) FilterValue

func (m AttributeItem) FilterValue() string

func (AttributeItem) Title

func (m AttributeItem) Title() string

type AttributeList

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

func (AttributeList) Init

func (m AttributeList) Init() tea.Cmd

func (AttributeList) Update

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

func (AttributeList) View

func (m AttributeList) View() string

type AttributeSubItem

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

func (AttributeSubItem) Description

func (m AttributeSubItem) Description() string

func (AttributeSubItem) FilterValue

func (m AttributeSubItem) FilterValue() string

func (AttributeSubItem) Title

func (m AttributeSubItem) Title() string

type AttributeView

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

func InitAttributeView

func InitAttributeView(id string, h handlers.Handler) (AttributeView, tea.Cmd)

func (AttributeView) Init

func (m AttributeView) Init() tea.Cmd

func (AttributeView) Update

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

func (AttributeView) View

func (m AttributeView) View() string

type LabelItem

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

func (LabelItem) Description

func (m LabelItem) Description() string

func (LabelItem) FilterValue

func (m LabelItem) FilterValue() string

func (LabelItem) Title

func (m LabelItem) Title() string

type LabelList

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

func (LabelList) Init

func (m LabelList) Init() tea.Cmd

func (LabelList) Update

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

func (LabelList) View

func (m LabelList) View() string

type LabelUpdate

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

func InitLabelUpdate

func InitLabelUpdate(label LabelItem, attr *policy.Attribute, sdk handlers.Handler) LabelUpdate

func (LabelUpdate) Init

func (m LabelUpdate) Init() tea.Cmd

func (LabelUpdate) Update

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

func (LabelUpdate) View

func (m LabelUpdate) View() string

type Read

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

func (Read) Init

func (m Read) Init() tea.Cmd

func (Read) Update

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

func (Read) View

func (m Read) View() string

type Update

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

func InitUpdate

func InitUpdate(keys []string, vals []string) Update

func (Update) Init

func (m Update) Init() tea.Cmd

func (Update) Update

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

func (Update) View

func (m Update) View() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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