internal/

directory
v0.36.4 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: Apache-2.0

Directories

Path Synopsis
Package config holds the CLI configuration.
Package config holds the CLI configuration.
Package index provides structures to index spec nodes and a source tree.
Package index provides structures to index spec nodes and a source tree.
ux
Package ux is the bubbletea front-end for genspec-tui: a single root Model composing a header line, three panels (source tree, spec, diagnostics), and a status and help line.
Package ux is the bubbletea front-end for genspec-tui: a single root Model composing a header line, three panels (source tree, spec, diagnostics), and a status and help line.
confirm
Package confirm is the yes or no modal: a question that must be answered before something irreversible happens.
Package confirm is the yes or no modal: a question that must be answered before something irreversible happens.
diagnostics
Package diagnostics renders the scan half of the diagnostics pane: a severity tally, then one row per finding.
Package diagnostics renders the scan half of the diagnostics pane: a severity tally, then one row per finding.
gadgets
Package gadgets holds small, self-contained TUI helpers.
Package gadgets holds small, self-contained TUI helpers.
help
Package help is the keymap overlay: a scrollable modal listing every binding, grouped by the context it applies in.
Package help is the keymap overlay: a scrollable modal listing every binding, grouped by the context it applies in.
humanize
Package humanize renders durations, sizes and counts the way the chrome shows them to a reader.
Package humanize renders durations, sizes and counts the way the chrome shows them to a reader.
key
Package key normalizes tea.KeyMsg values into a small enum of named bindings, so the model dispatches on a plain string switch rather than a key-binding library.
Package key normalizes tea.KeyMsg values into a small enum of named bindings, so the model dispatches on a plain string switch rather than a key-binding library.
options
Package options is the scanner-options overlay: a scrollable modal of boolean toggles bound directly to the codescan.Options the app scans with.
Package options is the scanner-options overlay: a scrollable modal of boolean toggles bound directly to the codescan.Options the app scans with.
panels
Package panels holds the three scrollable sub-panels of the genspec-tui layout: the source tree (left), the generated spec (right) and the diagnostics (bottom).
Package panels holds the three scrollable sub-panels of the genspec-tui layout: the source tree (left), the generated spec (right) and the diagnostics (bottom).
reference
Package reference is the annotation-reference popup: what the swagger: directive on this line means, and what may be written under it, without leaving the file to go and look it up.
Package reference is the annotation-reference popup: what the swagger: directive on this line means, and what may be written under it, without leaving the file to go and look it up.
runstats
Package runstats shows what the last scan cost: the wall clock, and the memory the process moved across the run.
Package runstats shows what the last scan cost: the wall clock, and the memory the process moved across the run.
safetext
Package safetext makes the control characters in scanned text visible, so nothing a repository contains can steer the terminal the TUI is drawn on.
Package safetext makes the control characters in scanned text visible, so nothing a repository contains can steer the terminal the TUI is drawn on.
scan
Package scan runs codescan and reports the outcome as a bubbletea message.
Package scan runs codescan and reports the outcome as a bubbletea message.
testutils
Package testutils holds helpers shared by the tests of several ux packages.
Package testutils holds helpers shared by the tests of several ux packages.
theme
Package theme holds the lipgloss styles shared by the model and its panels: a rounded-border panel box (bright when focused, dim otherwise), a panel title, and the status line.
Package theme holds the lipgloss styles shared by the model and its panels: a rounded-border panel box (bright when focused, dim otherwise), a panel title, and the status line.
validation
Package validation runs the produced spec through go-openapi/validate and normalises what comes back into findings the TUI can list and navigate to.
Package validation runs the produced spec through go-openapi/validate and normalises what comes back into findings the TUI can list and navigate to.
watcher
Package watcher reports changes under a source tree, so the spec can be regenerated on save.
Package watcher reports changes under a source tree, so the spec can be regenerated on save.

Jump to

Keyboard shortcuts

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