This is an automated email from the ASF dual-hosted git repository.

shwstppr pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack-cloudmonkey.git


The following commit(s) were added to refs/heads/main by this push:
     new 648a07c  autocomplete: list executable isos (#183)
648a07c is described below

commit 648a07c069c9829c84c1bd9c6c30c0e7450b4b8d
Author: Abhishek Kumar <abhishek.mr...@gmail.com>
AuthorDate: Mon Aug 18 18:33:26 2025 +0530

    autocomplete: list executable isos (#183)
    
    In cmk shell when doing tab to autocomplete for iso id, currently, it
    returns an empty result. This PR adds isofilter parameter similar to
    lsit templates call.
    
    Signed-off-by: Abhishek Kumar <abhishek.mr...@gmail.com>
---
 cli/completer.go | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cli/completer.go b/cli/completer.go
index bd1f1df..7bc9e5a 100644
--- a/cli/completer.go
+++ b/cli/completer.go
@@ -411,6 +411,9 @@ func (t *autoCompleter) Do(line []rune, pos int) (options 
[][]rune, offset int)
                                if autocompleteAPI.Noun == "templates" {
                                        autocompleteAPIArgs = 
append(autocompleteAPIArgs, "templatefilter=executable")
                                }
+                               if autocompleteAPI.Noun == "isos" {
+                                       autocompleteAPIArgs = 
append(autocompleteAPIArgs, "isofilter=executable")
+                               }
 
                                if apiFound.Name != "provisionCertificate" && 
autocompleteAPI.Name == "listHosts" {
                                        autocompleteAPIArgs = 
append(autocompleteAPIArgs, "type=Routing")

Reply via email to