Bash tab completion for cli API utilities
Open Discussion
As a sysadmin looking to maximize my interaction with the command line of the server, I would love to see the addition of bash tab complete capability with the CLI, API utilities: whmapi1, cpapi2, uapi. This would allow me to construct rich and complex API calls from the command line.
Being able to use the API more directly, and without the need to lookup each command and its options/parameters in the API documentation web pages would help me streamline my workflow by making the API more accessible in my day to day activities.
Hey all! Internally we haven't added this capability yet, but one of our analysts has been working on this and has a post on the forums about it. Check it out here:
https://forums.cpanel.net/threads/tab-completion-for-the-api.596967/
Hey all! Internally we haven't added this capability yet, but one of our analysts has been working on this and has a post on the forums about it. Check it out here:
https://forums.cpanel.net/threads/tab-completion-for-the-api.596967/
+1
I too would make heavy use of this capability. Having to lookup all this information can be very time consuming and having something like this in place would certainly increase productivity when handling certain issues.
Example usage:
Displays a list of possible categorized functions like:
Displays a list of possible parameters to the current function like:
This same process on all functions and parameters would be just fantastic. The above example is purely arbitrary for illustrative purposes.
+1
I too would make heavy use of this capability. Having to lookup all this information can be very time consuming and having something like this in place would certainly increase productivity when handling certain issues.
Example usage:
Displays a list of possible categorized functions like:
Displays a list of possible parameters to the current function like:
This same process on all functions and parameters would be just fantastic. The above example is purely arbitrary for illustrative purposes.
Hey all! Internally we haven't added this capability yet, but one of our analysts has been working on this and has a post on the forums about it. Check it out here:
https://forums.cpanel.net/threads/tab-completion-for-the-api.596967/
Hey all! Internally we haven't added this capability yet, but one of our analysts has been working on this and has a post on the forums about it. Check it out here:
https://forums.cpanel.net/threads/tab-completion-for-the-api.596967/
Replies have been locked on this page!