feat: 许多变化
1. make apps 逻辑大变更, vendor 成标准传入 args 2. nginx -> app-helper
This commit is contained in:
@@ -5,6 +5,8 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os/exec"
|
||||
|
||||
"yizhisec.com/hsv2/forge/pkg/logger"
|
||||
)
|
||||
|
||||
func (m *maker) RunCommand(ctx context.Context, dir string, _cmds ...string) error {
|
||||
@@ -12,6 +14,8 @@ func (m *maker) RunCommand(ctx context.Context, dir string, _cmds ...string) err
|
||||
return nil
|
||||
}
|
||||
|
||||
logger.Debug("maker.RunCommand: dir = %s, cmds = %v", dir, _cmds)
|
||||
|
||||
for _, cmdStr := range _cmds {
|
||||
cmd := exec.CommandContext(ctx, "sh", "-c", cmdStr)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user