report

package
v0.8.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteJSON

func WriteJSON(w io.Writer, s Summary) error

Types

type Inputs

type Inputs struct {
	Narrowed         selection.Narrowed
	TotalPackages    int
	TestablePackages int
	GraphFromCache   bool
	Note             string
	BaseCommit       string
}

type Lines

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

Lines is a minimal coloured line writer for commands whose output is a short narrative rather than a table.

func NewLines

func NewLines(out io.Writer, useColor bool) Lines

func (Lines) Bad

func (l Lines) Bad(format string, args ...any)

func (Lines) Good

func (l Lines) Good(format string, args ...any)

func (Lines) Line

func (l Lines) Line(format string, args ...any)

func (Lines) Muted

func (l Lines) Muted(format string, args ...any)

func (Lines) Painter

func (l Lines) Painter() ui.Painter

Painter exposes the styling layer for callers that need more than plain lines — badges, bars, tables — so every command shares one look.

func (Lines) Warn

func (l Lines) Warn(format string, args ...any)

type Printer

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

func NewPrinter

func NewPrinter(out io.Writer, useColor bool) *Printer

func (*Printer) Summary

func (p *Printer) Summary(s Summary, verbose bool) error

type SelectedPackage

type SelectedPackage struct {
	ImportPath string   `json:"importPath"`
	Reason     string   `json:"reason"`
	Tests      []string `json:"tests,omitempty"`
	FullReason string   `json:"fullReason,omitempty"`
}

func (SelectedPackage) Mode

func (p SelectedPackage) Mode() string

type Summary

type Summary struct {
	TotalPackages    int               `json:"totalPackages"`
	TestablePackages int               `json:"testablePackages"`
	SelectedPackages []SelectedPackage `json:"selectedPackages"`
	ChangedPackages  []string          `json:"changedPackages"`
	IgnoredFiles     []string          `json:"ignoredFiles,omitempty"`
	SelectAll        bool              `json:"selectAll"`
	SelectAllReason  string            `json:"selectAllReason,omitempty"`
	ReductionPercent float64           `json:"reductionPercent"`
	GraphFromCache   bool              `json:"graphFromCache"`
	Note             string            `json:"note,omitempty"`

	NarrowingEnabled  bool     `json:"narrowingEnabled"`
	NarrowingDisabled string   `json:"narrowingDisabled,omitempty"`
	FullPackages      int      `json:"fullPackages"`
	NarrowedPackages  int      `json:"narrowedPackages"`
	DroppedPackages   int      `json:"droppedPackages"`
	SelectedTests     int      `json:"selectedTests"`
	BlockingFiles     []string `json:"blockingFiles,omitempty"`
	BaseCommit        string   `json:"baseCommit,omitempty"`
}

func NewSummary

func NewSummary(in Inputs) Summary

Jump to

Keyboard shortcuts

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