Parent: #28
Depends on: #42 (Task 5.1), #38 (Task 3.3), #39 (Task 3.4)
Task
Update init and sync commands to send project identifiers in JobSpec when using API-key flow + --seren.
Files to Modify
src/commands/init.rs
src/commands/sync.rs
What to Change
When building JobSpec for remote submission:
- If using API-key flow (has
TargetState), send target_project_id, target_branch_id, target_databases, seren_api_key
- If using traditional mode, send
target_url as before
See docs/plans/api-key-flow-implementation.md Task 5.4 for full code.
How to Test
export SEREN_API_KEY=your_key
# Run init with remote execution
cargo run -- init --source "postgresql://localhost/test" --seren
# Should show interactive picker, then submit job with project identifiers
Commit Message
feat(init): Send project identifiers for remote API-key flow
Parent: #28
Depends on: #42 (Task 5.1), #38 (Task 3.3), #39 (Task 3.4)
Task
Update init and sync commands to send project identifiers in JobSpec when using API-key flow +
--seren.Files to Modify
src/commands/init.rssrc/commands/sync.rsWhat to Change
When building
JobSpecfor remote submission:TargetState), sendtarget_project_id,target_branch_id,target_databases,seren_api_keytarget_urlas beforeSee
docs/plans/api-key-flow-implementation.mdTask 5.4 for full code.How to Test
Commit Message
feat(init): Send project identifiers for remote API-key flow