print

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package print provides a specific definition of a printer Format

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Format

type Format interface {
	Print(*tfconf.Module, *Settings) (string, error)
}

Format represents a printer format (e.g. json, table, yaml, ...)

type Settings

type Settings struct {
	// EscapeCharacters escapes special characters (such as _ * in Markdown and > < in JSON) (default: true)
	// scope: Markdown
	EscapeCharacters bool

	// EscapePipe escapes pipe character in Markdown (default: true)
	// scope: Markdown
	EscapePipe bool

	// MarkdownIndent control the indentation of Markdown headers [available: 1, 2, 3, 4, 5] (default: 2)
	// scope: Markdown
	MarkdownIndent int

	// OutputValues ailrghaekrgj
	// scope: Global
	OutputValues bool

	// ShowColor print "colorized" version of result in the terminal (default: true)
	// scope: Pretty
	ShowColor bool

	// ShowHeader show "Header" module information (default: true)
	// scope: Global
	ShowHeader bool

	// ShowInputs show "Inputs" information (default: true)
	// scope: Global
	ShowInputs bool

	// ShowOutputs show "Outputs" information (default: true)
	// scope: Global
	ShowOutputs bool

	// ShowProviders show "Providers" information (default: true)
	// scope: Global
	ShowProviders bool

	// ShowRequired show "Required" column when generating Markdown (default: true)
	// scope: Markdown
	ShowRequired bool

	// ShowSensitivity show "Sensitive" column when generating Markdown (default: true)
	// scope: Markdown
	ShowSensitivity bool

	// ShowRequirements show "Requirements" section (default: true)
	// scope: Global
	ShowRequirements bool

	// SortByName sorted rendering of inputs and outputs (default: true)
	// scope: Global
	SortByName bool

	// SortByRequired sort items (inputs, providers) by name and prints required ones first (default: false)
	// scope: Global
	SortByRequired bool
}

Settings represents all settings

func NewSettings

func NewSettings() *Settings

NewSettings returns new instance of Settings

Jump to

Keyboard shortcuts

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