pprint

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Text    = color.New(color.Reset)
	Cyan    = color.New(color.FgCyan)
	Green   = color.New(color.FgGreen)
	Magenta = color.New(color.FgMagenta)
	Red     = color.New(color.FgRed)
	Yellow  = color.New(color.FgYellow)
)
View Source
var (
	ColField      = Cyan
	ColAdd        = Green
	ColModify     = Yellow
	ColRemove     = Red
	ColLogicalId  = Magenta
	ColWarning    = Yellow
	ColError      = Red
	ColVerbose    = Yellow
	ColDiffHeader = Cyan
	ColDiffAdd    = Green
	ColDiffRemove = Red
	ColDiffText   = Text
)

Functions

func BeginField

func BeginField(w io.Writer, field string)

func ChangeHeader

func ChangeHeader(w io.Writer, action string, resourceType string, logicalResourceId string)

func ChangeSet

func ChangeSet(w io.Writer, cs *cf.DescribeChangeSetOutput)

func ChangeSetDetail

func ChangeSetDetail(w io.Writer, detail *cf.ResourceChangeDetail)

func DisableColor

func DisableColor()

func EnableColor

func EnableColor()

func Errorf

func Errorf(w io.Writer, format string, args ...interface{})

func Field

func Field(w io.Writer, field string, value interface{})

func Promptf

func Promptf(w io.Writer, text string, args ...interface{}) bool

func StackEvent

func StackEvent(w io.Writer, event *cf.StackEvent)

func StackOutput

func StackOutput(w io.Writer, output *cf.Output)

func Verbosef

func Verbosef(w io.Writer, format string, args ...interface{})

func Warningf

func Warningf(w io.Writer, format string, args ...interface{})

func Whoami

func Whoami(w io.Writer, region *string, id *sts.GetCallerIdentityOutput)

Types

This section is empty.

Jump to

Keyboard shortcuts

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