output

package
v0.0.0-...-1672706 Latest Latest
Warning

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

Go to latest
Published: May 20, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidColor

func IsValidColor(value string) bool

func NoColor

func NoColor(noColor bool)

NoColor forces colored output

func Printf

func Printf(format string, a ...interface{})

Printf output shown to end user - all output goes to stderr

Types

type ColorPrintFunc

type ColorPrintFunc func(format string, a ...interface{}) string

type Output

type Output struct {
	// contains filtered or unexported fields
}

func NewOutput

func NewOutput(replacePathTilde string, paths, passwords data.Patterns, displayRaw bool,
	groupColor, profileColor, envNameColor, pathColor, diffColor string) *Output

func (*Output) DiffSprintf

func (out *Output) DiffSprintf(format string, a ...interface{}) string

func (*Output) EnvNameSprintf

func (out *Output) EnvNameSprintf(format string, a ...interface{}) string

func (*Output) GroupSprintf

func (out *Output) GroupSprintf(format string, a ...interface{}) string

func (*Output) PathSprintf

func (out *Output) PathSprintf(format string, a ...interface{}) string

func (*Output) PrintEnv

func (out *Output) PrintEnv(sh *shell.Shell, name, value string)

func (*Output) PrintGroup

func (out *Output) PrintGroup(name string)

func (*Output) PrintProfileList

func (out *Output) PrintProfileList(profileNames, mergedNames []string)

func (*Output) ProfileSprintf

func (out *Output) ProfileSprintf(format string, a ...interface{}) string

func (*Output) SPrintProfileList

func (out *Output) SPrintProfileList(profileNames, mergedNames []string) string

func (*Output) SprintEnv

func (out *Output) SprintEnv(sh *shell.Shell, name, value string) string

Jump to

Keyboard shortcuts

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