Documentation
¶
Index ¶
- type Prompter
- func (m *Prompter) CaptureAddress(prompt string) (crypto.Address, error)
- func (m *Prompter) CaptureDate(prompt string) (time.Time, error)
- func (m *Prompter) CaptureDuration(prompt string) (time.Duration, error)
- func (m *Prompter) CaptureEmail(prompt string) (string, error)
- func (m *Prompter) CaptureExistingFilepath(prompt string) (string, error)
- func (m *Prompter) CaptureFloat(prompt string) (float64, error)
- func (m *Prompter) CaptureID(prompt string) (ids.ID, error)
- func (m *Prompter) CaptureIndex(prompt string, options []any) (int, error)
- func (m *Prompter) CaptureList(prompt string, options []string) (string, error)
- func (m *Prompter) CaptureListEdit(prompt string, initialList []string, info string) ([]string, bool, error)
- func (m *Prompter) CaptureNewFilepath(prompt string) (string, error)
- func (m *Prompter) CaptureNoYes(prompt string) (bool, error)
- func (m *Prompter) CaptureNodeID(prompt string) (ids.NodeID, error)
- func (m *Prompter) CapturePChainAddress(prompt string, network string) (ids.ShortID, error)
- func (m *Prompter) CapturePositiveBigInt(prompt string) (*big.Int, error)
- func (m *Prompter) CaptureString(prompt string) (string, error)
- func (m *Prompter) CaptureStringAllowEmpty(prompt string) (string, error)
- func (m *Prompter) CaptureStringSlice(prompt string) ([]string, error)
- func (m *Prompter) CaptureURL(prompt string) (string, error)
- func (m *Prompter) CaptureUint16(prompt string) (uint16, error)
- func (m *Prompter) CaptureUint32(prompt string) (uint32, error)
- func (m *Prompter) CaptureUint64(prompt string) (uint64, error)
- func (m *Prompter) CaptureUint64Compare(prompt string, comparators []interface{}) (uint64, error)
- func (m *Prompter) CaptureUint8(prompt string) (uint8, error)
- func (m *Prompter) CaptureValidatedString(prompt string, validator func(string) error) (string, error)
- func (m *Prompter) CaptureVersion(prompt string) (string, error)
- func (m *Prompter) CaptureYesNo(prompt string) (bool, error)
- func (m *Prompter) ChooseKeyOrLedger(goal string) (bool, error)
- func (m *Prompter) SelectFromListWithSize(prompt string, options []string, size int) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Prompter ¶
type Prompter struct {
CaptureStringVal string
CaptureStringErr error
CaptureYesNoVal bool
CaptureYesNoErr error
CaptureListVal string
CaptureListErr error
CaptureIndexVal int
CaptureIndexErr error
CaptureUintVal uint64
CaptureUintErr error
CaptureUint16Val uint16
CaptureUint16Err error
CaptureUint32Val uint32
CaptureUint32Err error
CaptureFloatVal float64
CaptureFloatErr error
CaptureAddressVal crypto.Address
CaptureAddressErr error
CapturePChainAddressVal ids.ShortID
CapturePChainAddressErr error
CaptureIDVal ids.ID
CaptureIDErr error
CaptureDurationVal time.Duration
CaptureDurationErr error
CaptureEmailVal string
CaptureEmailErr error
CaptureURLVal string
CaptureURLErr error
CaptureListEditVal []string
CaptureListEditErr error
}
Prompter is a mock implementation of the Prompter interface for testing
func (*Prompter) CaptureAddress ¶
func (*Prompter) CaptureDuration ¶
func (*Prompter) CaptureExistingFilepath ¶
func (*Prompter) CaptureIndex ¶
func (*Prompter) CaptureList ¶
func (*Prompter) CaptureListEdit ¶
func (*Prompter) CaptureNewFilepath ¶
func (*Prompter) CaptureNodeID ¶
func (*Prompter) CapturePChainAddress ¶
func (*Prompter) CapturePositiveBigInt ¶
func (*Prompter) CaptureStringAllowEmpty ¶
func (*Prompter) CaptureStringSlice ¶
func (*Prompter) CaptureUint64Compare ¶
func (*Prompter) CaptureValidatedString ¶
func (*Prompter) ChooseKeyOrLedger ¶
Click to show internal directories.
Click to hide internal directories.