Commit graph

10 commits

Author SHA1 Message Date
Kynan Ware
d46f42a752 Refactor MultiSelectWithSearch to use result struct
Refactored the MultiSelectWithSearch function and related interfaces to use a MultiSelectSearchResult struct instead of multiple return values. This change improves clarity and extensibility of the search function signature, and updates all usages, mocks, and tests accordingly.
2026-01-26 13:29:22 -07:00
Kynan Ware
0beb74bf72 MultiSelectWithSearch initial implementation
Initial implementation of MultiSelectWithSearch:

- Implement by survey and accessible prompters. They use the same internal func under the hood.
- Implement in `gh preview prompter` for initial testing and demonstration
- Implement interface changes across the codebase and mocks to satisfy compiler.
- Implement tests for new MultiSelectWithSearch prompter
2026-01-26 13:29:22 -07:00
Andy Feller
f61961907e Update configuration support for accessible colors
- added support for `accessible_colors` configuration setting in `gh config` commandset
- updated default configuration file to contain `accessible_colors: disabled`
- add `GH_ACCESSIBLE_COLORS` env var to `gh environment`
- generated mocks via `go generate ./...` including previously missed prompter changes
2025-04-17 15:57:49 -04:00
Sam Coe
7924878315
Fix git protocol and refactor Config interface (#8246) 2023-10-27 15:42:05 +02:00
vilmibm
a15eb91a0c go generate 2023-05-23 00:13:57 -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
Mislav Marohnić
e4f5545e86
Go 1.19: fix comment formatting for moq-generated mocks 2022-12-12 16:58:25 +01:00
vilmibm
d8a276e83b add and use ConfirmDeletion in {label,repo} delete 2022-09-21 17:19:13 -07:00
vilmibm
f7d5c5f725 move prompter to own package 2022-07-26 16:41:13 -05:00
Renamed from pkg/cmdutil/prompter_mock.go (Browse further)