This is an automated email from the ASF dual-hosted git repository.
shwstppr 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 7791866 Auto complete listServiceOfferings with service offerings
when isSystem=true (#186)
7791866 is described below
commit 77918667ae045e240d85a8bc387b7a784973b60d
Author: Pearl Dsilva <[email protected]>
AuthorDate: Mon Aug 25 05:01:46 2025 -0400
Auto complete listServiceOfferings with service offerings when
isSystem=true (#186)
---
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...")