feat(goctl): Support gateway sample generation (#3049)
This commit is contained in:
4
tools/goctl/env/env.go
vendored
4
tools/goctl/env/env.go
vendored
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user