Skip to content

Handle missing task CLI config#96

Open
Wheezily wants to merge 1 commit into
ApexOpsStudio:mainfrom
Wheezily:bounty/missing-config-defaults
Open

Handle missing task CLI config#96
Wheezily wants to merge 1 commit into
ApexOpsStudio:mainfrom
Wheezily:bounty/missing-config-defaults

Conversation

@Wheezily
Copy link
Copy Markdown

Fixes #2.

Summary:

  • Create a default task-cli config when ~/.config/task-cli/config.yaml is missing
  • Preserve and return existing config contents when a config file already exists
  • Add regression tests for missing and existing config files

Validation:

  • python -m pytest test_task.py (4 passed)
  • python -m compileall task.py commands test_task.py
  • Manual CLI check with a temporary HOME: python task.py list creates .config/task-cli/config.yaml and exits normally

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