go-gh icon indicating copy to clipboard operation
go-gh copied to clipboard

WIP Prototype using charmbracelet/huh for prompter

Open andyfeller opened this issue 1 year ago • 0 comments

Relates https://github.com/cli/cli/issues/8084 Relates #164

With go-survey/survey being unmaintained, this is an initial prototype of using https://github.com/charmbracelet/huh as an optional prompting experience including support for accessiblity needs.

Additionally, this commit includes a simple example to demo the existing and new experiences in examples/prompter/main.go:

  • by default, the existing go-survey/survey experience
  • specifying GH_PROMPTER=accessible, the new charmbracelet/huh experience in rich mode
  • specifying ACCESSIBLE=1 with GH_PROMPTER=accessible, the new charmbracelet/huh experience in accessible mode

https://github.com/cli/go-gh/assets/2089743/1b1d347f-293b-46b6-bae0-4fd9cd3e43c1

andyfeller avatar Jun 03 '24 13:06 andyfeller