generate

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdGenerate = &cobra.Command{
	Use:          "generate",
	Aliases:      []string{"gen"},
	Short:        "generate CRUD code from database schema",
	Long:         "Generate complete Kratos microservice code (proto, ORM, service, server, wiring, config) from an existing database or SQL file. Module registration follows the target service form: anchor injection into hand-written wiring.go, or wire provider sets for legacy services. Example: gow generate",
	RunE:         Run,
	SilenceUsage: true,
}

CmdGenerate represents the generate command

Functions

func Run added in v1.0.2

func Run(cmd *cobra.Command, args []string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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