Documentation ¶
Index ¶
- Constants
- func Attentionf(format string, a ...any)
- func Confirm(message string, defaultValue string) bool
- func Debugf(format string, a ...any)
- func Errorf(format string, a ...any)
- func Fatal(msg string, err error)
- func FormatVolumes(volumes []types.ExecVolume) string
- func HandleError(err error) error
- func Infof(format string, a ...any)
- func MaxFieldLength[T any](data []T, getField func(T) string) int
- func Result(entries []ResultEntry, indentation uint)
- func ResultTitle(title string)
- func Select(label string, options []string) (int, error)
- func Successf(format string, a ...any)
- func Table(title string, cols []Column, rows []Row)
- type Column
- type Error
- type ResultEntry
- type Row
Constants ¶
View Source
const ( MaxOutputLineLength = 80 IndentWidth = 2 )
Variables ¶
This section is empty.
Functions ¶
func Attentionf ¶
func Fatal ¶ added in v0.1.36
Fatal prints an error message. It checks is the error is a types.Error and prints the verbose message if it is.
You should use this function instead of Errorf (which is being deprecated).
func FormatVolumes ¶ added in v0.1.36
func FormatVolumes(volumes []types.ExecVolume) string
func HandleError ¶
func MaxFieldLength ¶ added in v0.1.36
MaxFieldLength can be used to compute the maximum length of any given column based on the length of the greatest row
func Result ¶
func Result(entries []ResultEntry, indentation uint)
func ResultTitle ¶
func ResultTitle(title string)
Types ¶
type ResultEntry ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.