scribe

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2020 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BlackColor   = NewColor(false, 0, -1)
	RedColor     = NewColor(false, 1, -1)
	GreenColor   = NewColor(false, 2, -1)
	YellowColor  = NewColor(false, 3, -1)
	BlueColor    = NewColor(false, 4, -1)
	MagentaColor = NewColor(false, 5, -1)
	CyanColor    = NewColor(false, 6, -1)
	WhiteColor   = NewColor(false, 7, -1)
	GrayColor    = NewColor(false, 244, -1)
)

Functions

This section is empty.

Types

type Bar

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

func NewBar

func NewBar(w io.Writer) *Bar

func (*Bar) Finish

func (b *Bar) Finish()

func (*Bar) Increment

func (b *Bar) Increment()

func (*Bar) Start

func (b *Bar) Start()

type Color

type Color func(message string) string

func NewColor

func NewColor(bold bool, fg, bg int) Color

type FormattedList

type FormattedList []string

func (FormattedList) String

func (l FormattedList) String() string

type FormattedMap

type FormattedMap map[string]interface{}

func NewFormattedMapFromEnvironment

func NewFormattedMapFromEnvironment(environment packit.Environment) FormattedMap

func (FormattedMap) String

func (m FormattedMap) String() string

type Logger

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

func NewLogger

func NewLogger(writer io.Writer) Logger

func (Logger) Action

func (l Logger) Action(format string, v ...interface{})

func (Logger) Break

func (l Logger) Break()

func (Logger) Detail

func (l Logger) Detail(format string, v ...interface{})

func (Logger) Process

func (l Logger) Process(format string, v ...interface{})

func (Logger) Subdetail

func (l Logger) Subdetail(format string, v ...interface{})

func (Logger) Subprocess

func (l Logger) Subprocess(format string, v ...interface{})

func (Logger) Title

func (l Logger) Title(format string, v ...interface{})

type Option

type Option func(Writer) Writer

func WithColor

func WithColor(color Color) Option

func WithIndent

func WithIndent(indent int) Option

type Writer

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

func NewWriter

func NewWriter(writer io.Writer, options ...Option) Writer

func (Writer) Write

func (w Writer) Write(b []byte) (int, error)

Jump to

Keyboard shortcuts

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