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
func PromptForOne ¶
PromptForOne will show the list of options to the user, allowing them to select one to return. It's possible for them to choose none or cancel the selection, resulting in an error.
Types ¶
type Pending ¶
type Pending struct { Err error // 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