Skip to content

feat(cli): add --fail-on-missing flag to diff and diff-files commands#20

Merged
Coding-Dev-Tools merged 1 commit into
masterfrom
Openclaw/envault/add-fail-on-missing-flag
May 18, 2026
Merged

feat(cli): add --fail-on-missing flag to diff and diff-files commands#20
Coding-Dev-Tools merged 1 commit into
masterfrom
Openclaw/envault/add-fail-on-missing-flag

Conversation

@Coding-Dev-Tools

Copy link
Copy Markdown
Owner

Add the documented --fail-on-missing option to both diff and diff-files
commands, making them exit with code 1 when the source environment has keys
that do not exist in the target. This enables CI/CD pipeline usage as
documented in the README.

Also adds CLI integration tests covering:

  • diff identical files (exit 0)
  • diff different files (exit 0, backward compatible)
  • diff --fail-on-missing when keys are missing (exit 1)
  • diff --fail-on-missing when no keys missing (exit 0)
  • diff-files --fail-on-missing equivalent scenarios
  • CLI --help output correctness
  • CLI version display

Add the documented --fail-on-missing option to both diff and diff-files
commands, making them exit with code 1 when the source environment has keys
that do not exist in the target. This enables CI/CD pipeline usage as
documented in the README.

Also adds CLI integration tests covering:
- diff identical files (exit 0)
- diff different files (exit 0, backward compatible)
- diff --fail-on-missing when keys are missing (exit 1)
- diff --fail-on-missing when no keys missing (exit 0)
- diff-files --fail-on-missing equivalent scenarios
- CLI --help output correctness
- CLI version display
@Coding-Dev-Tools Coding-Dev-Tools merged commit 98c63b5 into master May 18, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant