dheeraj12347 opened a new pull request, #229:
URL: https://github.com/apache/cloudstack-cloudmonkey/pull/229
## Summary
Add autocomplete support for `map` API arguments in CloudMonkey.
## Changes
- Add support for map argument autocomplete.
- Extract indexed map fields from API argument descriptions.
- Support generic key/value map descriptions.
- Suggest indexed fields such as:
- `tags[0].key=`
- `tags[0].value=`
- Avoid assuming that every `map` argument follows the key/value structure.
- Add regression tests covering:
- Indexed map fields
- Multiple map fields
- Multiple indexes
- Generic key/value maps
- Non-key/value map arguments
- Autocomplete option generation
## Testing
- `gofmt -w cli/completer_test.go`
- `go test ./...`
- `git diff --check`
All tests are passing.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]