printer

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Printer

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

Printer is struct

func NewPrinter

func NewPrinter(writer, errWriter io.Writer) *Printer

NewPrinter is constructor

func (*Printer) Error

func (p *Printer) Error(res Result)

Error prints error

func (*Printer) Print

func (p *Printer) Print(res Result)

Print prints result

func (*Printer) PrintCmd

func (p *Printer) PrintCmd(cmd string, options []string)

PrintCmd prints command detail

func (*Printer) PrintMsg

func (p *Printer) PrintMsg(msg string)

PrintMsg prints message

func (*Printer) PrintMsgErr

func (p *Printer) PrintMsgErr(msg string)

PrintMsgErr prints error message

func (*Printer) PrintRepoErr

func (p *Printer) PrintRepoErr(msg string, repos []string)

PrintRepoErr prints error message

type Result

type Result struct {
	Repo string
	Msg  string
	Err  error
}

Result is output

Jump to

Keyboard shortcuts

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