2026-11-03 04:09:27 +00:00
|
|
|
package ckprompt
|
|
|
|
|
|
2026-11-04 03:55:17 +00:00
|
|
|
import commandkit "go.maximumdirect.net/commandkit"
|
2026-11-03 04:09:27 +00:00
|
|
|
|
|
|
|
|
func completionChoices(values ...string) commandkit.CompletionHint {
|
|
|
|
|
choices := make([]commandkit.CompletionChoice, len(values))
|
|
|
|
|
for i, value := range values {
|
|
|
|
|
choices[i].Value = value
|
|
|
|
|
}
|
|
|
|
|
return commandkit.CompleteChoices(choices...)
|
|
|
|
|
}
|
2026-11-03 13:13:01 +00:00
|
|
|
|
|
|
|
|
func smokeKindCompletion() commandkit.CompletionHint {
|
|
|
|
|
kinds := aggregateSmokeKinds()
|
|
|
|
|
values := make([]string, 0, len(kinds)+1)
|
|
|
|
|
for _, kind := range kinds {
|
|
|
|
|
values = append(values, string(kind))
|
|
|
|
|
}
|
|
|
|
|
return completionChoices(append(values, "all")...)
|
|
|
|
|
}
|