Exit codes
| Code | Name | Meaning |
|---|---|---|
| 0 | ok | The command finished. With --fail-on, nothing matched. |
| 1 | error | The command failed: a read, a write, a child process or a check failed. |
| 2 | usage | Wrong usage: an unknown command or flag, a bad value or argument, an invalid config file, or a prompt with no terminal. |
| 3 | findings | A --fail-on gate matched. The report is still written. |
| 4 | auth | Credentials were missing or rejected for every source the command needed. |
| 130 | interrupted | Interrupted by Ctrl-C (SIGINT) or a cancelled context. |
When more than one applies, the first error decides the code. A --fail-on match (3) is reported after the report is written.
Per command
| Command | Exit codes |
|---|---|
| relgap audit | 0, 1, 2, 3, 4, 130 |
| relgap cache clear | 0, 1, 2, 130 |
| relgap cache info | 0, 1, 2, 130 |
| relgap cache prune | 0, 1, 2, 130 |
| relgap config init | 0, 1, 2, 130 |
| relgap config path | 0, 1, 2, 130 |
| relgap config show | 0, 1, 2, 130 |
| relgap config validate | 0, 1, 2, 130 |
| relgap digest | 0, 1, 2, 3, 4, 130 |
| relgap drift | 0, 1, 2, 3, 4, 130 |
| relgap mcp | 0, 1, 2, 130 |
| relgap notify | 0, 1, 2, 4, 130 |
| relgap outdated | 0, 1, 2, 3, 4, 130 |
| relgap pins | 0, 1, 2, 130 |
| relgap registry lint | 0, 1, 2, 130 |
| relgap registry test | 0, 1, 2, 4, 130 |
| relgap registry update | 0, 1, 2, 4, 130 |
| relgap resolve | 0, 1, 2, 130 |
| relgap version | 0, 1, 2, 130 |