Commit graph

23 commits

Author SHA1 Message Date
Kynan Ware
88e6285b49 test(prompter): move to external package 2025-04-03 08:45:58 -06:00
Kynan Ware
8827803bd1 test(prompter): skip vt10x tests on Windows 2025-04-03 08:25:33 -06:00
Kynan Ware
94bbd26aab fix(prompter): rename huhprompter 2025-04-02 12:56:44 -06:00
Kynan Ware
88a98ea63a
feat(prompter): include no as false-y value
Co-authored-by: Andy Feller <andyfeller@github.com>
2025-04-02 11:58:10 -06:00
Kynan Ware
e973ee332d fix(md prompter): accessible prompt allows blank
Allow the accessible markdownEditor prompt to be blank when the blank
comes from the result of an interactive session with an editor, even when
blankAllowed is false.

This behavior aligns the accessible prompter with the behavior of the
current standard prompter.
2025-03-31 15:58:20 -06:00
Kynan Ware
7b0c09541d feat(md prompter): md prompt respects blankAllowed
Accessible prompter now respects blankAllowed and
will not prompt for "skip" if blankAllowed is false.
2025-03-31 15:52:26 -06:00
Kynan Ware
202c1ad16b feat(prompter): add accessible prompter support 2025-03-31 15:04:57 -06:00
Tyler McGoffin
13e916bcfb Change prompts for gh auth login to reflect change from GHE to Other 2024-09-20 14:10:05 -07:00
Sam Coe
8016244dbb
Use go-gh prompter package (#7896) 2023-08-28 08:08:43 -05:00
Nate Smith
7d470c4df4 name MultiSelect parameters in interface
I wanted the parameters to show up in my autocomplete
2023-08-07 17:59:12 -07:00
vilmibm
3bd1d6770c fix variable name 2023-05-24 12:40:46 -07:00
vilmibm
5597139df3 switch to []int return for multiselect 2023-05-23 00:12:44 -07:00
vilmibm
8a605fbaf5 Merge remote-tracking branch 'upstream/trunk' into run-prompts 2023-05-19 10:25:18 -07:00
Benjamin Levesque
7cfbf478d5
Diacritics substitution in prompt (#7205) 2023-04-21 14:09:59 +00:00
nate smith
cb0d2a8671 linter appeasement 2023-04-10 18:03:13 -07:00
nate smith
d4a8d15a8a implement multi select support for prompter 2023-04-10 17:37:36 -07:00
vilmibm
10dd74b4af fix bug with Prompter.MultiSelect 2023-03-09 16:40:27 -08:00
vilmibm
553ea39b14 avoid panic when bad default given to Select 2023-01-09 11:44:53 -08:00
vilmibm
d8a276e83b add and use ConfirmDeletion in {label,repo} delete 2022-09-21 17:19:13 -07:00
vilmibm
c2f4bbac6b Do not set default for survey prompt if empty string passed 2022-09-12 17:43:57 -07:00
Mislav Marohnić
436d9ef859
Fix "missing method Fd" crash on Windows (#6200)
This ensures that `IOStreams.Out` always keeps the original `Fd()` value even if it's wrapped as a Colorable stream for Windows in cases when enabling virtual terminal processing has failed.
2022-09-06 17:29:06 +02:00
vilmibm
8bba7f9624 rename NewPrompter to New 2022-08-15 13:28:15 -05:00
vilmibm
f7d5c5f725 move prompter to own package 2022-07-26 16:41:13 -05:00
Renamed from pkg/cmdutil/prompt.go (Browse further)