Skip to content

Commit

Permalink
move internal/executable/os/exec to pkg/execute/exec
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-rpr authored and apenella committed Aug 16, 2024
1 parent 8b11ab6 commit 96159a2
Show file tree
Hide file tree
Showing 11 changed files with 5 additions and 7 deletions.
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ vet: ## Executes the go vet
@echo "$(COLOR_GREEN) Executing go vet $(COLOR_END)"
@echo
@$(GOLANG_BINARY) vet ./pkg/...
@$(GOLANG_BINARY) vet ./internal/...

golangci-lint: ## Executes golangci-lint
@echo
Expand All @@ -39,7 +38,6 @@ unit-test: ## Run unit tests
@echo "$(COLOR_GREEN) Running unit tests...$(COLOR_END)"
@echo
@$(GOLANG_BINARY) test ./pkg/... -cover -count=1
@$(GOLANG_BINARY) test ./internal/... -cover -count=1

list-examples: ## List all examples
@echo
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"path/filepath"

"github.com/apenella/go-ansible/v2/examples/ansibleplaybook-embed-python/internal/ansibleplaybook-embed-python/data"
executable "github.com/apenella/go-ansible/v2/internal/executable/os/exec"
"github.com/apenella/go-ansible/v2/pkg/execute"
executable "github.com/apenella/go-ansible/v2/pkg/execute/exec"
"github.com/apenella/go-ansible/v2/pkg/playbook"
"github.com/kluctl/go-embed-python/embed_util"
"github.com/kluctl/go-embed-python/python"
Expand Down
2 changes: 1 addition & 1 deletion pkg/execute/defaultExecute.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"
"sync"

"github.com/apenella/go-ansible/v2/internal/executable/os/exec"
"github.com/apenella/go-ansible/v2/pkg/execute/exec"
"github.com/apenella/go-ansible/v2/pkg/execute/result"
defaultresults "github.com/apenella/go-ansible/v2/pkg/execute/result/default"
"github.com/apenella/go-ansible/v2/pkg/execute/result/transformer"
Expand Down
2 changes: 1 addition & 1 deletion pkg/execute/defaultExecuteOptions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"os"
"testing"

"github.com/apenella/go-ansible/v2/internal/executable/os/exec"
"github.com/apenella/go-ansible/v2/mocks"
"github.com/apenella/go-ansible/v2/pkg/execute/exec"
defaultresults "github.com/apenella/go-ansible/v2/pkg/execute/result/default"
"github.com/apenella/go-ansible/v2/pkg/execute/result/transformer"
"github.com/stretchr/testify/assert"
Expand Down
2 changes: 1 addition & 1 deletion pkg/execute/defaultExecute_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"os"
"testing"

"github.com/apenella/go-ansible/v2/internal/executable/os/exec"
"github.com/apenella/go-ansible/v2/mocks"
"github.com/apenella/go-ansible/v2/pkg/execute/exec"
defaultresults "github.com/apenella/go-ansible/v2/pkg/execute/result/default"
"github.com/apenella/go-ansible/v2/pkg/execute/result/transformer"
errors "github.com/apenella/go-common-utils/error"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion pkg/execute/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package execute
import (
"context"

"github.com/apenella/go-ansible/v2/internal/executable/os/exec"
"github.com/apenella/go-ansible/v2/pkg/execute/exec"
)

// Executor interface to execute commands
Expand Down

0 comments on commit 96159a2

Please sign in to comment.