You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement standardized exit codes for the CLI to provide clear error reporting and better integration with scripts and automation tools. Define and document exit codes for different error scenarios to improve user experience and enable proper error handling in automated workflows.
Implemented in PR #26 (branch feature/issue-5-standardize-exit-codes). Exit codes are defined in email_processor.exit_codes.ExitCode (IntEnum).
Tasks
Define exit code constants
Module email_processor/exit_codes.py with enum ExitCode:
Description
Implement standardized exit codes for the CLI to provide clear error reporting and better integration with scripts and automation tools. Define and document exit codes for different error scenarios to improve user experience and enable proper error handling in automated workflows.
Implemented in PR #26 (branch
feature/issue-5-standardize-exit-codes). Exit codes are defined inemail_processor.exit_codes.ExitCode(IntEnum).Tasks
email_processor/exit_codes.pywith enumExitCode:SUCCESS = 0,PROCESSING_ERROR = 1,VALIDATION_FAILED = 2,FILE_NOT_FOUND = 3,UNSUPPORTED_FORMAT = 4,WARNINGS_AS_ERRORS = 5,CONFIG_ERROR = 6__main__returnExitCodevaluesStandard Exit Codes
Acceptance Criteria