extract

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: MIT Imports: 6 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, wire, server) from source service to target service.

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,
}

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