tui

package
v0.169.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package tui holds the bubbletea models for `wb sync`'s progress display.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProgressModel

type ProgressModel struct {
	Results []fleetsync.Result
	// contains filtered or unexported fields
}

ProgressModel renders an overall bar, one bar per org, and a bounded live tail of in-flight repos while a sync runs.

func NewProgressModel

func NewProgressModel(orgTotal map[string]int, maxInFlight int) ProgressModel

NewProgressModel builds a ProgressModel for the given per-org repo counts (orgTotal) and the worker count (maxInFlight, the live-tail row limit).

func (ProgressModel) Init

func (m ProgressModel) Init() tea.Cmd

func (ProgressModel) Update

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

func (ProgressModel) View

func (m ProgressModel) View() tea.View

type RepoDone

type RepoDone struct{ Result fleetsync.Result }

RepoDone signals a worker finished processing a repo.

type RepoStarted

type RepoStarted struct{ Org, Name string }

RepoStarted signals a worker began processing org/name.

type ResultsModel

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

ResultsModel is a persistent split-pane review screen: the left panel is a navigable summary and the right panel follows its current selection.

func NewResultsModel

func NewResultsModel(results []fleetsync.Result) ResultsModel

NewResultsModel turns the final sync summary itself into the left-hand navigation. Selecting a count shows every repository contributing to it on the right, including successful/no-op categories rather than only failures.

func (ResultsModel) Init

func (m ResultsModel) Init() tea.Cmd

func (ResultsModel) Update

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

func (ResultsModel) View

func (m ResultsModel) View() tea.View

type SyncDone

type SyncDone struct{}

SyncDone signals every repo has been processed; the program should quit.

Jump to

Keyboard shortcuts

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