template

package
v0.1.0-rc.49 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

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.

func (*Cmd) Run

func (c *Cmd) Run() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL