output

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(w io.Writer, debug bool, err error)

Debug prints internal error details when --debug is set.

Types

type Console

type Console struct {
	Out    io.Writer
	Err    io.Writer
	Color  bool
	Quiet  bool
	Format Format
}

Console wraps stdout/stderr with CI-aware styling.

func NewConsole

func NewConsole(out, err io.Writer, format Format, quiet bool) *Console

NewConsole creates a console respecting NO_COLOR and CI env vars.

func (*Console) PrintPlan

func (c *Console) PrintPlan(plan []engine.PlanEntry)

func (*Console) PrintResult

func (c *Console) PrintResult(res report.Result) error

func (*Console) Printf

func (c *Console) Printf(format string, args ...any)

type Format

type Format string

Format selects human or JSON rendering.

const (
	FormatHuman Format = "human"
	FormatJSON  Format = "json"
)

Jump to

Keyboard shortcuts

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