Skip to content

feat: add --fixture flag to seed command#22

Closed
zozo123 wants to merge 3 commits intomainfrom
feat/cli-enhancements
Closed

feat: add --fixture flag to seed command#22
zozo123 wants to merge 3 commits intomainfrom
feat/cli-enhancements

Conversation

@zozo123
Copy link
Contributor

@zozo123 zozo123 commented Feb 16, 2026

Summary

  • Add --fixture flag to doubleagent seed to resolve fixture files from the service's fixtures/ directory
  • Make positional file argument optional (either --fixture or explicit file path required)
  • Reset command unchanged — no --hard flag

Examples:

doubleagent seed github --fixture startup    # Resolves to services/github/fixtures/startup.yaml
doubleagent seed github path/to/data.yaml   # Explicit file (existing behavior)

Test plan

  • cargo check compiles cleanly
  • doubleagent seed github --fixture startup resolves path correctly
  • doubleagent seed github data.yaml still works (positional file path)
  • doubleagent seed github (no file or fixture) shows helpful error message

🤖 Generated with Claude Code

- Reset: add --hard flag to clear baseline snapshot (not just overlay)
- Seed: add --fixture flag to resolve fixture files from the service's
  fixtures/ directory (e.g. `doubleagent seed github --fixture startup`)
- Seed: make positional file argument optional (either --fixture or
  file path required)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@zozo123 zozo123 requested a review from tomerezer February 16, 2026 14:38
Add --fixture flag to resolve fixture files from the service's
fixtures/ directory (e.g. `doubleagent seed github --fixture startup`
resolves to services/github/fixtures/startup.yaml).

Make positional file argument optional — either --fixture or explicit
file path is required.

Reset command unchanged (no --hard flag).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@zozo123 zozo123 changed the title feat: add --hard reset and --fixture seed to CLI feat: add --fixture flag to seed command Feb 16, 2026
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
zozo123 added a commit that referenced this pull request Feb 23, 2026
Resolve conflicts between the snapshot and fixture features:
- --snapshot flag seeds from a snapshot profile
- --fixture flag resolves fixtures from service fixtures/ dir
- Mutual exclusion: only one of --snapshot, --fixture, or file path

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@zozo123
Copy link
Contributor Author

zozo123 commented Feb 23, 2026

Superseded by #33 (consolidated PR)

@zozo123 zozo123 closed this Feb 23, 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