utils

package
v0.1.1-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AskConfirmation

func AskConfirmation(message string) bool

func AskYesOrNo

func AskYesOrNo(message string) bool

func Contains

func Contains(s []string, e string) bool

func FormatMemory

func FormatMemory(memory *float64) string

func FormatProcessor

func FormatProcessor(proc *float64) string

func ReadUserInput

func ReadUserInput(message string) string

func RunCMD

func RunCMD(cmd string, args ...string) (int, string, string)

func SelectItem

func SelectItem(msg string, instances []string) string

Types

type Table

type Table struct {
	*tablewriter.Table
	// contains filtered or unexported fields
}

func NewTable

func NewTable() *Table

func (*Table) Render

func (t *Table) Render(rows interface{}, exclude []string)

func (*Table) SetHeader

func (t *Table) SetHeader(keys []string)

Jump to

Keyboard shortcuts

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