util

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IsTTY bool

Functions

func Ask

func Ask(prompt string) string

func ClearLine

func ClearLine()

func ClearScreen

func ClearScreen()

func Confirm

func Confirm(defaultYes bool, prompt string) bool

func Debug added in v0.3.0

func Debug(message string, parts ...interface{})

func RunAttached

func RunAttached(command string, args ...string)

func RunAwsCapture added in v0.2.0

func RunAwsCapture(args ...string) (string, error)

func RunCapture

func RunCapture(command string, args ...string) (string, error)

Types

type Table

type Table struct {
	// contains filtered or unexported fields
}

func NewTable

func NewTable(headings ...string) Table

func (*Table) Append

func (t *Table) Append(values ...interface{})

func (*Table) Sort

func (t *Table) Sort()

func (*Table) String

func (t *Table) String() string

func (*Table) YAML

func (t *Table) YAML() string

type Text

type Text struct {
	// contains filtered or unexported fields
}

func Bold

func Bold(text string) Text

func Green

func Green(text string) Text

func Grey

func Grey(text string) Text

func Orange

func Orange(text string) Text

func Plain

func Plain(text string) Text

func Red

func Red(text string) Text

func White

func White(text string) Text

func Yellow

func Yellow(text string) Text

func (Text) Len

func (t Text) Len() int

func (Text) String

func (t Text) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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