Improving CloudMonkey Autocompletion with Enum Value Suggestions
This project improves CloudMonkey CLI autocompletion by addressing a key limitation where enum-type parameters (such as protocol, state, and intervaltype) do not provide any value suggestions due to the absence of corresponding list APIs. While existing completion works well for commands, parameter names, and boolean values, enum parameters currently result in no suggestions, reducing usability. To solve this, the project introduces a structured allowedValues field in CloudStack’s API discovery layer, making valid parameter values machine-readable and accessible via listApis. CloudMonkey will be enhanced to consume this metadata and provide direct value suggestions, along with improvements to entity-reference completion using existing related API mappings. The deliverables include extending the CloudStack API framework, implementing enum-aware autocompletion in CloudMonkey, annotating high-impact parameters, improving entity completion reliability, and adding supporting tests and documentation. This ensures a backward-compatible, user-friendly enhancement to CLI interaction without changing existing APIs.
Project details
Technologies
Not listed in the archive