[x] upgraded DeepOriginException to pretty print errors, including suggestions on how to fix it
[x] deeporigin config can now show, save and load configs.
[x] refactored config.get_value() to only work with one file location, because having more than one was needlessly complex and was unused.
[x] slightly improved coverage (will improve after switching to low-level generated code)
examples/screenshots
❯ deeporigin config load prod
✔︎ Configuration loaded from /Users/srinivas/.deeporigin/prod.yml
pretty errors:
❯ deeporigin data list
╭──────────────────────────────────────────────────────────────────────╮
│ Invalid configuration │
├──────────────────────────────────────────────────────────────────────┤
│ The Deep Origin CLI and python client requires a valid configuration │
│ file. This field is not valid: organization_id: must be a string │
├──────────────────────────────────────────────────────────────────────┤
│ To fix, run `deeporigin config set organization_id <value>` │
╰──────────────────────────────────────────────────────────────────────╯
changes
deeporigin config
can now show, save and load configs.examples/screenshots
pretty errors: