From a33d809c88fac69cb4fc43de9a6422de0d49a178 Mon Sep 17 00:00:00 2001 From: Kynan Ware <47394200+BagToad@users.noreply.github.com> Date: Mon, 26 Jan 2026 15:09:16 -0700 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- internal/prompter/prompter.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/prompter/prompter.go b/internal/prompter/prompter.go index 5fef325d5..2bf49eb58 100644 --- a/internal/prompter/prompter.go +++ b/internal/prompter/prompter.go @@ -27,8 +27,8 @@ type Prompter interface { // Items passed in persistentOptions are always shown in the list, even when not selected. // Unlike MultiSelect, MultiselectWithSearch returns the selected option strings, // not their indices, since the list of options is dynamic. - // The searchFunc args and return values are: func(query) (map[keys]labels, moreResultsCount, searchError) - // Where the selected keys are eventually returned by MultiSelectWithSearch and the labels are what is shown to the user in the prompt. + // The searchFunc has the signature: func(query string) MultiSelectSearchResult. + // In the returned MultiSelectSearchResult, Keys are the values eventually returned by MultiSelectWithSearch and Labels are what is shown to the user in the prompt. MultiSelectWithSearch(prompt, searchPrompt string, defaults []string, persistentOptions []string, searchFunc func(string) MultiSelectSearchResult) ([]string, error) // Input prompts the user to enter a string value. Input(prompt string, defaultValue string) (string, error)