This is an automated email from the ASF dual-hosted git repository. pearl11594 pushed a commit to branch autocomplete-systemofferings in repository https://gitbox.apache.org/repos/asf/cloudstack-cloudmonkey.git
commit 67b643b6560d28a58fe9835ccf85fe30bdfbfb38 Author: Pearl Dsilva <pearl1...@gmail.com> AuthorDate: Fri Aug 22 14:14:18 2025 -0400 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...")