Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ShowOnlyChanged ¶
ShowOnlyChanged filters nodes to show only changed nodes
Types ¶
type FilterFunc ¶
FilterFunc is used to filter out nodes which shouldn't be printed. The func should return `true` if the node is to be printed.
func HideByKind ¶
func HideByKind(types ...string) FilterFunc
HideByKind hides certain ID types in the graph. So for example if you want to hide all params, specify `param` as a type to this func. This uses the ID functions in the graph module.
type Printable ¶
type Printable interface { Changes() map[string]resource.Diff Messages() []string HasChanges() bool Error() error }
Printable defines the methods needed to print with this printer
type Printer ¶
type Printer struct { Color bool // color output Filter FilterFunc }
Printer for human-readable output
func NewFiltered ¶
func NewFiltered(f FilterFunc) *Printer
NewFiltered returns a version of Printer that will filter according to the specified func
func (*Printer) InitColors ¶
func (p *Printer) InitColors()
InitColors initializes the colors used by the human printer
Click to show internal directories.
Click to hide internal directories.