Versions in this module Expand all Collapse all v6 v6.1.0 May 4, 2024 Changes in this version + const TableFormatCSV + const TableFormatCompact + const TableFormatJSON + const TableFormatTable + const TableFormatYAML + func AskPassword(question string) string + func AskPasswordOnce(question string) string + func CancelableWait(rawOp any, progress *ProgressRenderer) error + func FormatSection(header string, content string) string + func RenderTable(format string, header []string, data [][]string, raw any) error + type Asker struct + func NewAsker(reader *bufio.Reader) Asker + func (a *Asker) AskBool(question string, defaultAnswer string) (bool, error) + func (a *Asker) AskChoice(question string, choices []string, defaultAnswer string) (string, error) + func (a *Asker) AskInt(question string, min int64, max int64, defaultAnswer string, ...) (int64, error) + func (a *Asker) AskString(question string, defaultAnswer string, validate func(string) error) (string, error) + type ByNameAndType [][]string + func (a ByNameAndType) Len() int + func (a ByNameAndType) Less(i, j int) bool + func (a ByNameAndType) Swap(i, j int) + type Column struct + DataFunc func(any) (string, error) + Header string + type ProgressRenderer struct + Format string + Quiet bool + func (p *ProgressRenderer) Done(msg string) + func (p *ProgressRenderer) Update(status string) + func (p *ProgressRenderer) UpdateOp(op api.Operation) + func (p *ProgressRenderer) UpdateProgress(progress ioprogress.ProgressData) + func (p *ProgressRenderer) Warn(status string, timeout time.Duration) + type SortColumnsNaturally [][]string + func (a SortColumnsNaturally) Len() int + func (a SortColumnsNaturally) Less(i, j int) bool + func (a SortColumnsNaturally) Swap(i, j int) + type StringList [][]string + func (a StringList) Len() int + func (a StringList) Less(i, j int) bool + func (a StringList) Swap(i, j int) Other modules containing this package github.com/lxc/incus