-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement better filtering for autocompletion #48
Comments
This will probably need special cases for each API call or group of API calls. Alternatively, it may be possible to attach a special-case filter to arguments (such as Additional care must be taken to "inject" the other parameters given by the user into the query call. Usage scenaria with special handling for
To make this work, it may be necessary to implement a sort of "translation" between the special parameters and the actual parameters sent later with the API call. For example, when autocompletion for one parameter terminates, the parameter could be automagically transformed into the actual parameter. For |
@onitake you probably want to do filtering by manually calling APIs/response to find what you need or use the UI for adv. search capabilities which will probably require a lot of rewriting of cmk code; (to show a widget on CLI with probably a ncurses UI that takes in these filtering parameter while autocompletion). |
When sending actions against a resource, there is no way to filter the autocompletion results, except via fields that the API accepts.
For example, the
start virtualmachine
API only accepts the VM UUID, which is a global value and almost useless for autocompletion if there are a lot of VMs for the current account.Please implement a better way to select resources, for example by adding
name
,project
or other arguments that would query the respective APIs for a list of resources first.The text was updated successfully, but these errors were encountered: