zrok icon indicating copy to clipboard operation
zrok copied to clipboard

show all config settings

Open dharrigan opened this issue 1 year ago • 3 comments

Hi,

Using zrok 0.4.0.

Presently, it's possible to get, set and unset config values that apply to zrok using

zrok config get/set/unset

Would it be possible to show all presently configured options, perhaps a command option like:

zrok config get all

(slightly modelled on zfs get all).

Thank you for the consideration.

-=david=-

dharrigan avatar Jul 06 '23 15:07 dharrigan

That's one of the purposes of zrok status. See the Config: section of its output.

michaelquigley avatar Jul 06 '23 15:07 michaelquigley

Ah, okay, I see it, although perhaps having the same ability for zrok config would keep it logically together? I wouldn't have expected to see config details under status tbh. Just a thought, feel free to throw the keyboard at me :-)

dharrigan avatar Jul 06 '23 16:07 dharrigan

I don't think you're off. I think the CLI will probably evolve as the configuration infrastructure evolves.

I'm linking this to #224 for future reference.

michaelquigley avatar Jul 06 '23 16:07 michaelquigley