2022-05-13 12:23:24 +08:00
|
|
|
package quickstart
|
|
|
|
|
2023-03-29 17:06:23 +08:00
|
|
|
import "github.com/zeromicro/go-zero/tools/goctl/internal/cobrax"
|
2022-05-13 12:23:24 +08:00
|
|
|
|
|
|
|
const (
|
|
|
|
serviceTypeMono = "mono"
|
|
|
|
serviceTypeMicro = "micro"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
varStringServiceType string
|
|
|
|
|
|
|
|
// Cmd describes the command to run.
|
2023-03-29 17:06:23 +08:00
|
|
|
Cmd = cobrax.NewCommand("quickstart", cobrax.WithRunE(run))
|
2022-05-13 12:23:24 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
2023-03-29 17:06:23 +08:00
|
|
|
Cmd.Flags().StringVarPWithDefaultValue(&varStringServiceType, "service-type", "t", "mono")
|
2022-05-13 12:23:24 +08:00
|
|
|
}
|