Skip to content

Handle missing config file gracefully#113

Open
nguyenduchuyhd wants to merge 1 commit into
ApexOpsStudio:mainfrom
nguyenduchuyhd:codex/graceful-missing-config
Open

Handle missing config file gracefully#113
nguyenduchuyhd wants to merge 1 commit into
ApexOpsStudio:mainfrom
nguyenduchuyhd:codex/graceful-missing-config

Conversation

@nguyenduchuyhd

Copy link
Copy Markdown

Closes #2

Summary

  • Creates a sensible default config when ~/.config/task-cli/config.yaml is missing.
  • Loads the generated config instead of crashing with FileNotFoundError.
  • Adds regression coverage and documents the default behavior.

Verification

  • python -m pytest test_task.py
  • Manual smoke with a temporary home directory: python task.py list

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