shwstppr commented on code in PR #165: URL: https://github.com/apache/cloudstack-cloudmonkey/pull/165#discussion_r2262448239
########## cli/completer.go: ########## @@ -421,12 +421,14 @@ func (t *autoCompleter) Do(line []rune, pos int) (options [][]rune, offset int) } for _, item := range filteredOptions { option := item.Value + " " - if len(filteredOptions) > 1 && len(item.Detail) > 0 { + if len(filteredOptions) > 0 && len(item.Detail) > 0 { option += fmt.Sprintf("(%v)", item.Detail) } if strings.HasPrefix(option, argInput) { options = append(options, []rune(option[len(argInput):])) offset = len(argInput) + } else if len(item.Detail) > 0 && strings.HasPrefix(item.Detail, argInput) { Review Comment: not necessary -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@cloudstack.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org