codegen

package
v0.1.0-rc.64 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

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>/.

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