-
Notifications
You must be signed in to change notification settings - Fork 1
refactor: move exit codes to shared package #15
Copy link
Copy link
Closed
Description
Summary
Create a shared exit code package for consistent error handling across both CLI tools.
Current State
- jtk has
internal/exitcode/exitcode.gowith well-defined exit codes - cfl uses
os.Exit(1)without structured exit codes
Proposed Changes
- Move
tools/jtk/internal/exitcode/toshared/exitcode/ - Update jtk imports to use shared package
- Update cfl to use shared exit codes instead of hardcoded values
Exit Codes
const (
Success = 0
GeneralError = 1
UsageError = 2
ConfigError = 3
APIError = 4
NotFoundError = 5
AuthError = 6
)Impact
Consistent exit codes enable better scripting and error handling for users of both tools.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels