Zonfig - interactive TUI config based on ZON

Thought it may interest some people here: GitHub repo
While working on another zig project, I was using the Linux kernel’s kconfig tooling and thought it would be nice if I could drop all dependencies on C tooling, so I wrote my own configuration tool! This is targeted at larger, more complex projects with many configuration options, much like kconfig, supporting things like conditional dependencies, submenus, etc. You define a schema in ZON and it generates a Zig module that is imported into the code which can then branch at compile time on it.

demo

I wouldn’t say I’m quite happy with the code quality yet, but hey it works :^)
For Zig 0.16+

3 Likes

I think https://asciinema.org would be a better alternative to the gif, especially because of the small font size and fast switching.

I did use asciinema to generate it, but I’m not sure how asciinema would be better here? GIF is way more portable

I just think having the link to asciinema or one of the embeds (html or markdown) too would be better (than only having the gif), because with those you can full screen it, I guess I also can right click on the gif and open in new tab (but that only occurred to me now and is not so obvious).

Also the non gif versions allow a wider range of screen reading/assistive technologies.

https://asciinema.org/a/0oejNmMFClqS2XRN
Alright, here is an asciinema link that showcases a bit more TUI functionality

1 Like

Thanks, I also like that that allows me to step through it with ,/. at my own pace.