tui

package
v0.3.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package tui provides terminal user interface components for Drover

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlanReviewTUI

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

PlanReviewTUI is a terminal UI for reviewing and approving plans

func NewPlanReviewTUI

func NewPlanReviewTUI(plans []*db.Plan, store PlanStore) *PlanReviewTUI

NewPlanReviewTUI creates a new plan review TUI

func (*PlanReviewTUI) Init

func (m *PlanReviewTUI) Init() tea.Cmd

Init initializes the model

func (*PlanReviewTUI) Update

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

Update handles messages

func (*PlanReviewTUI) View

func (m *PlanReviewTUI) View() string

View renders the UI

type PlanStore

type PlanStore interface {
	ApprovePlan(planID string, approver string) error
	RejectPlan(planID string, feedback string) error
}

PlanStore defines the interface for plan storage operations

Jump to

Keyboard shortcuts

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