gopass: github.com/justwatchcom/gopass/pkg/out Index | Files

package out

import "github.com/justwatchcom/gopass/pkg/out"

Index

Package Files

context.go print.go

Variables

var (
    // Stdout is exported for tests
    Stdout io.Writer = os.Stdout
    // Stderr is exported for tests
    Stderr io.Writer = os.Stderr
)

func AddPrefix Uses

func AddPrefix(ctx context.Context, prefix string) context.Context

AddPrefix returns a context with the given prefix added to end of the existing prefix

func Black Uses

func Black(ctx context.Context, format string, args ...interface{})

Black prints the string in black

func Blue Uses

func Blue(ctx context.Context, format string, args ...interface{})

Blue prints the string in blue

func Cyan Uses

func Cyan(ctx context.Context, format string, args ...interface{})

Cyan prints the string in cyan

func Debug Uses

func Debug(ctx context.Context, format string, args ...interface{})

Debug prints the given string if the debug flag is set

func Error Uses

func Error(ctx context.Context, format string, args ...interface{})

Error prints the string in red to stderr

func Green Uses

func Green(ctx context.Context, format string, args ...interface{})

Green prints the string in green

func HasNewline Uses

func HasNewline(ctx context.Context) bool

HasNewline returns the value of newline or the default (true)

func IsHidden Uses

func IsHidden(ctx context.Context) bool

IsHidden returns true if any output should be hidden in this context

func Magenta Uses

func Magenta(ctx context.Context, format string, args ...interface{})

Magenta prints the string in magenta

func Prefix Uses

func Prefix(ctx context.Context) string

Prefix returns the prefix or an empty string

func Print Uses

func Print(ctx context.Context, format string, args ...interface{})

Print formats and prints the given string

func Red Uses

func Red(ctx context.Context, format string, args ...interface{})

Red prints the string in red

func White Uses

func White(ctx context.Context, format string, args ...interface{})

White prints the string in white

func WithHidden Uses

func WithHidden(ctx context.Context, hidden bool) context.Context

WithHidden returns a context with the flag value for hidden set

func WithNewline Uses

func WithNewline(ctx context.Context, nl bool) context.Context

WithNewline returns a context with the flag value for newline set

func WithPrefix Uses

func WithPrefix(ctx context.Context, prefix string) context.Context

WithPrefix returns a context with the given prefix set

func Yellow Uses

func Yellow(ctx context.Context, format string, args ...interface{})

Yellow prints the string in yellow

Package out imports 8 packages (graph). Updated 2019-03-28. Refresh now. Tools for package owners.