Show changed references in environment diffs
diff.go groups missing variables and identical references, but omits a variable present in both environments with different references. The existing test already uses DATABASE_URL with shop.db.dev and shop.db.prod without checking that difference in the output.
- Estimated size
- S · 2–4 hours
- Skills
- Go · CLI · YAML
Files and evidence
- YagoLagrottiBracco/envrune/internal/cli/diff.goTarget file ·
c2aa0d180786· L33–L69 - YagoLagrottiBracco/envrune/internal/cli/workspace_test.goTarget file ·
c2aa0d180786· L443–L469
Step-by-step acceptance criteria
- Extend the existing fixture to require DATABASE_URL and its source and destination references in a differences section.
- List variables present in both environments with different references in alphabetical order.
- Preserve current exit codes: different references with matching keys still return 0; missing keys still return 1.
- Run go test ./internal/cli; verify diff works with a locked vault and displays reference names only, never secret values.