Versions in this module Expand all Collapse all v0 v0.0.9 Sep 23, 2022 Changes in this version + const Add + const Cancel + const Del + const Done + const MoreInfo + const No + const Preview + const Yes + func CaptureListDecision(prompter Prompter, prompt string, capture func(prompt string) (T, error), ...) ([]T, bool, error) + type Prompter interface + CaptureAddress func(promptStr string) (common.Address, error) + CaptureDate func(promptStr string) (time.Time, error) + CaptureDuration func(promptStr string) (time.Duration, error) + CaptureEmail func(promptStr string) (string, error) + CaptureExistingFilepath func(promptStr string) (string, error) + CaptureGitURL func(promptStr string) (*url.URL, error) + CaptureIndex func(promptStr string, options []any) (int, error) + CaptureList func(promptStr string, options []string) (string, error) + CaptureNoYes func(promptStr string) (bool, error) + CaptureNodeID func(promptStr string) (ids.NodeID, error) + CapturePChainAddress func(promptStr string, network models.Network) (string, error) + CapturePositiveBigInt func(promptStr string) (*big.Int, error) + CaptureString func(promptStr string) (string, error) + CaptureStringAllowEmpty func(promptStr string) (string, error) + CaptureUint64 func(promptStr string) (uint64, error) + CaptureVersion func(promptStr string) (string, error) + CaptureWeight func(promptStr string) (uint64, error) + CaptureYesNo func(promptStr string) (bool, error) + func NewPrompter() Prompter