Skip to content

Commit

Permalink
Merge pull request #619 from snyk/chore/add-exit-statuses-to-cli-help
Browse files Browse the repository at this point in the history
chore: add exit statuses to cli help text
  • Loading branch information
dkontorovskyy authored Jul 2, 2019
2 parents 6cd86de + 7090956 commit 22e1423
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions help/help.txt
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,12 @@ Examples:
$ snyk test --docker ubuntu:18.04 --org=my-team
$ snyk test --docker app:latest --file=Dockerfile --policy-path=.snyk

Possible exit statuses and their meaning:

- 0: success, no vulns found
- 1: action_needed, vulns found
- 2: failure, try to re-run command

Pro tip: use `snyk test` in your test scripts, if a vulnerability is
found, the process will exit with a non-zero exit code.

Expand Down

0 comments on commit 22e1423

Please sign in to comment.