Skip to content
This repository was archived by the owner on Feb 16, 2026. It is now read-only.

-x json parameter#4378

Open
gquintard wants to merge 1 commit intovarnishcache:masterfrom
gquintard:x_json_parameter
Open

-x json parameter#4378
gquintard wants to merge 1 commit intovarnishcache:masterfrom
gquintard:x_json_parameter

Conversation

@gquintard
Copy link
Copy Markdown
Member

@gquintard gquintard commented Aug 13, 2025

I've been thinking that it would be pretty nice to have shell completion for varnishd, but the parameter part is a bit unwieldy because to discover all the parameters, one would need to parse the varnishd -x parameter output, which isn't fun.

So, I brute-forced a -x parameter-json implementation to gauge interest in implementing this.

If we do want to do this, I'm make sure we have tests before we merge, but the actual completion scripts can/should be worried about later

Copy link
Copy Markdown
Member

@dridi dridi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We now have an alternative to the VJSN API and hand-rolled JSON, could you please give it a try?

It's used in several places, and vbor.h tries to describe how the APIs work. Having someone other than @daghf (who reviewed it) giving it a try would be a good benchmark for its usability.

If the docs in vbor.h and examples from other places are not enough, then please complain in my general direction.

@dridi
Copy link
Copy Markdown
Member

dridi commented Aug 20, 2025

Never mind my comment, I was certain this was a change you wanted to make in varnish enterprise.

@gquintard
Copy link
Copy Markdown
Member Author

bump

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants