Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cmd ¶
type Cmd struct {
Surface string `` /* 163-byte string literal not displayed */
Out string `name:"out" short:"o" placeholder:"FILE" help:"Write to FILE instead of core.Stdout (refuses to overwrite an existing file)."`
List bool `name:"list" help:"List the available surfaces and exit."`
Project string `name:"project" default:"myapp" placeholder:"NAME" help:"Project package-prefix placeholder in the rendered proto."`
Domain string `name:"domain" default:"example" placeholder:"NAME" help:"Domain-name placeholder in the rendered proto."`
Module string `name:"module" default:"example" placeholder:"NAME" help:"Module-name placeholder in the rendered proto."`
}
Cmd prints a commented example .proto for one w17 surface — the "show me how to annotate X" helper. It reuses the same scaffold bodies as `domain/module add --with-example` (single source of truth) and adds teaching sentinels for the rpc/mcp/cli transports the example flow doesn't scaffold. Output goes to core.Stdout (copy-paste) or, with --out, to a file.
Click to show internal directories.
Click to hide internal directories.