Skip to content

Commit

Permalink
feat: allow command override
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianKramm committed Jun 23, 2022
1 parent 26ac246 commit b828d68
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 b828d68

Please sign in to comment.