psyinfra / onyo

text-based inventory system on top of git
ISC License
3 stars 5 forks source link

Design: `onyo` should be able to print the effective config #691

Open aqw opened 1 month ago

aqw commented 1 month ago

Onyo needs a way to be able to print the effective config.

aqw commented 2 weeks ago

After working on the docstrings for onyo config, it made me wonder about what git config is giving us.

Storing the config in git's format makes sense, and allows us to use a rich, well understood, hierarchical system.

But it made me wonder if config options should be exposed to set/get via an onyo.config namespace.

Using get on the entire space would provide the effective config.

onyo config would either stay as it currently is, or would be changed to provide more complete information (query all sources, show origin of settings).