Commit 39c0c54
DevForge Engineer
feat(cli): add --exit-on-destroy and --threshold flags for CI/CD gating
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)1 parent cb02dc4 commit 39c0c54
14 files changed
Lines changed: 100 additions & 12 deletions
File tree
- src
- deploydiff.egg-info
- deploydiff
- __pycache__
- tests
- __pycache__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
72 | 79 | | |
73 | 80 | | |
74 | 81 | | |
| |||
154 | 161 | | |
155 | 162 | | |
156 | 163 | | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
0 commit comments