output

package
v3.33.3 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloseFunc

type CloseFunc func(err error) error

type Group

type Group struct {
	Begin, End string
	ErrorOnly  bool
}

func (Group) WrapWriter

func (g Group) WrapWriter(stdOut, _ io.Writer, _ string, tmpl Templater) (io.Writer, io.Writer, CloseFunc)

type Interleaved

type Interleaved struct{}

func (Interleaved) WrapWriter

func (Interleaved) WrapWriter(stdOut, stdErr io.Writer, _ string, _ Templater) (io.Writer, io.Writer, CloseFunc)

type Output

type Output interface {
	WrapWriter(stdOut, stdErr io.Writer, prefix string, tmpl Templater) (io.Writer, io.Writer, CloseFunc)
}

func BuildFor

func BuildFor(o *taskfile.Output) (Output, error)

Build the Output for the requested taskfile.Output.

type Prefixed

type Prefixed struct{}

func (Prefixed) WrapWriter

func (Prefixed) WrapWriter(stdOut, _ io.Writer, prefix string, _ Templater) (io.Writer, io.Writer, CloseFunc)

type Templater

type Templater interface {
	// Replace replaces the provided template string with a rendered string.
	Replace(tmpl string) string
}

Templater executes a template engine. It is provided by the templater.Templater package.

Jump to

Keyboard shortcuts

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