feat: new export output format for dotenv eval's#281
Conversation
|
💬 Discussion in Slack: #pr-review-cli-281-feat-new-export-output-format-for-dotenv-eval-s Posted by Review Police — reviews, comments, new commits, and CI failures will stream into this channel. |
|
| Filename | Overview |
|---|---|
| packages/cmd/export.go | Adds dotenv-eval format constant, routing, default filename/extension, and the formatAsDotEnvEval/posixShellQuote helpers; logic is correct but the posixShellQuote doc comment mis-states the escape sequence and the key is not validated before interpolation into the eval-safe output. |
| packages/cmd/export_test.go | Adds well-structured table-driven tests for both formatAsDotEnvEval and posixShellQuote, covering edge cases (empty, multiline, embedded quotes, metacharacters); all assertions are correct. |
Reviews (1): Last reviewed commit: "feat: new export output format for doten..." | Re-trigger Greptile
Document the new --format=dotenv-eval output added in Infisical/cli#281, which emits POSIX shell-quoted `export KEY='value'` statements safe to load via eval/source. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011qigV1v6yjb9Rh5JWXbsyD
Description 📣
Added new
dotenv-evalexport format with POSIX shell-quoted values, safe for eval/source.Type ✨