Comment

Comment by liambigelow

Looks nice! I like the approach.

My holy grail will still be landing on a good multi-layer configuration setup for Rust CLIs. Ideally CLI flags merged over top of environment variables merged over top of configuration files.

Twelf [0] was close in unifying things, but I had some friction. Lately I've been using Schematic [1] to handle the environment + config layers, and then just a manual implementation of Clap arguments layered on top.

[0] https://github.com/bnjjj/twelf.

[1] https://github.com/moonrepo/schematic

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton