teller
teller copied to clipboard
Add process_env provider
Related Issues
https://github.com/tellerops/teller/issues/116
Description
Add process_env provider. Load the environment variables from the parent process as needed.
Example Config
providers:
process_env:
env_sync:
env:
ETC_DSN:
Checklist
- [ ] Tests
- [x] Documentation
- [x] Linting
Hey @kevbook, Just summarize the open issues in this PR:
- remove
env_syncfrom the config example meaning by default theenv_syncwill not generate when runningteller new. butpkg/providers/process_env.gokeep theGetMappingfunction to supportenv_syncin some usecases - Return errors (not nil) in places that we not implement the logic (see my change in suggestions), you also need to import
fmtsee your CI results - Add process_env_test.go
thanks for your help
I've updated the code, wizard_template and the README with usage.
I don't really write go, so I am not sure how tests can be written. But I can take a stab at process_env_test.go if you'd like to review the code.