feat(job): support templ command #25

Merged
warkanum merged 1 commits from issue-20-templ-job-command into master 2026-09-08 11:04:33 +00:00
Member

Summary

Implements the explicitly requested templ command for declarative RelSpec job files.

  • Adds templ to the closed job-command allow-list.
  • Supports template path, mode, filename pattern, schema inputs, and safe output validation.
  • Reuses the existing template writer and preflight path checks.
  • Adds focused database-mode execution coverage.
  • Updates the job-file contract documentation.

Verification

  • gofmt -l cmd/relspec pkg/jobs — clean
  • GOTMPDIR=/home/hermes/.tmp GOCACHE=/home/hermes/.cache/go go vet ./... — passed
  • GOTMPDIR=/home/hermes/.tmp GOCACHE=/home/hermes/.cache/go go build ./... — passed
  • GOTMPDIR=/home/hermes/.tmp GOCACHE=/home/hermes/.cache/go go test ./... — passed
  • GOTMPDIR=/home/hermes/.tmp GOCACHE=/home/hermes/.cache/go go test -race ./pkg/jobs/... ./cmd/relspec/... — passed
  • git diff --check — passed

Refs #20

## Summary Implements the explicitly requested `templ` command for declarative RelSpec job files. - Adds `templ` to the closed job-command allow-list. - Supports template path, mode, filename pattern, schema inputs, and safe output validation. - Reuses the existing template writer and preflight path checks. - Adds focused database-mode execution coverage. - Updates the job-file contract documentation. ## Verification - `gofmt -l cmd/relspec pkg/jobs` — clean - `GOTMPDIR=/home/hermes/.tmp GOCACHE=/home/hermes/.cache/go go vet ./...` — passed - `GOTMPDIR=/home/hermes/.tmp GOCACHE=/home/hermes/.cache/go go build ./...` — passed - `GOTMPDIR=/home/hermes/.tmp GOCACHE=/home/hermes/.cache/go go test ./...` — passed - `GOTMPDIR=/home/hermes/.tmp GOCACHE=/home/hermes/.cache/go go test -race ./pkg/jobs/... ./cmd/relspec/...` — passed - `git diff --check` — passed Refs #20
sgcommand added 1 commit 2026-09-08 04:20:53 +00:00
warkanum merged commit f968e3d4a6 into master 2026-09-08 11:04:33 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: wdevs/relspecgo#25