log

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package log provides a way to log messages to the screen with the appropriate coloring and formatting for readability

Index

Constants

This section is empty.

Variables

View Source
var (
	ReasonSkip            = *color.New(color.FgYellow)
	ReasonError           = *color.New(color.FgRed)
	ReasonRemoveTriggered = *color.New(color.FgGreen)
	ReasonWaitPending     = *color.New(color.FgBlue)
	ReasonWaitDependency  = *color.New(color.FgCyan)
	ReasonSuccess         = *color.New(color.FgGreen)
	ReasonHold            = *color.New(color.FgMagenta)
)
View Source
var (
	ColorRegion             = *color.New(color.Bold)
	ColorResourceType       = *color.New()
	ColorResourceID         = *color.New(color.Bold)
	ColorResourceProperties = *color.New(color.Italic)
)

Functions

func Log

func Log(scope, resourceType string, r resource.Resource, c color.Color, msg string)

Log prints the line to screen with the appropriate coloring and formatting for readability

func Sorted

func Sorted(m map[string]string) string

Sorted -- Format the resource properties in sorted order ready for printing. This ensures that multiple runs of aws-nuke produce stable output so that they can be compared with each other.

Types

This section is empty.

Jump to

Keyboard shortcuts

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