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

borisstoyanov 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 ae66522  add autocomplete for VMs belonging to projects (#185)
ae66522 is described below

commit ae6652236270ce43082f434a12c4e5d870840216
Author: Bernardo De Marco Gonçalves <[email protected]>
AuthorDate: Wed Sep 9 03:43:44 2026 -0300

    add autocomplete for VMs belonging to projects (#185)
---
 cli/completer.go | 3 +++
 1 file changed, 3 insertions(+)

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

Reply via email to