Skip to content

[iota] Add JSON output, safe config, and shared validators#103

Open
iota3-cell wants to merge 1 commit into
ApexOpsStudio:mainfrom
iota3-cell:iota-json-and-config-fixes
Open

[iota] Add JSON output, safe config, and shared validators#103
iota3-cell wants to merge 1 commit into
ApexOpsStudio:mainfrom
iota3-cell:iota-json-and-config-fixes

Conversation

@iota3-cell
Copy link
Copy Markdown

@iota3-cell iota3-cell commented May 15, 2026

Summary

  • Add --json support for add, list, and done.
  • Create a default config file when ~/.config/task-cli/config.yaml is missing instead of raising FileNotFoundError.
  • Add tests for JSON output and missing-config behavior.
  • Update README with JSON examples and default config behavior.

Refactor

  • Extract shared path helpers into utils/paths.py.
  • Extract validation helpers into utils/validation.py.
  • Remove duplicate validation/path helpers from command modules.

Verification

  • python3 -m pytest /tmp/ai-gitops-target/test_task.py
  • Manual CLI smoke test with temporary HOME for list --json, add --json, and done --json

/claim #1
/claim #2
/claim #3

@iota3-cell iota3-cell force-pushed the iota-json-and-config-fixes branch from c3f2b71 to 18a1a42 Compare May 15, 2026 17:58
@iota3-cell iota3-cell changed the title [iota] Add JSON output and handle missing config [iota] Add JSON output, safe config, and shared validators May 15, 2026
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