refactor(agent): rename commander
ci-agent / build (push) Failing after 1m28s

This commit is contained in:
2026-04-04 02:52:54 +03:00
parent edb1458806
commit 28631865c8
2 changed files with 4 additions and 4 deletions
@@ -17,13 +17,13 @@ import (
)
type CommanderClient struct {
cmder *commander.Commander
cmder *commander.CommandExecutor
wg *sync.WaitGroup
id string
}
func New(
cmder *commander.Commander,
cmder *commander.CommandExecutor,
wg *sync.WaitGroup,
id string,
) CommanderClient {
+2 -2
View File
@@ -10,10 +10,10 @@ import (
"golang.org/x/sync/errgroup"
)
type Commander struct {
type CommandExecutor struct {
}
func (*Commander) Execute(command *proto.Command) (*proto.FinishedCommand, error) {
func (*CommandExecutor) Execute(command *proto.Command) (*proto.FinishedCommand, error) {
cmd := exec.Command(command.Command[0], command.Command[1:]...)
var (
stdin io.WriteCloser