tui

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2025 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetAction

type AssetAction int
const (
	AssetActionDelete AssetAction = iota
	AssetActionEdit
)

type AssetType

type AssetType int
const (
	AssetInstruction AssetType = iota
	AssetReviewer
)

type AssetsModel

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

func NewAssetsModel

func NewAssetsModel(storagePath string, assetType AssetType, action AssetAction) AssetsModel

func (AssetsModel) Init

func (m AssetsModel) Init() tea.Cmd

func (AssetsModel) Update

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

func (AssetsModel) View

func (m AssetsModel) View() string

type Model

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

func New

func New(options Options) *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

type Options

type Options struct {
	Storage         string
	ReviewerName    string
	Instruction     string
	Branch          string
	SelectCommit    bool
	Config          config.Config
	StagedOnly      bool
	SkipInstruction bool
}

Jump to

Keyboard shortcuts

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