priv-kweihmann / oelint-adv

Advanced oelint
BSD 2-Clause "Simplified" License
54 stars 27 forks source link

[feature] XDG support #527

Closed Freed-Wu closed 6 months ago

Freed-Wu commented 6 months ago

You can define your own global or project wide defaults for all CLI parameters with an ini-style configuration file.

In the following order files are probed

file pointed to by environment variable OELINT_CONFIG
file .oelint.cfg in current work directory
file .oelint.cfg in your HOME directory

How about using https://github.com/platformdirs/platformdirs to get the config path?

priv-kweihmann commented 6 months ago

Nope, a strong binding to platformdirs is discouraged from my end. As this tool is designed for Linux only, I don't see much use in that library