output

package
v0.25.1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Msg added in v0.13.0

func Msg(cmd *cobra.Command, format string, args ...any)

Msg prints an informational message to stderr unless --quiet is set.

func Print

func Print(cmd *cobra.Command, data []byte) error

Print formats and prints data based on the --output flag value.

func SARIFBytes added in v0.23.0

func SARIFBytes(data []byte) ([]byte, error)

SARIFBytes converts CLI finding JSON into an indented SARIF document. Exported so other commands (e.g. `ci report --format sarif`) can reuse it.

Types

type Spinner added in v0.13.0

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

Spinner displays a simple progress spinner on stderr.

func NewSpinner added in v0.13.0

func NewSpinner(msg string, quiet bool) *Spinner

NewSpinner starts a spinner with the given message. Call Stop() when done. If quiet is true, no spinner is displayed but Stop() is still safe to call. The spinner is also suppressed when stderr is not a terminal.

func (*Spinner) Stop added in v0.13.0

func (s *Spinner) Stop()

Stop stops the spinner.

Jump to

Keyboard shortcuts

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