Compile command

Contract

bus gx compile lowers .gx source into generated Go without rendering it.

Usage:

bus gx compile <file.gx> --output <file.go>

The command accepts one explicit .gx input file and one explicit output path. It exits 0 after writing canonical generated Go. It exits non-zero without writing output when source parsing, linting, or generation fails.

Module-local tests may call ./bin/bus-gx gx compile after make build, but user-facing commands go through the bus dispatcher.

Boundary

The compiler does not read data, runtime config, controllers, custom component registries, browser state, or host resources.