fix(default-env): read comments#248
Conversation
|
💬 Discussion in Slack: #pr-review-cli-248-fix-default-env-read-comments Posted by Review Police — reviews, comments, new commits, and CI failures will stream into this channel. |
|
| Filename | Overview |
|---|---|
| packages/util/secrets.go | Adds Comment: secret.SecretComment to three SingleEnvironmentVariable construction sites (service-token path, V3 access-token path, and imported-secrets injection) so the generate-example-env command can read DEFAULT values from secret comments |
Reviews (1): Last reviewed commit: "fix: read comments value" | Re-trigger Greptile
Description 📣
The previous implementation was not checking the env comments, which did not allowed the definition of default values.
Type ✨
Tests 🛠️
Connect into infisical using the CLI
Add a comment with
DEFAULT:FOOcheck that when you run
go run . secrets generate-example-envyou have an output with a default value.I have read the contributing guide, agreed and acknowledged the code of conduct. 📝