feat(goctl): go work multi-module support (#1800)

* feat(goctl): go work multi-module support

Resolve: #1793

* chore: print log when getting project ctx fails
This commit is contained in:
Fyn
2022-04-18 20:36:41 +08:00
committed by GitHub
parent 92b450eb11
commit e62870e268
5 changed files with 118 additions and 17 deletions

View File

@@ -12,6 +12,9 @@ import (
"github.com/zeromicro/go-zero/tools/goctl/vars"
)
// RunFunc defines a function type of Run function
type RunFunc func(string, string, ...*bytes.Buffer) (string, error)
// Run provides the execution of shell scripts in golang,
// which can support macOS, Windows, and Linux operating systems.
// Other operating systems are currently not supported