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

Releases: AlecAivazis/survey

v1.2.4: Merge pull request #80 from AlecAivazis/refactor/one-write-interface

29 Sep 23:07
Compare
Choose a tag to compare

Improved type handling

15 Jul 16:50
Compare
Choose a tag to compare

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

08 Jul 23:23
Compare
Choose a tag to compare

This version adds a few improvements:

  1. Select and MultiSelect prompt options are now paginated, with a default page size of 7. See Readme for more details
  2. 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

11 May 09:04
Compare
Choose a tag to compare

Added Help text to prompts

27 Apr 01:28
Compare
Choose a tag to compare

See readme for more details

v1.0.2: Merge pull request #37 from AlecAivazis/fix/select-default-value

21 Apr 08:10
Compare
Choose a tag to compare
Fixed bug with multiple selects in the same readline instance

Fixed minor bug in windows terminals

18 Apr 07:25
Compare
Choose a tag to compare
Merge pull request #35 from coryb/erase-flags

fix incompat issues between posix and windows EraseInLine arguments

Added support for non-string prompts

18 Apr 05:56
Compare
Choose a tag to compare

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

Reverted Select to Choice to maintain v0 api

15 Apr 20:13
Compare
Choose a tag to compare
v0.5.1

reverted Select back to Choice to maintain old API

Added support for windows terminals

15 Apr 18:20
Compare
Choose a tag to compare
v0.5

Update README.md