Skip to content

fix: handle missing config file gracefully#117

Open
NONONO3199 wants to merge 1 commit into
ApexOpsStudio:mainfrom
NONONO3199:fix/config-missing-crash
Open

fix: handle missing config file gracefully#117
NONONO3199 wants to merge 1 commit into
ApexOpsStudio:mainfrom
NONONO3199:fix/config-missing-crash

Conversation

@NONONO3199

Copy link
Copy Markdown

Fixes #2

Problem

The application crashes with FileNotFoundError when ~/.config/task-cli/config.yaml doesn't exist.

Solution

  • Auto-create default config file when missing
  • Add DEFAULT_CONFIG constant with sensible defaults
  • Add tests for missing config and existing config scenarios
  • Update README with configuration documentation

Testing

All tests pass including new tests for config handling.

- Auto-create default config at ~/.config/task-cli/config.yaml when missing
- Add DEFAULT_CONFIG constant with sensible defaults
- Add tests for missing config and existing config scenarios
- Update README with configuration documentation

Closes ApexOpsStudio#2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix: Crash when config file missing

1 participant