feat: allow directory to path mapping for better mono repositories
Description 📣
This change adds a new parameter to .infisical.json that allows the user to turn on directoryFromConfigMapping: true to allow the --path CLI argument to be auto confingured with the relative path from where infisical was executed from the .infisical.json config.
The default value is false which makes this behaviour backwards compatible.
Related #243
Type ✨
- [ ] Bug fix
- [x] New feature
- [ ] Breaking change
- [ ] Documentation
Tests 🛠️
I couldn't see any relevant tests to add the new use-case to. So here's some manual testing:
https://asciinema.org/a/41jXyufl6fzYsKwnWd7ImTMYq
- [x] I have read the contributing guide, agreed and acknowledged the code of conduct. 📝
I'd really love some feedback on this, please 😄
cc @maidul98 @vmatsiiako
Please let me know if we can ever revisit this, it is an important monorepository use-case.
@maidul98 @vmatsiiako