Skip to content

Commit

Permalink
Merge pull request #2124 from FabianKramm/print-feat
Browse files Browse the repository at this point in the history
feat: allow command override
  • Loading branch information
FabianKramm authored Jun 23, 2022
2 parents 218436a + b828d68 commit 0b8402b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/devspace/pipeline/engine/pipelinehandler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"
"github.com/loft-sh/devspace/pkg/devspace/pipeline/engine"
"io"
"strings"

"github.com/sirupsen/logrus"

Expand Down Expand Up @@ -154,6 +155,14 @@ func (e *execHandler) handlePipelineCommands(ctx context.Context, command string
})
}

// resolve internal pipeline commands
pipelineCommand, ok = PipelineCommands[strings.TrimPrefix(command, "__")]
if ok {
return e.executePipelineCommand(ctx, command, func() error {
return pipelineCommand(devCtx, e.pipeline, args)
})
}

return false, nil
}

Expand Down

0 comments on commit 0b8402b

Please sign in to comment.