Kynan Ware
9b89a0ac0e
fix(a11y prompter): remove invalid defaults
2025-05-08 07:41:36 -06:00
Kynan Ware
3594f6357b
fix(a11y prompter): confirm prompt default is readable
2025-05-06 15:50:57 -06:00
Kynan Ware
04aaaea142
fix(a11y prompter): multi select defaults are readable
2025-05-06 15:43:26 -06:00
Kynan Ware
957667efe6
doc(prompter): remove TODO about default value panic
2025-05-06 15:33:51 -06:00
Kynan Ware
cab906151f
fix(a11y prompter): select prompt default value is readable
2025-05-06 15:33:15 -06:00
Kynan Ware
ab4cfb84d2
refactor(a11yprompter): shared method for prompt defaults
2025-05-06 15:33:15 -06:00
Kynan Ware
2ee68411a7
fix(a11y prompter): Select prompt respects defaults
2025-05-06 15:33:15 -06:00
Kynan Ware
9bc2c388da
fix(a11y prompter): input prompt default value is readable
2025-05-06 14:34:05 -06:00
Kynan Ware
00c930d509
doc(prompter): small typo
2025-04-30 08:04:16 -06:00
Andy Feller
8130126ce5
Merge pull request #10901 from cli/kw/fix-accessible-multi-select-prompter-respects-defaults
...
Fix: Accessible multiselect prompt respects default selections
2025-04-30 09:46:56 -04:00
Kynan Ware
d8512a9066
fix(prompter): respect default MultiSelect a11y prompter
2025-04-29 16:35:04 -06:00
Andy Feller
df0aedbe3c
Update internal/prompter/prompter.go
2025-04-28 11:16:35 -04:00
Andy Feller
97a3b70599
Update to huh@0.7.0, echo mode changes
...
This commit is the initial change around updating to huh@0.7.0; pre-testing changes.
2025-04-26 12:57:10 -04:00
Kynan Ware
138bccd437
feat(config): add accessible prompter and spinner
2025-04-22 16:50:58 -06:00
Kynan Ware
70537de132
test(prompter): fix invalid comment
2025-04-10 17:18:56 -06:00
Andy Feller
b8cd094ca8
Ensure markdown confirm prompt shows editor name
...
Apparently, `gh` might not actually have an editor at the time we're prompting
the user if they want to use it for markdown editing. In the survey package,
there is a function that will handle fallback to the default editor based on
environment variables and parse it in the case the editor contains flags and
arguments for cases like Visual Studio Code.
Additionally, there are no tests for the EditorName function and the fact it
is loaded via `init` makes this difficult to test.
Co-authored-by: Kynan Ware <47394200+BagToad@users.noreply.github.com>
2025-04-10 16:28:58 -06:00
Kynan Ware
20ff409bfc
fix(prompter): remove needless default value assignment
2025-04-10 16:28:57 -06:00
Kynan Ware
fab0de5583
fix(prompter): pass io to huh and refactor tests
2025-04-09 15:51:02 -06:00
Kynan Ware
2f5e896535
fix(prompter): update huh and fix tests
2025-04-09 15:18:53 -06:00
Kynan Ware
8fc8486af5
refactor(prompter): rename speechSynthesizerFriendlyPrompter to accessiblePrompter
2025-04-09 08:24:54 -06:00
Kynan Ware
19387b8418
fix(prompter): rename GH_ACCESSIBLE_PROMPTER
2025-04-08 12:52:39 -06:00
Kynan Ware
9cf341302e
refactor(prompter): explicit return values
2025-04-08 12:03:55 -06:00
Kynan Ware
8821f77fbb
doc(prompter): remove senseless comment
2025-04-08 12:00:02 -06:00
Kynan Ware
c4be95afd9
refactor(prompter): remove unused variable
2025-04-08 11:58:50 -06:00
Kynan Ware
d8d3874778
fix(prompter): use os.lookupenv for accessible prompter
2025-04-08 11:38:54 -06:00
Kynan Ware
66407402c0
doc: comment typos and formatting
...
Co-authored-by: Andy Feller <andyfeller@github.com>
2025-04-07 14:53:31 -06:00
Kynan Ware
f89700160b
doc(prompter): clarify comments
2025-04-04 15:08:17 -06:00
Kynan Ware
0b49522467
refactor(prompter): less magic strings
2025-04-04 15:07:21 -06:00
Kynan Ware
2e48cadf58
fix(prompter): remove impossible condition
2025-04-04 15:05:23 -06:00
Kynan Ware
5c39e0bd10
fix(prompter): notes about Confirm default
2025-04-04 14:52:25 -06:00
Kynan Ware
4cf048a8d1
fix(prompter): input returns default when blank
2025-04-04 11:33:10 -06:00
Kynan Ware
5b0d49c6ec
test(prompter): more tests for bad input
2025-04-04 11:06:40 -06:00
Kynan Ware
a30df14b6a
refactor(prompter): rename env var for speech synthesizer friendly prompter
2025-04-03 13:08:16 -06:00
Kynan Ware
49ddacf5b8
docs(prompter): doc prompter interface
2025-04-03 13:06:31 -06:00
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