tui

package
v1.2.15 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(cfg *config.Config, version string) error

Run starts the TUI application

Types

type Model

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

Model represents the application state for the TUI

func NewModel

func NewModel(cfg *config.Config, version string) Model

NewModel creates a new TUI model

func (Model) Init

func (m Model) Init() tea.Cmd

Init initializes the model and starts the initial scan

func (Model) Update

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

Update handles incoming messages and updates the model

func (Model) View

func (m Model) View() string

View renders the current state of the model

type ProjectWithStatus

type ProjectWithStatus struct {
	Project scanner.Project
	Status  *git.Status
}

ProjectWithStatus represents a project with its Git status

type RemoteStatus

type RemoteStatus struct {
	HasRemote     bool
	IsUpToDate    bool
	RemoteAhead   bool
	AheadCount    int
	BehindCount   int
	HasLocalDiffs bool
}

RemoteStatus represents the status of the local branch relative to remote

Jump to

Keyboard shortcuts

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