Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Added support for non-string prompts

Compare
Choose a tag to compare
@AlecAivazis AlecAivazis released this 18 Apr 05:56
· 344 commits to master since this release

This release includes a few large API breaking changes:

  • Choice is now called Select
  • the Prompt interface is now based on interface{}s instead of strings
  • Validator signature changed from string -> error to interface{} -> error
  • Ask and AskOne now take a pointer to a value (similar to json.Unmarshal) instead of returning a map[string] string
  • AskOneValidate was removed and instead a validator can be specified via the third argument added to AskOne