render

package
v0.0.0-...-9b0e5e6 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NoColor

type NoColor struct{}

func (NoColor) Code

func (n NoColor) Code() string

func (NoColor) Sprint

func (n NoColor) Sprint(a ...any) string

func (NoColor) Sprintf

func (n NoColor) Sprintf(format string, a ...any) string

type ProgressBar

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

ProgressBar wraps the progressbar functionality with huh-style interface

func NewProgressBar

func NewProgressBar(total int64, description string) *ProgressBar

NewProgressBar creates a new progress bar with huh-style interface

func (*ProgressBar) Add

func (p *ProgressBar) Add(chunk int64)

Set sets the current progress

func (*ProgressBar) Clear

func (p *ProgressBar) Clear()

Clear clears the progress bar

func (*ProgressBar) Exit

func (p *ProgressBar) Exit()

Exit finishes the progress bar

func (*ProgressBar) Set

func (p *ProgressBar) Set(current int64)

Set sets the current progress

type Spinner

type Spinner struct {
	*spinner.Spinner
	// contains filtered or unexported fields
}

func NewSpinner

func NewSpinner(desc string) *Spinner

func (*Spinner) Start

func (s *Spinner) Start()

func (*Spinner) Stop

func (s *Spinner) Stop()

type Style

type Style interface {
	Sprint(...any) string
	Sprintf(string, ...any) string
	Code() string
}

type Theme

type Theme struct {
	Normal  Style
	Info    Style
	Success Style
	Warning Style
	Error   Style

	Quant       Style
	Prompt      Style
	AddFiles    Style
	ThinkOutput Style
	ModelOutput Style
	Profile     Style
}

func GetTheme

func GetTheme() *Theme

func (*Theme) Reset

func (t *Theme) Reset()

func (*Theme) Set

func (t *Theme) Set(s Style)

Jump to

Keyboard shortcuts

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