views

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ColorBlue = color.New(color.FgBlue).SprintFunc()

ColorBlue formats text with this color

View Source
var ColorCyan = color.New(color.FgCyan).Set().SprintFunc()

ColorCyan formats text with this color

View Source
var ColorGreen = color.New(color.FgGreen).Set().SprintFunc()

ColorGreen formats text with this color

View Source
var ColorMagenta = color.New(color.FgMagenta).Set().SprintFunc()

ColorMagenta formats text with this color

View Source
var ColorModuleAddress = ColorMagenta

ColorModuleAddress defines the default color when printing this type of object

View Source
var ColorRed = color.New(color.FgRed).Set().SprintFunc()

ColorRed formats text with this color

View Source
var ColorResourceAddress = ColorBlue

ColorResourceAddress defines the default color when printing this type of object

View Source
var ColorResourceIndex = ColorYellow

ColorResourceIndex defines the default color when printing this type of object

View Source
var ColorYellow = color.New(color.FgYellow).Set().SprintFunc()

ColorYellow formats text with this color

Functions

func PrettyPrintJSON added in v0.4.0

func PrettyPrintJSON(i interface{}) error

PrettyPrintJSON prints the JSON representation of the given object

func PrintAndExitStdErr added in v0.4.0

func PrintAndExitStdErr(e error)

PrintAndExitStdErr prints and error message and calls os.Exit(1)

func PrintDiff added in v0.4.0

func PrintDiff(a, b interface{}) error

PrintDiff prints the different between two objects parsed to a indented JSON string

func PrintResourceTree

func PrintResourceTree(state *terraform.State)

PrintResourceTree prints all resources within a state grouped by module

func PrintResourceTypes

func PrintResourceTypes(state *terraform.State) error

PrintResourceTypes prints all resource types within a state

func PrintResources

func PrintResources(state *terraform.State, address string) error

PrintResources prints the resource that matches the given address

Types

This section is empty.

Jump to

Keyboard shortcuts

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