feat: Add goctl quickstart (#1889)
* Add goctl quickstart * Format code * Format code
This commit is contained in:
25
tools/goctl/quickstart/cmd.go
Normal file
25
tools/goctl/quickstart/cmd.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package quickstart
|
||||
|
||||
import "github.com/spf13/cobra"
|
||||
|
||||
const (
|
||||
serviceTypeMono = "mono"
|
||||
serviceTypeMicro = "micro"
|
||||
)
|
||||
|
||||
var (
|
||||
varStringServiceType string
|
||||
|
||||
// Cmd describes the command to run.
|
||||
Cmd = &cobra.Command{
|
||||
Use: "quickstart",
|
||||
Short: "quickly start a project",
|
||||
RunE: run,
|
||||
}
|
||||
)
|
||||
|
||||
func init() {
|
||||
Cmd.Flags().StringVarP(&varStringServiceType,
|
||||
"service-type", "t", "mono",
|
||||
"specify the service type, supported values: [mono, micro]")
|
||||
}
|
||||
Reference in New Issue
Block a user