Commit Graph

15 Commits (b0cda12d1c438940ae6e8895f84915d138953569)

Author SHA1 Message Date
Elie b3986d9921
feat: enabled colors when driftctl is piped in snyk CLI 2022-03-09 10:31:00 +01:00
Craig Furman 959e489bd4 Disambiguate between drift and error exit codes
`driftctl scan` exits with zero only when there is no detected drift.
Prior to this commit, it exited with 1 when there was a non-panic error,
and also when there was detected drift. This makes error handling in
scripts more awkward than it needs to be.

This commit changes the exit code to 2 whenever there are errors during
a scan, whether that error is from a panic or not, leaving 1 as the exit
code used solely for when drift is detected.

Related: https://github.com/snyk/driftctl/issues/1350
2022-02-17 17:39:35 +00:00
Karni Wolf 6f44cf1b0a
chore: rm redundant space 2022-01-30 11:50:20 +02:00
Elie 1cdccb0be0
Move to @snyk 2021-12-06 14:29:39 +01:00
Elie c460a9e97a
Add a global switch to disable third party 2021-11-29 13:59:49 +01:00
sundowndev 04f0efa709 fix: sentry report message 2021-04-20 16:00:39 +02:00
Martin Guibert f31a8a8395 Use printer to not break output isolation
added pinter interface to print info
json output use void printer is the path output it stdout
2021-03-15 12:03:35 +01:00
Elie 8bf44f9462
Merge branch 'main' into plugin_log_improvment 2021-02-11 14:55:00 +01:00
Elie 31a3cf52d1
Add new logger for terraform plugin 2021-02-10 15:04:07 +01:00
Elie ca7694084e
ignore usage errors from sentry capture 2021-02-09 22:19:24 +01:00
Elie c4c5499cb6
Return exit code 1 when infrastructure not in sync 2021-01-28 14:34:21 +01:00
Elie 12db6eeb40
Merge branch 'main' into add_crash_reporting 2021-01-05 15:30:31 +01:00
Elie efb5fddf5a
Add sentry error reporting 2021-01-05 15:19:08 +01:00
Elie e3e49ccae3
Fix missing newline in version check 2021-01-05 11:12:46 +01:00
Elie ff72de8e77
🍾 Initial release
Co-authored-by: William BEUIL <william.beuil@cloudskiff.com>
Co-authored-by: Martin GUIBERT <martin@cloudskiff.com>
2020-12-09 16:35:26 +01:00