open-sauced / pizza-cli

A CLI for all things OpenSauced
MIT License
39 stars 11 forks source link

fix: Config path prefers local dir vs. home dir #184

Closed jpmcb closed 1 month ago

jpmcb commented 1 month ago

Description

Fixes problems where the local config path wasn't being used. Now, it prefers the local path over the one possibly present at home:

❯ ./build/pizza generate codeowners . -l debug
Built logger with log level: 4
Loaded config from: /Users/jpmcb/workspace/opensauced/pizza-cli/.sauced.yaml

Related Tickets & Documents

Closes: https://github.com/open-sauced/pizza-cli/issues/180

Steps to QA

  1. Tests still pass
  2. Build locally with just build and run with a repo that has a .sauced.yaml
  3. Run with a repo that does not have a local .saucedyaml but where you do have a ~/.sauced.yaml

Tier (staff will fill in)