Module: Domainic::Command::Result::STATUS
- Defined in:
- lib/domainic/command/result/status.rb
Overview
Defines status codes for command execution results. These codes follow Unix exit code conventions, making them suitable for CLI applications while remaining useful for other contexts.
The status codes are specifically chosen to provide meaningful feedback about where in the command lifecycle a failure occurred:
- 0 (SUCCESS) - The command completed successfully
- 1 (FAILED_AT_RUNTIME) - The command failed during execution
- 2 (FAILED_AT_INPUT) - The command failed during input validation
- 3 (FAILED_AT_OUTPUT) - The command failed during output validation
Constant Summary collapse
- SUCCESS =
Indicates successful command execution
0- FAILED_AT_RUNTIME =
Indicates a failure during command execution
1- FAILED_AT_INPUT =
Indicates a failure during input validation
2- FAILED_AT_OUTPUT =
Indicates a failure during output validation
3