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

Releases: AlecAivazis/survey

v1.8.8

10 Feb 19:16
Compare
Choose a tag to compare
specify install

v2.0.5: Change selection prompt from space to enter. (#260)

02 Dec 19:30
Compare
Choose a tag to compare
When using select or multiselect, the user is prompted to make a selection using space, but entering space causes results to be filtered by space. This commit updates the prompt to tell users to make a selection using the enter key.

v1.8.7: Cherry-pick: Add support for ppc64le architecture (#239) (#251)

30 Aug 18:31
Compare
Choose a tag to compare
* Add support for ppc64le architecture (#239)

* Add support for ppc64le architecture

* Remove go get github.com/kr/pty

* Use go 1.12 and use vendor packages

v2.0.4: [FIX] Mismatch a marked item on MultiSelect. (#246)

24 Aug 02:40
Compare
Choose a tag to compare
* Fix MultiSelectQuestionTemplate.

- To check a marked option, It is not that compares an index on for-loop but that compares an index on an option.

* Added a test for marked paginating.

v2.0.3: Fix travis (#247)

23 Aug 18:43
6193842
Compare
Choose a tag to compare
* can we get away without intall-deps

* more tweaking

* empty install

* more vendor

* specify go version

* set goflags on test only

v2.0.2

02 Aug 08:36
Compare
Choose a tag to compare
fix(core): parse time.Duration (#240)

v2.0.1: Small tweaks (#233)

24 Jun 18:33
9f0147a
Compare
Choose a tag to compare
* removed bold face of unhighlighted select options

* fixed panic

* fixed tooltip in select template

* tests pass

V2

13 Jun 23:12
1c1eed8
Compare
Choose a tag to compare
V2

This is the first major update in survey's history! 🎉

In the past, we've taken a lot of care to make sure that surveys API is as stable as possible. With this release, that streak is broken and I hope you trust that the decision didn't come lightly.

In general, this release can be summarized as an attempt to remove all global configuration and move as much as we could into AskOpts. For a detailed explanation of how the API works now, please see the README. Here is a quick summary of the changes:

  • New import path (github.com/AlecAivazis/survey/v2)
  • Select and MultiSelect will write the selected index when copying to a field that's an int
  • AskOne no longer takes a Validator as the third argument
    • pass the survey.WithValidator option instead
  • settable is now Settable
  • survey.PageSize has been removed.
    • pass the survey.WithPageSize option instead
  • Changed the prompt interface to accept a new PromptConfig struct where we can add configuration for new features without breaking the API again
  • Changed signature of Filter to be focused on a single element and added the ability to filter by its index
  • Renamed Select.FilterFn and MultiSelect.FilterFn to *.Filter
    • you can pass survey.WithFilter to set the default filter for your prompts
  • Fixed behavior of selects when filtering out all of the options
  • Removed surveyCore.HelpInputRune in favor of survey.WithHelpInput
  • Icons are now configure with the survey.WithIcons option

v1.8.5

30 May 22:12
Compare
Choose a tag to compare
Read buffered bytes on non-matching DSR (#203)

v1.8.4

06 May 22:03
7cbcdea
Compare
Choose a tag to compare
pressing the arrow keys when there are no options does not change the…