12345678910111213141516171819 |
- package quickstart
- import "github.com/wuntsong-org/go-zero-plus/tools/goctlwt/internal/cobrax"
- const (
- serviceTypeMono = "mono"
- serviceTypeMicro = "micro"
- )
- var (
- varStringServiceType string
- // Cmd describes the command to run.
- Cmd = cobrax.NewCommand("quickstart", cobrax.WithRunE(run))
- )
- func init() {
- Cmd.Flags().StringVarPWithDefaultValue(&varStringServiceType, "service-type", "t", "mono")
- }
|