Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActionMessage ¶
func ActionResourcesMessage ¶
func ActionResourcesMessage(resources ...*hcloud.ActionResource) string
func FakeActionMessage ¶
FakeActionMessage returns the initial value with a unused color to grow the string size.
Because the ActionMessage function adds 1 color to the returned string. We add the same amount of colors to the FakeActionMessage, to make sure the padding is correct.
func StdoutIsTerminal ¶
func StdoutIsTerminal() bool
StdoutIsTerminal returns whether the CLI is run in a terminal.
Types ¶
type ProgressGroup ¶
type ProgressGroup interface { Add(message string, resources string) Progress Start() error Stop() error }
func NewProgressGroup ¶
func NewProgressGroup(output io.Writer) ProgressGroup
Click to show internal directories.
Click to hide internal directories.