Skip to content

feat(cli): add --exit-on-destroy and --threshold flags for CI/CD gating#8

Merged
Coding-Dev-Tools merged 1 commit into
mainfrom
Openclaw/deploydiff/ci-cd-gating-flags
May 18, 2026
Merged

feat(cli): add --exit-on-destroy and --threshold flags for CI/CD gating#8
Coding-Dev-Tools merged 1 commit into
mainfrom
Openclaw/deploydiff/ci-cd-gating-flags

Conversation

@Coding-Dev-Tools
Copy link
Copy Markdown
Owner

Adds two CLI flags documented in the README CI/CD section but missing from
the actual CLI implementation:

  • preview --exit-on-destroy: Exit with code 1 when the plan contains
    destructive changes (deletes, replaces). Enables CI gating on destuctive
    operations.
  • cost --threshold : Exit with code 1 when the total monthly cost
    delta exceeds the specified value. Enables cost-aware CI/CD pipelines.

Both flags align with the existing README documentation and maintain full
backward compatibility (default behavior unchanged).

Tests: 53/53 passed (49 existing + 4 new for the new flags)

Adds two CLI flags documented in the README CI/CD section but missing from
the actual CLI implementation:

- preview --exit-on-destroy: Exit with code 1 when the plan contains
  destructive changes (deletes, replaces). Enables CI gating on destuctive
  operations.
- cost --threshold <float>: Exit with code 1 when the total monthly cost
  delta exceeds the specified value. Enables cost-aware CI/CD pipelines.

Both flags align with the existing README documentation and maintain full
backward compatibility (default behavior unchanged).

Tests: 53/53 passed (49 existing + 4 new for the new flags)
@Coding-Dev-Tools Coding-Dev-Tools merged commit 5d74c41 into main 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