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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to