Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ColorBlue = color.New(color.FgBlue).SprintFunc()
ColorBlue formats text with this color
var ColorCyan = color.New(color.FgCyan).Set().SprintFunc()
ColorCyan formats text with this color
var ColorGreen = color.New(color.FgGreen).Set().SprintFunc()
ColorGreen formats text with this color
var ColorMagenta = color.New(color.FgMagenta).Set().SprintFunc()
ColorMagenta formats text with this color
var ColorModuleAddress = ColorMagenta
ColorModuleAddress defines the default color when printing this type of object
var ColorRed = color.New(color.FgRed).Set().SprintFunc()
ColorRed formats text with this color
var ColorResourceAddress = ColorBlue
ColorResourceAddress defines the default color when printing this type of object
var ColorResourceIndex = ColorYellow
ColorResourceIndex defines the default color when printing this type of object
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 ¶
PrintResourceTree prints all resources within a state grouped by module
func PrintResourceTypes ¶
PrintResourceTypes prints all resource types within a state
Types ¶
This section is empty.