app

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrOutputFilenameCollision indicates two proto files produce the same output filename.
	ErrOutputFilenameCollision = AppError("output filename collision")
	// ErrNameEmpty indicates an update_message or create_message annotation has an empty name.
	ErrNameEmpty = AppError("name must not be empty")
	// ErrInvalidName indicates an update_message or create_message annotation name is not a valid proto identifier.
	ErrInvalidName = AppError("not a valid proto identifier")
	// ErrNoProtoFiles indicates the input directory contains no .proto files.
	ErrNoProtoFiles = AppError("no .proto files found")
)

Functions

func Run

func Run(ctx context.Context, args []string) error

Run is the process entry used by the CLI main package for the default gen-dao action.

func RunGenProto

func RunGenProto(ctx context.Context, args []string) error

RunGenProto implements the gen-proto subcommand: scans the input directory, generates *.entity.proto / *.create.proto / *.update.proto from schema files (those carrying option (gcode.schema) = {};) into the same directory.

func RunGenTS added in v0.2.0

func RunGenTS(ctx context.Context, args []string) error

RunGenTS implements the gen-ts subcommand: scans the input directory, parses proto files, flattens to GoFile IR, and generates TypeScript output.

Types

type AppError added in v0.3.0

type AppError = errorx.Sentinel[appTag]

AppError is the domain error type for app-level coordination errors. Use errorx.NewSentinelf[appTag] to create instances with runtime context.

Jump to

Keyboard shortcuts

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