scribe

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: Apache-2.0 Imports: 10 Imported by: 15

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

type Emitter struct {
	// Logger is embedded and therefore delegates all of its functions to the
	// Emitter.
	Logger
}

func NewEmitter added in v0.6.0

func NewEmitter(output io.Writer) Emitter

func (Emitter) Candidates added in v0.7.0

func (e Emitter) Candidates(entries []packit.BuildpackPlanEntry)

func (Emitter) EnvironmentVariables added in v0.11.1

func (e Emitter) EnvironmentVariables(layer packit.Layer)

func (Emitter) LaunchProcesses added in v0.11.0

func (e Emitter) LaunchProcesses(processes []packit.Process, processEnvs ...map[string]packit.Environment)

func (Emitter) SelectedDependency added in v0.6.0

func (e Emitter) SelectedDependency(entry packit.BuildpackPlanEntry, dependency postal.Dependency, now time.Time)

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