mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-23 09:00:20 +08:00
20 lines
399 B
Go
20 lines
399 B
Go
package quickstart
|
|
|
|
import "github.com/zeromicro/go-zero/tools/goctl/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")
|
|
}
|