Documentation
¶
Index ¶
- Variables
- func Box(title, content string) string
- func CodeBlock(code string) string
- func ErrorBox(err error) string
- func Header(title, description string) string
- func InfoBox(message string) string
- func List(items []string) string
- func ProgressBar(current, total int, width int) string
- func StepStatus(number int, name string, status StepStatusType, duration time.Duration) string
- func SuccessBox(message string) string
- func Summary(name string, success bool, duration time.Duration, stepCount int) string
- type Renderer
- func (r *Renderer) RenderCommandOutput(stdout, stderr string)
- func (r *Renderer) RenderError(err error)
- func (r *Renderer) RenderInfo(message string)
- func (r *Renderer) RenderInteractivePrompt(stepNumber int, step harness.Step)
- func (r *Renderer) RenderList(title string, items []string)
- func (r *Renderer) RenderProgress(current, total int)
- func (r *Renderer) RenderScenarioEnd(result *harness.Result)
- func (r *Renderer) RenderScenarioStart(scenario *harness.Scenario)
- func (r *Renderer) RenderStepEnd(stepNumber int, step harness.Step, result harness.StepResult)
- func (r *Renderer) RenderStepStart(stepNumber int, step harness.Step)
- func (r *Renderer) RenderSuccess(message string)
- type StepStatusType
Constants ¶
This section is empty.
Variables ¶
var ( IconPending = theme.IconPending IconRunning = theme.IconRunning IconSuccess = theme.IconSuccess IconError = theme.IconError IconWarning = theme.IconWarning IconInfo = theme.IconInfo IconArrow = theme.IconArrow IconBullet = theme.IconBullet )
Status icons - using grove-core theme icons
Functions ¶
func ProgressBar ¶
ProgressBar renders a progress bar
func StepStatus ¶
StepStatus renders a step with its status
func SuccessBox ¶
SuccessBox renders a success message in a styled box
Types ¶
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
Renderer handles rendering test output with beautiful styling
func NewRenderer ¶
NewRenderer creates a new UI renderer
func (*Renderer) RenderCommandOutput ¶
RenderCommandOutput renders command output
func (*Renderer) RenderError ¶
RenderError renders a standalone error
func (*Renderer) RenderInfo ¶
RenderInfo renders an info message
func (*Renderer) RenderInteractivePrompt ¶
RenderInteractivePrompt renders a prompt for interactive mode
func (*Renderer) RenderList ¶
RenderList renders a list of items
func (*Renderer) RenderProgress ¶
RenderProgress renders overall progress
func (*Renderer) RenderScenarioEnd ¶
RenderScenarioEnd renders the end of a scenario
func (*Renderer) RenderScenarioStart ¶
RenderScenarioStart renders the start of a scenario
func (*Renderer) RenderStepEnd ¶
RenderStepEnd renders the end of a step
func (*Renderer) RenderStepStart ¶
RenderStepStart renders the start of a step
func (*Renderer) RenderSuccess ¶
RenderSuccess renders a success message
type StepStatusType ¶
type StepStatusType int
StepStatusType represents the status of a step
const ( StatusPending StepStatusType = iota StatusRunning StatusSuccess StatusError )