Documentation
¶
Index ¶
- func BoxItems(items []string, color string) string
- func BoxSection(title, content, color string) string
- func Color(s string) string
- func Colorf(format string, a ...interface{}) string
- func DisableColors()
- func EnableColors()
- func Error(err error) string
- func StyledNumComparisons(n int) string
- func StyledNumMatches(n int) string
- func StyledNumMoves(n int) string
- type Summarizer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoxSection ¶
func Color ¶
Color returns a string with color and other formatting applied. Under the hood, this function uses the colorstring package: github.com/mitchellh/colorstring
func Colorf ¶
Colorf returns a string with color and other formatting applied. When inserting user-provided values into a format string, use this function instead of Color. This is to avoid mistakenly interpreting user data as formatting directives.
func StyledNumComparisons ¶
func StyledNumMatches ¶
func StyledNumMoves ¶
Types ¶
type Summarizer ¶
type Summarizer struct {
// contains filtered or unexported fields
}
Summarizer is used to pretty print a summary of the tfautomv engine's findings.
func NewSummarizer ¶
func NewSummarizer(moves []engine.Move, comparisons []engine.ResourceComparison, verbosity int) Summarizer
NewSummarizer returns a ready-to-use Summarizer.
func (*Summarizer) StyledModule ¶
func (s *Summarizer) StyledModule(module string) string
func (*Summarizer) Summary ¶
func (s *Summarizer) Summary() string
Click to show internal directories.
Click to hide internal directories.