tui

package
v0.0.0-...-eeea072 Latest Latest
Warning

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

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

Documentation

Overview

Package tui provides Bubble Tea UI components for analyzerepo:

  • Wizard: an interactive multi-step config collector
  • Pipeline: a live progress view for the file analysis phase

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintBanner

func PrintBanner()

PrintBanner prints the analyzerepo title block to stdout. Called once at the start of every run so the banner is visible in normal CLI output — not just inside the wizard's alt-screen.

func RunPipeline

func RunPipeline(
	ctx context.Context,
	client *analyze.Client,
	root string,
	files []string,
	verbs []string,
) (analyses []analyze.FileAnalysis, failed int, err error)

RunPipeline analyses each file in `files`, printing a live Bubble Tea progress view when stdout is a TTY, or plain line-by-line output otherwise. Returns all FileAnalysis results (including stubs for failures) and a count of failures.

Types

type Config

type Config struct {
	Source    string
	Full      bool
	Reports   map[string]bool
	OutputDir string
}

Config holds the configuration collected by the wizard (or from CLI flags).

func RunWizard

func RunWizard(pre Config, skipSource, skipReports, skipFull, skipOutput bool) (Config, error)

RunWizard launches the full-screen interactive wizard and returns the completed Config. pre contains any values already set by CLI flags/args. skip* flags indicate which steps to bypass because the value is already provided.

Jump to

Keyboard shortcuts

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