From 6691800acf1ba99280c27d67e8d17032a7d9958b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernardo=20De=20Marco=20Gon=C3=A7alves?= Date: Thu, 21 Aug 2025 20:01:23 -0300 Subject: [PATCH] add autocomplete for VMs belonging to projects --- cli/completer.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli/completer.go b/cli/completer.go index 7bc9e5a..5756306 100644 --- a/cli/completer.go +++ b/cli/completer.go @@ -414,6 +414,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")