ljharb / repo-report

CLI to list all repos a user has access to, and report on their configuration in aggregate.
MIT License
24 stars 11 forks source link

Rename config.json to defaults.json and add a user-defined config file #38

Closed thehanimo closed 2 years ago

thehanimo commented 3 years ago

All config values used inside should be a from the result of merging these two.

ljharb commented 2 years ago

I believe this may be the last major blocker to publishing this project.

thehanimo commented 2 years ago

Do we access the config file from the user's home directory? Should this be configurable? If so, how? Also, should we create a default (different from in-built defaults) config file on the first run or just keep checking for the existence of one in this path?

ljharb commented 2 years ago

By default, yes. It should be configurable using --config, but a default of (the XDG config directory + repo-report.json, $HOME/.repo-report.json) seems good to me.

The default one should be hardcoded in this repo, and the user’s config should always be merged with the default.