feat(cli): add batch command for converting multiple inputs (#38) #49

Merged
warkanum merged 2 commits from issue-38-batch-processing into master 2026-10-03 18:14:30 +00:00
Member

Closes #38.

Adds relspec batch: converts each input (paths/globs via --input) independently into --to-dir, one output per input (unlike convert --from-list, which merges). Flags: --keep-going, --dry-run, plus the convert options (--package, --schema, --flatten-schema, --types, ...). Exits non-zero if any input fails. Distinct from relspec job run named workflows.

Verification:

  • gofmt -l cmd/: clean
  • go vet ./cmd/...: clean
  • go test ./cmd/...: ok
  • go test -run Batch -v ./cmd/relspec: 5 tests PASS

Caveats: only ./cmd was tested (not the full suite); live-DB sources (pgsql/mssql) are not supported in batch mode; --extra-fields not exposed.

🤖 Generated with Claude Code

Closes #38. Adds `relspec batch`: converts each input (paths/globs via --input) independently into --to-dir, one output per input (unlike convert --from-list, which merges). Flags: --keep-going, --dry-run, plus the convert options (--package, --schema, --flatten-schema, --types, ...). Exits non-zero if any input fails. Distinct from `relspec job run` named workflows. Verification: - gofmt -l cmd/: clean - go vet ./cmd/...: clean - go test ./cmd/...: ok - go test -run Batch -v ./cmd/relspec: 5 tests PASS Caveats: only ./cmd was tested (not the full suite); live-DB sources (pgsql/mssql) are not supported in batch mode; --extra-fields not exposed. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
sgcommand added 1 commit 2026-10-03 09:29:03 +00:00
warkanum added 1 commit 2026-10-03 18:13:26 +00:00
warkanum merged commit 66b90ca54b into master 2026-10-03 18:14:30 +00:00
Sign in to join this conversation.
No Reviewers
No labels
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: wdevs/relspecgo#49