Skip to content

Comments

Fix: Create default config when missing instead of crashing#12

Open
Tianlin0725 wants to merge 1 commit intoApexOpsStudio:mainfrom
Tianlin0725:main
Open

Fix: Create default config when missing instead of crashing#12
Tianlin0725 wants to merge 1 commit intoApexOpsStudio:mainfrom
Tianlin0725:main

Conversation

@Tianlin0725
Copy link

Summary

Fixes the crash when config file is missing by creating a default config file automatically.

Changes

  • Added ensure_config_exists() function to create default config
  • Config file is now auto-created at ~/.config/task-cli/config.yaml
  • User sees helpful message instead of FileNotFoundError

Testing

  • Verified that the fix handles missing config gracefully

Claim

/claim #2

- Added ensure_config_exists() function to create default config
- Config file is now auto-created at ~/.config/task-cli/config.yaml
- User sees helpful message instead of FileNotFoundError

Fixes 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.

1 participant