-------- In message <CABoVN9AgQu6tv=1ufrlxfgrmuv6+xl-q6cekjtso90bw6zc...@mail.gmail.com> , Dridi Boukelmoune writes: >On Thu, May 3, 2018 at 1:04 PM, Poul-Henning Kamp <p...@phk.freebsd.dk> wrote: >> -------- >> In message >> <CAJ6ZYQx3vsFtWeTHpoU+ifgKjPDQv3=sH=c5q-zxfqjcu0k...@mail.gmail.com> >> , Guillaume Quintard writes: >> >>>All commands should have a JSON option, I reckon. >> >> Somebody should write more code for it then, I reckon :-) > >Maybe we should do that the other way around? Have all CLI commands >reply with a JSON data structure, and CLI consumers like varnishadm, >varnishtest or varnishd -d be able to output it in plain text (with >this code centralized in libvarnish and exposed in libvarnishapi).
I thought about that, but didn't move on it, as I didn't want to write all the code myself ;-) -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 p...@freebsd.org | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. _______________________________________________ varnish-dev mailing list varnish-dev@varnish-cache.org https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev