cli

package
v0.0.0-...-5129a00 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONPrinter

type JSONPrinter struct{}

JSONPrinter is responsible for presenting information to the stdout and stderr as a JSON It implements progress.Notifier and db.Results

func NewJSONPrinter

func NewJSONPrinter() JSONPrinter

NewJSONPrinter initializes printer

func (JSONPrinter) NextError

func (printer JSONPrinter) NextError(err error)

NextError should be used for error from which program cannot recover

func (JSONPrinter) NextStatus

func (printer JSONPrinter) NextStatus(status progress.Status)

NextStatus should be used for regular messages from function execution

type TextPrinter

type TextPrinter struct{}

TextPrinter is responsible for presenting information to the stdout and stderr as a text It implements progress.Notifier and db.Results

func NewTextPrinter

func NewTextPrinter() TextPrinter

NewTextPrinter initializes printer

func (TextPrinter) NextError

func (printer TextPrinter) NextError(err error)

NextError should be used for error from which program cannot recover

func (TextPrinter) NextStatus

func (printer TextPrinter) NextStatus(status progress.Status)

NextStatus should be used for regular messages from function execution

Jump to

Keyboard shortcuts

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