defaultresult

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// PrefixTokenSeparator is and string printed between prefix and ansible output
	PrefixTokenSeparator = "\u2500\u2500"
)

Variables

This section is empty.

Functions

func WithTransformers

func WithTransformers(trans ...transformer.TransformerFunc) result.OptionsFunc

WithTransformers sets a transformers list to DefaultResults

Types

type DefaultResults

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

DefaultResults prints results directly to stdout

func NewDefaultResults

func NewDefaultResults(options ...result.OptionsFunc) *DefaultResults

NewDefaultResults returns a DefaultResults instance

func (*DefaultResults) Options

func (r *DefaultResults) Options(options ...result.OptionsFunc)

Options executes the options functions received as a parameters to set the DefaultResults attributes

func (*DefaultResults) Print

func (r *DefaultResults) Print(ctx context.Context, reader io.Reader, writer io.Writer, options ...result.OptionsFunc) error

Print method prints the to the DefaultResults writer the date received as input

Jump to

Keyboard shortcuts

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