Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: add --non-zero-exit-code flag to diff command #98

Closed
hbagdi opened this issue Nov 9, 2019 · 0 comments · Fixed by #102
Closed

feature: add --non-zero-exit-code flag to diff command #98

hbagdi opened this issue Nov 9, 2019 · 0 comments · Fixed by #102
Assignees
Labels
feature New feature or request
Milestone

Comments

@hbagdi
Copy link
Member

hbagdi commented Nov 9, 2019

When --non-zero-exit-code flag is set to true:

  • If no diff is present, exit code should be 0
  • If an error occurred, then 1
  • If diff is present, exit code should be 2
@hbagdi hbagdi added the feature New feature or request label Nov 9, 2019
@hbagdi hbagdi added this to the v0.7.0 milestone Nov 9, 2019
@hbagdi hbagdi self-assigned this Nov 9, 2019
hbagdi added a commit that referenced this issue Nov 9, 2019
This makes it easy to integrate decK into a CI pipeline.
A script can easily determine if there is a diff present by examining
the exit code of decK.

Fix #98
hbagdi added a commit that referenced this issue Nov 9, 2019
This makes it easy to integrate decK into a CI pipeline.
A script can easily determine if there is a diff present by examining
the exit code of decK.

Fix #98
rainest pushed a commit that referenced this issue Apr 21, 2021
This makes it easy to integrate decK into a CI pipeline.
A script can easily determine if there is a diff present by examining
the exit code of decK.

Fix #98
AntoineJac pushed a commit that referenced this issue Jan 23, 2024
This makes it easy to integrate decK into a CI pipeline.
A script can easily determine if there is a diff present by examining
the exit code of decK.

Fix #98
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant