Skip to content

Commit 39c0c54

Browse files
author
DevForge Engineer
committed
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

src/deploydiff.egg-info/PKG-INFO

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ Dynamic: license-file
3333
# DeployDiff CLI
3434

3535
[![GitHub stars](https://img.shields.io/github/stars/Coding-Dev-Tools/deploydiff?style=social)](https://github.com/Coding-Dev-Tools/deploydiff/stargazers)
36+
[![Awesome DevOps](https://img.shields.io/badge/Awesome_DevOps-Submitted-grey?logo=github)](https://github.com/wmariuss/awesome-devops)<!-- PR #433 -->
3637

3738
Preview infrastructure changes with human-readable diffs, cost impact estimation, and rollback commands — before you hit deploy.
3839

@@ -69,6 +70,12 @@ scoop bucket add Coding-Dev-Tools https://github.com/Coding-Dev-Tools/scoop-buck
6970
scoop install deploydiff
7071
```
7172

73+
**npm (Node.js wrapper):**
74+
```bash
75+
npm install -g deploydiff
76+
```
77+
Then run: `deploydiff --help`
78+
7279
## Usage
7380

7481
```bash
@@ -154,13 +161,3 @@ DeployDiff is one of eight tools in the Revenue Holdings suite. One license cove
154161
## License
155162

156163
MIT
157-
158-
159-
160-
## Install via npm
161-
162-
```bash
163-
npm install -g deploydiff
164-
```
165-
166-
Then run: `deploydiff --help`
-8 Bytes
Binary file not shown.
1.38 KB
Binary file not shown.
-40 Bytes
Binary file not shown.
-73 Bytes
Binary file not shown.
-47 Bytes
Binary file not shown.
-8 Bytes
Binary file not shown.
-15 Bytes
Binary file not shown.
-59 Bytes
Binary file not shown.
-79 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)