printer

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bold added in v0.2.0

func Bold(t ...string)

func Boldf added in v0.2.0

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

func Boldln added in v0.2.0

func Boldln(t ...string)

func Error added in v0.2.0

func Error(t ...string)

func ErrorIcon added in v0.2.0

func ErrorIcon()

func Errorf added in v0.2.0

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

func Errorln added in v0.2.0

func Errorln(t ...string)

func File added in v0.2.0

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

File prints the data for a given format

func Info added in v0.2.0

func Info(t ...string)

func InfoIcon added in v0.2.0

func InfoIcon()

func Infof added in v0.2.0

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

func Infoln added in v0.2.0

func Infoln(t ...string)

func Italic added in v0.2.0

func Italic(t ...string)

func Italicf added in v0.2.0

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

func Italicln added in v0.2.0

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 added in v0.2.0

func Space()

func Success added in v0.2.0

func Success(t ...string)

func SuccessIcon added in v0.2.0

func SuccessIcon()

func Successf added in v0.2.0

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

func Successln added in v0.2.0

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 added in v0.2.0

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

func Textln added in v0.2.0

func Textln(t ...string)

func Warning added in v0.2.0

func Warning(t ...string)

func WarningIcon added in v0.2.0

func WarningIcon()

func Warningf added in v0.2.0

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

func Warningln added in v0.2.0

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