Ho Robert, On Thu, Feb 20, 2025 at 09:11:15PM +0100, Robert Schönthal wrote: > <https://discourse.haproxy.org/t/haproxy-runtime-api-cli/11619?u=digitalkaoz> > > Hey Folks, > > i want to introduce a new CLI interacting with the Runtime-API and like to > gather feedback. If its useful et all and what could be improved. It was > more or less a weekend project because i was tired using socat and always > lookup the commands from the official documentation. > > So i combined everything into one small CLI utility written in GO with the > help of the lovely https://charm.sh library. > > What does it do: > > - present a nice (hopefully) table about all backends and servers > (parsed from the show servers state command) > - present a filterable list of all commands available (parsed from the > help command) > - make it easy to choose a command from this list, and execute it (with > a help about available arguments) > > here is the github repo: https://github.com/digitalkaoz/haproxy-runtime-cli > under the latest release you will find a dedicated binary for your OS. > > Thanks for feedback in advance [image: :slight_smile:]
Cool, looks great, thanks for sharing! I like the fact that it presents the command's help message while typing. However I'm missing a way to enter the beginning of a command I know instead of having to search for it in the list. E.g. I'd like to be able to issue "show info" or "debug dev counters" directly from the prompt. And your auto-completion mechanism would likely allow to automatically refine it while I'm typing. This would also possibly permit to access protected commands (those requiring expert mode for example). Cheers, Willy