This repository has been archived by the owner on Apr 19, 2024. It is now read-only.
Releases: AlecAivazis/survey
Releases · AlecAivazis/survey
v1.2.4: Merge pull request #80 from AlecAivazis/refactor/one-write-interface
Refactor/one write interface
Improved type handling
This release added the settable
interface to allow for users to create custom logic when setting a field to a particular value, see README for more information.
This release also added automatic type casting when writing an Input
to an int
field for example.
Added Pagination and Input improvements
This version adds a few improvements:
Select
andMultiSelect
prompt options are now paginated, with a default page size of 7. See Readme for more details- Inputs and Passwords can move their cursor with arrow keys as well as insert text in the middle of the word
Removed readline dependency, verified windows support, and added automated tests
v1.1.1 reorganized task file
Added Help text to prompts
See readme for more details
v1.0.2: Merge pull request #37 from AlecAivazis/fix/select-default-value
Fixed bug with multiple selects in the same readline instance
Fixed minor bug in windows terminals
Merge pull request #35 from coryb/erase-flags fix incompat issues between posix and windows EraseInLine arguments
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
Reverted Select to Choice to maintain v0 api
v0.5.1 reverted Select back to Choice to maintain old API
Added support for windows terminals
v0.5 Update README.md