Skip to content

Commit

Permalink
Merge pull request #179 from michaeltlombardi/gh-178/main/exit-codes
Browse files Browse the repository at this point in the history
(GH-178) Document `dsc` exit codes
  • Loading branch information
SteveL-MSFT authored Sep 1, 2023
2 parents 6dc3871 + d115b00 commit 998d936
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/reference/cli/dsc.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,21 @@ Type: Boolean
Mandatory: false
```
## Exit Codes
The `dsc` command uses semantic exit codes. Each exit code represents a different result for the
execution of the command.

| Exit Code | Meaning |
| :-------: | :------------------------------------------------------------------------------------------------------ |
| `0` | The command executed successfully without any errors. |
| `1` | The command failed because it received invalid arguments. |
| `2` | The command failed because a resource raised an error. |
| `3` | The command failed because a value couldn't be serialized to or deserialized from JSON. |
| `4` | The command failed because input for the command wasn't valid YAML or JSON. |
| `5` | The command failed because a resource definition or instance value was invalid against its JSON schema. |
| `6` | The command was cancelled by a <kbd>Ctrl</kbd>+<kbd>C</kbd> interruption. |

[01]: config/command.md
[02]: resource/command.md
[03]: schema/command.md

0 comments on commit 998d936

Please sign in to comment.