├── .github ├── ISSUE_TEMPLATE │ ├── bug.md │ └── question.md ├── matchers.json └── workflows │ └── test.yml ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── confirm.go ├── confirm_test.go ├── core ├── template.go ├── write.go └── write_test.go ├── editor.go ├── editor_test.go ├── examples ├── countrylist.go ├── cursor.go ├── inputfilesuggestion.go ├── longlist.go ├── longmulti.go ├── longmultikeepfilter.go ├── map.go ├── password.go ├── select_description.go ├── simple.go └── validation.go ├── filter.go ├── go.mod ├── go.sum ├── img └── multi-select-all-none.gif ├── input.go ├── input_test.go ├── multiline.go ├── multiline_test.go ├── multiselect.go ├── multiselect_test.go ├── password.go ├── password_test.go ├── renderer.go ├── renderer_posix_test.go ├── renderer_test.go ├── select.go ├── select_test.go ├── survey.go ├── survey_posix_test.go ├── survey_test.go ├── survey_windows_test.go ├── terminal ├── LICENSE.txt ├── README.md ├── buffered_reader.go ├── cursor.go ├── cursor_windows.go ├── display.go ├── display_posix.go ├── display_windows.go ├── error.go ├── output.go ├── output_windows.go ├── runereader.go ├── runereader_bsd.go ├── runereader_linux.go ├── runereader_posix.go ├── runereader_ppc64le.go ├── runereader_test.go ├── runereader_windows.go ├── sequences.go ├── stdio.go ├── syscall_windows.go └── terminal.go ├── tests ├── README.md ├── ask.go ├── confirm.go ├── doubleSelect.go ├── editor.go ├── help.go ├── input.go ├── longSelect.go ├── multiselect.go ├── password.go ├── select.go ├── selectThenInput.go └── util │ └── test.go ├── transform.go ├── transform_test.go ├── validate.go └── validate_test.go /.github/ISSUE_TEMPLATE/bug.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/.github/ISSUE_TEMPLATE/bug.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/question.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/.github/ISSUE_TEMPLATE/question.md -------------------------------------------------------------------------------- /.github/matchers.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/.github/matchers.json -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/README.md -------------------------------------------------------------------------------- /confirm.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/confirm.go -------------------------------------------------------------------------------- /confirm_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/confirm_test.go -------------------------------------------------------------------------------- /core/template.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/core/template.go -------------------------------------------------------------------------------- /core/write.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/core/write.go -------------------------------------------------------------------------------- /core/write_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/core/write_test.go -------------------------------------------------------------------------------- /editor.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/editor.go -------------------------------------------------------------------------------- /editor_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/editor_test.go -------------------------------------------------------------------------------- /examples/countrylist.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/examples/countrylist.go -------------------------------------------------------------------------------- /examples/cursor.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/examples/cursor.go -------------------------------------------------------------------------------- /examples/inputfilesuggestion.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/examples/inputfilesuggestion.go -------------------------------------------------------------------------------- /examples/longlist.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/examples/longlist.go -------------------------------------------------------------------------------- /examples/longmulti.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/examples/longmulti.go -------------------------------------------------------------------------------- /examples/longmultikeepfilter.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/examples/longmultikeepfilter.go -------------------------------------------------------------------------------- /examples/map.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/examples/map.go -------------------------------------------------------------------------------- /examples/password.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/examples/password.go -------------------------------------------------------------------------------- /examples/select_description.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/examples/select_description.go -------------------------------------------------------------------------------- /examples/simple.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/examples/simple.go -------------------------------------------------------------------------------- /examples/validation.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/examples/validation.go -------------------------------------------------------------------------------- /filter.go: -------------------------------------------------------------------------------- 1 | package survey 2 | -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/go.sum -------------------------------------------------------------------------------- /img/multi-select-all-none.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/img/multi-select-all-none.gif -------------------------------------------------------------------------------- /input.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/input.go -------------------------------------------------------------------------------- /input_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/input_test.go -------------------------------------------------------------------------------- /multiline.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/multiline.go -------------------------------------------------------------------------------- /multiline_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/multiline_test.go -------------------------------------------------------------------------------- /multiselect.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/multiselect.go -------------------------------------------------------------------------------- /multiselect_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/multiselect_test.go -------------------------------------------------------------------------------- /password.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/password.go -------------------------------------------------------------------------------- /password_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/password_test.go -------------------------------------------------------------------------------- /renderer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/renderer.go -------------------------------------------------------------------------------- /renderer_posix_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/renderer_posix_test.go -------------------------------------------------------------------------------- /renderer_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/renderer_test.go -------------------------------------------------------------------------------- /select.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/select.go -------------------------------------------------------------------------------- /select_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/select_test.go -------------------------------------------------------------------------------- /survey.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/survey.go -------------------------------------------------------------------------------- /survey_posix_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/survey_posix_test.go -------------------------------------------------------------------------------- /survey_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/survey_test.go -------------------------------------------------------------------------------- /survey_windows_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/survey_windows_test.go -------------------------------------------------------------------------------- /terminal/LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/terminal/LICENSE.txt -------------------------------------------------------------------------------- /terminal/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/terminal/README.md -------------------------------------------------------------------------------- /terminal/buffered_reader.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/terminal/buffered_reader.go -------------------------------------------------------------------------------- /terminal/cursor.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/terminal/cursor.go -------------------------------------------------------------------------------- /terminal/cursor_windows.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/terminal/cursor_windows.go -------------------------------------------------------------------------------- /terminal/display.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/terminal/display.go -------------------------------------------------------------------------------- /terminal/display_posix.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/terminal/display_posix.go -------------------------------------------------------------------------------- /terminal/display_windows.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/terminal/display_windows.go -------------------------------------------------------------------------------- /terminal/error.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/terminal/error.go -------------------------------------------------------------------------------- /terminal/output.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/terminal/output.go -------------------------------------------------------------------------------- /terminal/output_windows.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/terminal/output_windows.go -------------------------------------------------------------------------------- /terminal/runereader.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/terminal/runereader.go -------------------------------------------------------------------------------- /terminal/runereader_bsd.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/terminal/runereader_bsd.go -------------------------------------------------------------------------------- /terminal/runereader_linux.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/terminal/runereader_linux.go -------------------------------------------------------------------------------- /terminal/runereader_posix.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/terminal/runereader_posix.go -------------------------------------------------------------------------------- /terminal/runereader_ppc64le.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/terminal/runereader_ppc64le.go -------------------------------------------------------------------------------- /terminal/runereader_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/terminal/runereader_test.go -------------------------------------------------------------------------------- /terminal/runereader_windows.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/terminal/runereader_windows.go -------------------------------------------------------------------------------- /terminal/sequences.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/terminal/sequences.go -------------------------------------------------------------------------------- /terminal/stdio.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/terminal/stdio.go -------------------------------------------------------------------------------- /terminal/syscall_windows.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/terminal/syscall_windows.go -------------------------------------------------------------------------------- /terminal/terminal.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/terminal/terminal.go -------------------------------------------------------------------------------- /tests/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/tests/README.md -------------------------------------------------------------------------------- /tests/ask.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/tests/ask.go -------------------------------------------------------------------------------- /tests/confirm.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/tests/confirm.go -------------------------------------------------------------------------------- /tests/doubleSelect.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/tests/doubleSelect.go -------------------------------------------------------------------------------- /tests/editor.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/tests/editor.go -------------------------------------------------------------------------------- /tests/help.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/tests/help.go -------------------------------------------------------------------------------- /tests/input.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/tests/input.go -------------------------------------------------------------------------------- /tests/longSelect.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/tests/longSelect.go -------------------------------------------------------------------------------- /tests/multiselect.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/tests/multiselect.go -------------------------------------------------------------------------------- /tests/password.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/tests/password.go -------------------------------------------------------------------------------- /tests/select.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/tests/select.go -------------------------------------------------------------------------------- /tests/selectThenInput.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/tests/selectThenInput.go -------------------------------------------------------------------------------- /tests/util/test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/tests/util/test.go -------------------------------------------------------------------------------- /transform.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/transform.go -------------------------------------------------------------------------------- /transform_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/transform_test.go -------------------------------------------------------------------------------- /validate.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/validate.go -------------------------------------------------------------------------------- /validate_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlecAivazis/survey/HEAD/validate_test.go --------------------------------------------------------------------------------