io

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ask

func Ask(question string) string

func AskForEncryptionKey added in v0.0.2

func AskForEncryptionKey() string

func AskYesNo

func AskYesNo(question string) bool

func Log

func Log() zerolog.Logger

func PrintError

func PrintError(err error)

func PrintErrorAndExit

func PrintErrorAndExit(err error)

func PrintInfo

func PrintInfo(message string)

func PrintNotice

func PrintNotice(message string)

func PrintQuestion

func PrintQuestion(question string)

func PrintSuccess

func PrintSuccess(message string)

func PrintTableNoHeader added in v0.0.2

func PrintTableNoHeader(data [][]string)

func PrintTableWithHeader added in v0.0.2

func PrintTableWithHeader(data [][]string)

func PrintWarning

func PrintWarning(message string)

Types

type OutputFormat added in v0.0.2

type OutputFormat string
const (
	OutputFormatJSON       OutputFormat = "json"
	OutputFormatPrettyJSON OutputFormat = "jsonp"
	OutputFormatYAML       OutputFormat = "yaml"
	OutputFormatDefault    OutputFormat = "default"
)

type StdErrWriter added in v0.0.2

type StdErrWriter struct {
	LogAsDebug bool
}

func (StdErrWriter) Write added in v0.0.2

func (w StdErrWriter) Write(p []byte) (n int, err error)

type StdInReader added in v0.0.2

type StdInReader struct{}

func (StdInReader) Read added in v0.0.2

func (r StdInReader) Read(p []byte) (n int, err error)

type StdOutWriter added in v0.0.2

type StdOutWriter struct {
	LogAsDebug bool
}

func (StdOutWriter) Write added in v0.0.2

func (w StdOutWriter) Write(p []byte) (n int, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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