Documentation
¶
Overview ¶
Package codegen wires `w17ctl codegen` — a thin kong adapter over the codegen orchestration in internal/codegen.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PreGenerate func(console, root string) error
PreGenerate is the update check run before generating — `w17ctl update`'s (cmd/update.PreGenerate), wired by the root command. A seam because the update command reaches the plugin commands, which already import this one.
Functions ¶
This section is empty.
Types ¶
type Cmd ¶
type Cmd struct {
Console string `` /* 214-byte string literal not displayed */
Force bool `name:"force" help:"Overwrite existing files at the target paths. Default: error if a target file already exists."`
Gofmt string `` /* 413-byte string literal not displayed */
AdoptGitignore bool `` /* 265-byte string literal not displayed */
NoUpdateCheck bool `` /* 187-byte string literal not displayed */
}
Cmd generates ALL derived code: the Storage-layer Go gRPC handlers + the ACL / eventbus / MCP bundles + the FE clients + deploy artifacts. It walks parent dirs to the project root, reads w17/lock.yaml, uploads every .proto under proto/ to the console, and writes the returned files under <root>/<gen_dir>/.
Click to show internal directories.
Click to hide internal directories.