feat(goctl): Support gateway sample generation (#3049)

This commit is contained in:
anqiansong
2023-03-29 17:06:23 +08:00
committed by GitHub
parent 95b85336d6
commit 1904af2323
32 changed files with 1399 additions and 513 deletions

View File

@@ -7,10 +7,10 @@ import (
"github.com/zeromicro/go-zero/tools/goctl/pkg/env"
)
func write(_ *cobra.Command, _ []string) error {
func write(_ *cobra.Command, args []string) error {
if len(sliceVarWriteValue) > 0 {
return env.WriteEnv(sliceVarWriteValue)
}
fmt.Println(env.Print())
fmt.Println(env.Print(args...))
return nil
}