Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

gquintard
Copy link
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
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.

bin/varnishd/mgt/mgt_param.c Show resolved Hide resolved
bin/varnishd/mgt/mgt_main.c Show resolved Hide resolved
@dridi
Copy link
Member

dridi commented Aug 20, 2025

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

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.