Skip to content

Commit 0b8402b

Browse files
authored
Merge pull request #2124 from FabianKramm/print-feat
feat: allow command override
2 parents 218436a + b828d68 commit 0b8402b

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

  • pkg/devspace/pipeline/engine/pipelinehandler

pkg/devspace/pipeline/engine/pipelinehandler/handler.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"fmt"
66
"github.com/loft-sh/devspace/pkg/devspace/pipeline/engine"
77
"io"
8+
"strings"
89

910
"github.com/sirupsen/logrus"
1011

@@ -154,6 +155,14 @@ func (e *execHandler) handlePipelineCommands(ctx context.Context, command string
154155
})
155156
}
156157

158+
// resolve internal pipeline commands
159+
pipelineCommand, ok = PipelineCommands[strings.TrimPrefix(command, "__")]
160+
if ok {
161+
return e.executePipelineCommand(ctx, command, func() error {
162+
return pipelineCommand(devCtx, e.pipeline, args)
163+
})
164+
}
165+
157166
return false, nil
158167
}
159168

0 commit comments

Comments
 (0)