cmd.go 409 B

12345678910111213141516171819
  1. package quickstart
  2. import "github.com/wuntsong-org/go-zero-plus/tools/goctlwt/internal/cobrax"
  3. const (
  4. serviceTypeMono = "mono"
  5. serviceTypeMicro = "micro"
  6. )
  7. var (
  8. varStringServiceType string
  9. // Cmd describes the command to run.
  10. Cmd = cobrax.NewCommand("quickstart", cobrax.WithRunE(run))
  11. )
  12. func init() {
  13. Cmd.Flags().StringVarPWithDefaultValue(&varStringServiceType, "service-type", "t", "mono")
  14. }