Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRootCommand ¶
func RestoreTerminal ¶
func RestoreTerminal()
Called by main on every exit path: a spinner may have hidden the cursor, and an invisible cursor outlives the process. Harmless when no spinner ran.
Types ¶
type Globals ¶
type Globals struct {
Profile string
Output string
APIKey string
BaseURL string
Region string
Quiet bool
Debug bool
NoColor bool
NoInput bool
Limit int
All bool
Columns []string
// Replaced in PersistentPreRunE once flags are parsed; set at construction
// only so a directly-constructed command in a test never sees nil.
UI *ui.UI
}
Created per root: pflag writes flag defaults into the bound pointer at registration, so a shared instance is clobbered by a second root.
Click to show internal directories.
Click to hide internal directories.