8000 Apply suggestions from code review · cli/cli@a33d809 · GitHub
[go: up one dir, main page]

Skip to content

Commit a33d809

Browse files
BagToadCopilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 968a912 commit a33d809

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/prompter/prompter.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ type Prompter interface {
2727
// Items passed in persistentOptions are always shown in the list, even when not selected.
2828
// Unlike MultiSelect, MultiselectWithSearch returns the selected option strings,
2929
// not their indices, since the list of options is dynamic.
30-
// The searchFunc args and return values are: func(query) (map[keys]labels, moreResultsCount, searchError)
31-
// Where the selected keys are eventually returned by MultiSelectWithSearch and the labels are what is shown to the user in the prompt.
30+
// The searchFunc has the signature: func(query string) MultiSelectSearchResult.
31+
// In the returned MultiSelectSearchResult, Keys are the values eventually returned by MultiSelectWithSearch and Labels are what is shown to the user in the prompt.
3232
MultiSelectWithSearch(prompt, searchPrompt string, defaults []string, persistentOptions []string, searchFunc func(string) MultiSelectSearchResult) ([]string, error)
3333
// Input prompts the user to enter a string value.
3434
Input(prompt string, defaultValue string) (string, error)

0 commit comments

Comments
 (0)
0