Documentation ¶
Index ¶
- func Format(s kingpin.Settings) *constants.Format
- func GetReader(filename string) (io.ReadCloser, error)
- func PrintCustomTableHeader(w io.Writer, headers []string, split string)
- func PrintError(err error)
- func PrintHeader(val string)
- func PrintTableHeader(w io.Writer, cols []string)
- func PrintTransferProgress(current, target int64)
- func PrintWarn(message string, args ...interface{})
- func ProcessRunError(runErr error) error
- func ProgressReporter(silent bool) pack.ProgressReporter
- func ReadUserPass() (string, string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetReader ¶
func GetReader(filename string) (io.ReadCloser, error)
GetReader returns the reader for the provided file or stdin if no filename was provided
func PrintCustomTableHeader ¶
PrintCustomTableHeader outputs headers using split as a separator
func PrintHeader ¶
func PrintHeader(val string)
PrintHeader formats the provided string as a header and prints it to stdout
func PrintTableHeader ¶
PrintTableHeader prints header of a table
func PrintTransferProgress ¶
func PrintTransferProgress(current, target int64)
PrintTransferProgress is a helper function that prints incremental progress when we are pushing or pulling packages from remote repositories
func PrintWarn ¶
func PrintWarn(message string, args ...interface{})
PrintWarn outputs a warning message to stdout
func ProcessRunError ¶
ProcessRunError looks at the error that happened during a CLI command execution and converts it to a user-friendly format
func ProgressReporter ¶
func ProgressReporter(silent bool) pack.ProgressReporter
ProgressReporter returns new progress reporter either silent or verbose based on the settings
func ReadUserPass ¶
ReadUserPass reads a username and password from the console
Types ¶
This section is empty.