infisical icon indicating copy to clipboard operation
infisical copied to clipboard

feat: allow directory to path mapping for better mono repositories

Open rawkode opened this issue 1 year ago • 1 comments

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


rawkode avatar Jan 25 '24 16:01 rawkode

I'd really love some feedback on this, please 😄

cc @maidul98 @vmatsiiako

rawkode avatar Mar 07 '24 17:03 rawkode

Please let me know if we can ever revisit this, it is an important monorepository use-case.

@maidul98 @vmatsiiako

rawkode avatar Jul 05 '24 08:07 rawkode