Coverage for src / sql_tool / core / exit_codes.py: 100%

10 statements  

« prev     ^ index     » next       coverage.py v7.13.4, created at 2026-02-14 14:55 -0500

1"""Standard exit codes for SQL Tool. 

2 

3Exit codes follow Unix conventions and CODE-PY-CLI-001 pattern. 

4""" 

5 

6from enum import IntEnum 

7 

8 

9class ExitCode(IntEnum): 

10 """Exit codes for SQL Tool commands.""" 

11 

12 SUCCESS = 0 

13 GENERAL_ERROR = 1 

14 USAGE_ERROR = 2 

15 INPUT_ERROR = 3 

16 OUTPUT_ERROR = 4 

17 NETWORK_ERROR = 5 

18 TIMEOUT = 6 

19 CONFIG_ERROR = 7