ui

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HorizontalSeparator

func HorizontalSeparator(thin bool) string

func TextBox

func TextBox(text string) string

Types

type BenchmarksTableRenderer

type BenchmarksTableRenderer struct{}

BenchmarksTableRenderer implements Renderer for the Benchmark model.

func NewBenchmarksTableRenderer

func NewBenchmarksTableRenderer() *BenchmarksTableRenderer

NewBenchmarksTableRenderer creates a new instance of BenchmarksTableRenderer.

func (*BenchmarksTableRenderer) Render

func (r *BenchmarksTableRenderer) Render(benchmarks []*models.Benchmark) string

Render renders the table for a slice of benchmarks.

type Prompt

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

Prompt is a component that renders a text input field with a prompt.

func NewPrompt

func NewPrompt(text, placeholder string, sensitive bool) *Prompt

NewPrompt returns a new Prompt component with the given text and placeholder.

func (*Prompt) Render

func (p *Prompt) Render() error

Render renders the component to the terminal.

func (*Prompt) Value

func (p *Prompt) Value() string

Value returns the value of the prompt.

func (*Prompt) WasCanceled

func (p *Prompt) WasCanceled() bool

WasCanceled returns true if the prompt was canceled.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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