cout

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VerbosityNormal = iota
	VerbosityQuiet
	VerbosityJSON
	VerbositySilent
)

Verbosity levels

Variables

Level controls the output verbosity. Set before any output calls.

Functions

func AddResult

func AddResult(pr int, service string, buildNumber int, url string)

AddResult collects a build result for JSON output

func FlushJSON

func FlushJSON()

FlushJSON outputs collected results as a JSON array and resets the collector

func Printf

func Printf(format string, args ...interface{})

Printf prints normal output with color support (suppressed in quiet, json, and silent modes)

func Println

func Println(args ...interface{})

Println prints normal output (suppressed in quiet, json, and silent modes)

func Quietf

func Quietf(format string, args ...interface{})

Quietf prints output only in quiet mode with color support. Use this for the minimal machine-readable output.

func Writer

func Writer() io.Writer

Writer returns the appropriate writer for normal output (os.Stdout or discard)

Types

type BuildResult

type BuildResult struct {
	PR          int    `json:"pr"`
	Service     string `json:"service"`
	BuildNumber int    `json:"build_number"`
	URL         string `json:"url"`
}

BuildResult represents a single triggered build for JSON output

Jump to

Keyboard shortcuts

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