terminal

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Banner()

func Error

func Error(format string, a ...interface{})

func Info

func Info(format string, a ...interface{})

func Question added in v0.4.0

func Question(format string, a ...interface{})

func ReadLine added in v0.3.0

func ReadLine(format string, a ...interface{}) (string, error)

func ReadPassword

func ReadPassword(format string, a ...interface{}) (string, error)

func SingleRow added in v0.3.3

func SingleRow(e emoji.Emoji, format string, a ...interface{})

func Success

func Success(format string, a ...interface{})

func TableWithCellMerge

func TableWithCellMerge(mergeByIndex int) func(*tablewriter.Table)

TableWithCellMerge apply tablewriter.SetAuthMergeCellsByColumnIndex to the table instance and enables tablewriter.SetRowLine Allows to group rows by a column index

func ToTable

func ToTable(header []string, rows [][]string, opts ...func(*tablewriter.Table))

func Version added in v0.3.1

func Version(v string)

func Warning added in v0.3.2

func Warning(format string, a ...interface{})

func YesNo

func YesNo(format string) bool

YesNo prompts the user with a confirm dialog. in every case except for "y" (lowercase y) the return will be false

Types

This section is empty.

Jump to

Keyboard shortcuts

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