Skip to content

feat(cli): wire puff check to compiler - #21

Merged
ofabiodev merged 2 commits into
mainfrom
wire-puff-check
Aug 11, 2026
Merged

feat(cli): wire puff check to compiler#21
ofabiodev merged 2 commits into
mainfrom
wire-puff-check

Conversation

@ofabiodev

Copy link
Copy Markdown
Contributor

Summary

Wire puff check to the compiler pipeline so Puff projects can be validated directly from the CLI.

Changes

  • Load and check the nearest Puff project without generating output files
  • Print human-readable diagnostics to stderr and support documented JSON output with --json
  • Add CLI coverage for valid, invalid, nested, missing-config, JSON, and unexpected-argument scenarios

Testing

make check
cd src
go test -count=1 ./...
go test -count=20 ./internal/cli
go build ./...

@ofabiodev ofabiodev added kind/feature New behavior or capability. kind/test Tests, fixtures, golden files, or test infrastructure. area/sdk Public SDK for external Puff libraries. puff/diagnostics Error messages, hints, notes, and source spans. labels Aug 11, 2026
@ofabiodev
ofabiodev merged commit eac343e into main Aug 11, 2026
2 checks passed
@ofabiodev
ofabiodev deleted the wire-puff-check branch August 11, 2026 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/sdk Public SDK for external Puff libraries. kind/feature New behavior or capability. kind/test Tests, fixtures, golden files, or test infrastructure. puff/diagnostics Error messages, hints, notes, and source spans.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant