output

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatDuration

func FormatDuration(ms int64) string

FormatDuration formats a duration for display.

func GenerateHTMLReport

func GenerateHTMLReport(result *engine.FlowResult, config HTMLReportConfig) error

GenerateHTMLReport creates a comprehensive HTML report with Tailwind CSS styling.

func PrintJSONResult

func PrintJSONResult(result *engine.FlowResult) error

PrintJSONResult outputs the flow result as JSON.

func PrintSummary

func PrintSummary(result *engine.FlowResult)

PrintSummary prints the final pass/fail/skip count line.

func Repeat

func Repeat(s string, n int) string

Repeat returns a string repeated n times.

Types

type HTMLReportConfig

type HTMLReportConfig struct {
	OutputPath string
	Title      string
	Subtitle   string
}

HTMLReportConfig configures HTML report generation.

type NullPrinter

type NullPrinter struct{}

NullPrinter discards all output (used for JSON mode).

func (*NullPrinter) CleanupResult

func (p *NullPrinter) CleanupResult(string, error)

func (*NullPrinter) CleanupStart

func (p *NullPrinter) CleanupStart(string)

func (*NullPrinter) FlowHeader

func (p *NullPrinter) FlowHeader(string)

func (*NullPrinter) SectionHeader

func (p *NullPrinter) SectionHeader(string)

func (*NullPrinter) SetupResult

func (p *NullPrinter) SetupResult(string, error)

func (*NullPrinter) SetupStart

func (p *NullPrinter) SetupStart(string)

func (*NullPrinter) StepResult

func (p *NullPrinter) StepResult(*engine.StepResult, int, int, bool)

func (*NullPrinter) StepStart

func (p *NullPrinter) StepStart(string, string, int, int)

type TerminalPrinter

type TerminalPrinter struct{}

TerminalPrinter outputs step results to the terminal with colors.

func NewTerminalPrinter

func NewTerminalPrinter() *TerminalPrinter

func (*TerminalPrinter) CleanupResult

func (p *TerminalPrinter) CleanupResult(description string, err error)

func (*TerminalPrinter) CleanupStart

func (p *TerminalPrinter) CleanupStart(description string)

func (*TerminalPrinter) FlowHeader

func (p *TerminalPrinter) FlowHeader(name string)

func (*TerminalPrinter) SectionHeader

func (p *TerminalPrinter) SectionHeader(name string)

func (*TerminalPrinter) SetupResult

func (p *TerminalPrinter) SetupResult(description string, err error)

func (*TerminalPrinter) SetupStart

func (p *TerminalPrinter) SetupStart(description string)

func (*TerminalPrinter) StepResult

func (p *TerminalPrinter) StepResult(result *engine.StepResult, stepNum int, totalSteps int, verbose bool)

func (*TerminalPrinter) StepStart

func (p *TerminalPrinter) StepStart(name string, driverType string, stepNum int, totalSteps int)

Jump to

Keyboard shortcuts

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