This repository has been archived by the owner on Apr 19, 2024. It is now read-only.
Releases: AlecAivazis/survey
Releases · AlecAivazis/survey
v1.8.8
specify install
v2.0.5: Change selection prompt from space to enter. (#260)
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)
* 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)
* 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)
* can we get away without intall-deps * more tweaking * empty install * more vendor * specify go version * set goflags on test only
v2.0.2
fix(core): parse time.Duration (#240)
v2.0.1: Small tweaks (#233)
* removed bold face of unhighlighted select options * fixed panic * fixed tooltip in select template * tests pass
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 survey
s 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
andMultiSelect
will write the selected index when copying to a field that's anint
AskOne
no longer takes aValidator
as the third argument- pass the
survey.WithValidator
option instead
- pass the
settable
is nowSettable
survey.PageSize
has been removed.- pass the
survey.WithPageSize
option instead
- pass the
- 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
andMultiSelect.FilterFn
to*.Filter
- you can pass
survey.WithFilter
to set the default filter for your prompts
- you can pass
- Fixed behavior of selects when filtering out all of the options
- Removed
surveyCore.HelpInputRune
in favor ofsurvey.WithHelpInput
- Icons are now configure with the
survey.WithIcons
option
v1.8.5
Read buffered bytes on non-matching DSR (#203)
v1.8.4
pressing the arrow keys when there are no options does not change the…