tui

package
v0.181.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

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 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