open-sauced / pizza-cli

A CLI for all things OpenSauced
MIT License
31 stars 9 forks source link

Bug: local config should always take precedence #180

Closed jpmcb closed 6 days ago

jpmcb commented 6 days ago

Describe the bug

Currently, the top level config is always preferred:

❯ ./build/pizza generate codeowners .
Config path loading from -c flag ~/.sauced.yaml

This should be flipped around to where a local .sauced.yaml should be preferred. Then, as a fallback, we should use the ~/.sauced.yaml

Steps to reproduce

  1. Have a ~/.sauced.yaml
  2. Run pizza generate codeowners . in a directory with an existing ~/.sauced.yaml