out

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package out provides the output formatting for the CLI

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisableColor added in v0.3.10

func DisableColor()

DisableColor disables color output called if the ESCAPE_NO_COLOR environment variable is set

func GetShortDate added in v0.3.0

func GetShortDate(date string) string

GetShortDate returns the short date format of the given date

func Log

func Log(pretty string)

Log prints the data in the output format

func Print

func Print(data any, pretty string)

Print prints the data in the output format

func PrintError

func PrintError(err error)

PrintError prints an error stack trace

func SetOutput

func SetOutput(o string) error

SetOutput sets the output format for the CLI

func SetupTerminalLog

func SetupTerminalLog()

SetupTerminalLog sets up the terminal log

func StopTerminalLog

func StopTerminalLog()

StopTerminalLog stops the terminal log

func Table

func Table(data any, tableMaker func() []string)

Table prints a table of data

func TagText added in v0.3.8

func TagText(name string, hexRGB string) string

TagText is a helper function to colorize a tag name based on its hexRGB color

Types

This section is empty.

Jump to

Keyboard shortcuts

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