Skip to content

Commit 6691800

Browse files
add autocomplete for VMs belonging to projects
1 parent 648a07c commit 6691800

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cli/completer.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,9 @@ func (t *autoCompleter) Do(line []rune, pos int) (options [][]rune, offset int)
414414
if autocompleteAPI.Noun == "isos" {
415415
autocompleteAPIArgs = append(autocompleteAPIArgs, "isofilter=executable")
416416
}
417+
if autocompleteAPI.Noun == "virtualmachines" {
418+
autocompleteAPIArgs = append(autocompleteAPIArgs, "projectid=-1")
419+
}
417420

418421
if apiFound.Name != "provisionCertificate" && autocompleteAPI.Name == "listHosts" {
419422
autocompleteAPIArgs = append(autocompleteAPIArgs, "type=Routing")

0 commit comments

Comments
 (0)