gen

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: MIT Imports: 11 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 {
	Out       string   `arg:"" help:"Output directory for generated files."`
	Export    string   `help:"Export function name (required if multiple exports exist)." short:"e"`
	Flavor    string   `help:"Output flavor (e.g., zod)." short:"f"`
	Discovery bool     `help:"Generate discovery.json." short:"d"`
	NoConfig  bool     `help:"Ignore config function."`
	Package   string   `help:"Package to scan (default: current directory)." short:"p" default:"."`
	Check     bool     `help:"Check if generated files are up-to-date (exit 1 if stale)." short:"c"`
	Types     []string `help:"Generate types without a tygor app (e.g., -t ErrorCode -t github.com/foo/bar.MyType)." short:"t" name:"type"`
}

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