cui

package
v0.9.15 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CategoryGauge

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

CategoryGauge represents a percent bar visualizing how well spec did in a particular category

func NewCategoryGauge

func NewCategoryGauge(title string, percent int, cat *model.RuleCategory) CategoryGauge

NewCategoryGauge returns a new gauge widget that is ready to render

type Dashboard

type Dashboard struct {
	C chan bool

	Version string
	// contains filtered or unexported fields
}

Dashboard represents the dashboard controlling container

func CreateDashboard

func CreateDashboard(resultSet *model.RuleResultSet, index *index.SpecIndex, info *datamodel.SpecInfo) *Dashboard

func (*Dashboard) ComposeGauges

func (dash *Dashboard) ComposeGauges()

ComposeGauges prepares health gauges for rendering into the main grid.

func (*Dashboard) GenerateTabbedView

func (dash *Dashboard) GenerateTabbedView()

GenerateTabbedView generates tabs

func (*Dashboard) Render

func (dash *Dashboard) Render() error

Render will render the dashboard.

type Snippet

type Snippet struct {
	termui.Block
	Text      string
	TextStyle termui.Style
	WrapText  bool
}

func NewSnippet

func NewSnippet() *Snippet

func (*Snippet) Draw

func (snip *Snippet) Draw(buf *termui.Buffer)

type StatsChart

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

StatsChart represents a bar chart showing statistics of the specification.

func NewStatsChart

func NewStatsChart(index *index.SpecIndex, info *datamodel.SpecInfo) StatsChart

NewStatsChart returns a new gauge widget that is ready to render

type TabbedView

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

TabbedView represents a tabbed view holding various data views

Jump to

Keyboard shortcuts

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