extract

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdExtract = &cobra.Command{
	Use:   "extract <source-service> <target-service> --obj <model> [--obj <model>...]",
	Short: "extract service modules from one service to another",
	Long: `Extract service modules (schema, repo, service, wiring, server) from source service to target service. Registration follows the target service form (anchor injection or legacy wire sets).

This is used for microservice evolution — gradually splitting a monolithic service
into smaller, independently deployable services.

ORM type is auto-detected from source service directory structure.

Examples:
  gow extract admin user --obj role
  gow extract admin user --obj role --obj permission
  gow extract admin user --obj role,permission
  gow extract admin user --obj role --orm ent
  gow extract admin user --obj role --keep-source`,
	Args:         cobra.ExactArgs(2),
	RunE:         runExtract,
	SilenceUsage: true,
}

CmdExtract 提取命令

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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