This repository has been archived by the owner on Apr 19, 2024. It is now read-only.
Added support for non-string prompts
This release includes a few large API breaking changes:
Choice
is now calledSelect
- the
Prompt
interface is now based oninterface{}
s instead ofstring
s Validator
signature changed fromstring -> error
tointerface{} -> error
- Ask and AskOne now take a pointer to a value (similar to
json.Unmarshal
) instead of returning amap[string] string
AskOneValidate
was removed and instead a validator can be specified via the third argument added toAskOne