cmdutil

package
v0.0.0-...-c0db168 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExitIfError

func ExitIfError(err error)

ExitIfError exists with error message if err is not nil.

func Fail

func Fail(msg string, args ...interface{})

Fail prints failure message in stderr.

func Failed

func Failed(msg string, args ...interface{})

Failed prints failure message in stderr and exits.

func FormatDateTimeHuman

func FormatDateTimeHuman(dt, format string) string

FormatDateTimeHuman formats date time in human readable format.

func GetConfigHome

func GetConfigHome() (string, error)

GetConfigHome returns the config home directory.

func Info

func Info(msg string) *spinner.Spinner

Info displays spinner.

func ReadFile

func ReadFile(filePath string) ([]byte, error)

ReadFile reads contents of the given file.

func StdinHasData

func StdinHasData() bool

StdinHasData checks if standard input has any data to be processed.

func Success

func Success(msg string, args ...interface{})

Success prints success message in stdout.

func Warn

func Warn(msg string, args ...interface{})

Warn prints warning message in stderr.

Types

This section is empty.

Jump to

Keyboard shortcuts

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