printer

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 12 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bold

func Bold(t ...string)

func Boldf

func Boldf(t string, args ...interface{})

func Boldln

func Boldln(t ...string)

func Error

func Error(t ...string)

func ErrorIcon

func ErrorIcon()

func Errorf

func Errorf(t string, args ...interface{})

func Errorln

func Errorln(t ...string)

func File

func File(data interface{}, format string) (err error)

File prints the data for a given format

func Info

func Info(t ...string)

func InfoIcon

func InfoIcon()

func Infof

func Infof(t string, args ...interface{})

func Infoln

func Infoln(t ...string)

func Italic

func Italic(t ...string)

func Italicf

func Italicf(t string, args ...interface{})

func Italicln

func Italicln(t ...string)

func JSON

func JSON(data interface{}) error

JSON prints the data as JSON.

func Markdown

func Markdown(text string) (string, error)

func MarkdownWithWrap

func MarkdownWithWrap(text string, wrap int) (string, error)

func PrettyJSON

func PrettyJSON(data interface{}) error

PrettyJSON prints the data as pretty JSON.

func Progress

func Progress(max int, description string) *progressbar.ProgressBar

func Space

func Space()

func Success

func Success(t ...string)

func SuccessIcon

func SuccessIcon()

func Successf

func Successf(t string, args ...interface{})

func Successln

func Successln(t ...string)

func Table

func Table(target io.Writer, rows [][]string)

Table writes a terminal-friendly table of the values to the target.

func Text

func Text(t ...string)

func Textf

func Textf(t string, args ...interface{})

func Textln

func Textln(t ...string)

func Warning

func Warning(t ...string)

func WarningIcon

func WarningIcon()

func Warningf

func Warningf(t string, args ...interface{})

func Warningln

func Warningln(t ...string)

func YAML

func YAML(data interface{}) error

YAML prints the data as YAML.

Types

type Indicator

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

func Spin

func Spin(label string) *Indicator

func (*Indicator) Stop

func (s *Indicator) Stop()

type RenderOpts

type RenderOpts []glamour.TermRendererOption

Jump to

Keyboard shortcuts

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