From 67b643b6560d28a58fe9835ccf85fe30bdfbfb38 Mon Sep 17 00:00:00 2001 From: Pearl Dsilva Date: Fri, 22 Aug 2025 14:14:18 -0400 Subject: [PATCH] Auto complete listServiceOfferings with service offerings when isSystem=true --- cli/completer.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cli/completer.go b/cli/completer.go index 7bc9e5a..e23d187 100644 --- a/cli/completer.go +++ b/cli/completer.go @@ -421,6 +421,10 @@ func (t *autoCompleter) Do(line []rune, pos int) (options [][]rune, offset int) autocompleteAPI.Name = "listSystemVms" } else if apiFound.Name == "associateIpAddress" { autocompleteAPIArgs = append(autocompleteAPIArgs, "state=Free") + } else if apiFound.Name == "listServiceOfferings" { + if arg.Name == "id=" && strings.Contains(strings.Join(splitLine, " "), "issystem=true") { + autocompleteAPIArgs = append(autocompleteAPIArgs, "issystem=true") + } } spinner := t.Config.StartSpinner("fetching options, please wait...")