Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasDataAvailable ¶
HasDataAvailable will return whether the given Reader has data available to read
Types ¶
type Pending ¶
type Pending struct {
// contains filtered or unexported fields
}
Pending is used to show a loading spinner while a long running function runs to perform some action and output information
func NewPendingCommand ¶
NewPendingCommand is used to show a loading spinner while a long running function runs to perform some action and output information. fn is a function run to perform the action. It should return a PendingOutput if to update the output after the action is complete. It can also return an error instance. loadingText is the text shown while the function is running
type PendingOutput ¶
type PendingOutput string
Click to show internal directories.
Click to hide internal directories.