Skip to content

Commit c67b11f

Browse files
authored
Move printer package out of internal (#3660)
The printer is required to be set on the context to run the commands, so we should expose the (required) printer package.
1 parent 38276b5 commit c67b11f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+64
-64
lines changed

commands/alpha/repo/reg/command_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
"strings"
2626
"testing"
2727

28-
fakeprinter "github.com/GoogleContainerTools/kpt/internal/printer/fake"
28+
fakeprinter "github.com/GoogleContainerTools/kpt/pkg/printer/fake"
2929
"github.com/google/go-cmp/cmp"
3030
"gopkg.in/yaml.v3"
3131
"k8s.io/cli-runtime/pkg/genericclioptions"

commands/alpha/rpkg/pull/command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ import (
2424

2525
"github.com/GoogleContainerTools/kpt/internal/docs/generated/rpkgdocs"
2626
"github.com/GoogleContainerTools/kpt/internal/errors"
27-
"github.com/GoogleContainerTools/kpt/internal/printer"
2827
"github.com/GoogleContainerTools/kpt/internal/util/cmdutil"
2928
"github.com/GoogleContainerTools/kpt/internal/util/porch"
3029
kptfilev1 "github.com/GoogleContainerTools/kpt/pkg/api/kptfile/v1"
30+
"github.com/GoogleContainerTools/kpt/pkg/printer"
3131
porchapi "github.com/GoogleContainerTools/kpt/porch/api/porch/v1alpha1"
3232
"github.com/spf13/cobra"
3333
"k8s.io/apimachinery/pkg/runtime"

commands/alpha/rpkg/pull/command_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ import (
1919
"strings"
2020
"testing"
2121

22-
"github.com/GoogleContainerTools/kpt/internal/printer"
23-
fakeprint "github.com/GoogleContainerTools/kpt/internal/printer/fake"
22+
"github.com/GoogleContainerTools/kpt/pkg/printer"
23+
fakeprint "github.com/GoogleContainerTools/kpt/pkg/printer/fake"
2424
porchapi "github.com/GoogleContainerTools/kpt/porch/api/porch/v1alpha1"
2525
"github.com/google/go-cmp/cmp"
2626
"github.com/spf13/cobra"

commands/alpha/rpkg/push/command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ import (
2828
"github.com/GoogleContainerTools/kpt/internal/docs/generated/rpkgdocs"
2929
"github.com/GoogleContainerTools/kpt/internal/errors"
3030
"github.com/GoogleContainerTools/kpt/internal/fnruntime"
31-
"github.com/GoogleContainerTools/kpt/internal/printer"
3231
"github.com/GoogleContainerTools/kpt/internal/util/porch"
32+
"github.com/GoogleContainerTools/kpt/pkg/printer"
3333
porchapi "github.com/GoogleContainerTools/kpt/porch/api/porch/v1alpha1"
3434
"github.com/spf13/cobra"
3535
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

commands/fn/doc/cmdfndoc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ import (
2424

2525
"github.com/GoogleContainerTools/kpt/internal/docs/generated/fndocs"
2626
"github.com/GoogleContainerTools/kpt/internal/fnruntime"
27-
"github.com/GoogleContainerTools/kpt/internal/printer"
2827
"github.com/GoogleContainerTools/kpt/internal/util/cmdutil"
28+
"github.com/GoogleContainerTools/kpt/pkg/printer"
2929
"github.com/spf13/cobra"
3030
)
3131

commands/fn/doc/cmdfndoc_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
"testing"
2020

2121
"github.com/GoogleContainerTools/kpt/commands/fn/doc"
22-
"github.com/GoogleContainerTools/kpt/internal/printer/fake"
22+
"github.com/GoogleContainerTools/kpt/pkg/printer/fake"
2323
"sigs.k8s.io/kustomize/kyaml/testutil"
2424
)
2525

commands/fn/render/cmdrender.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ import (
2424

2525
docs "github.com/GoogleContainerTools/kpt/internal/docs/generated/fndocs"
2626
"github.com/GoogleContainerTools/kpt/internal/fnruntime"
27-
"github.com/GoogleContainerTools/kpt/internal/printer"
2827
"github.com/GoogleContainerTools/kpt/internal/util/argutil"
2928
"github.com/GoogleContainerTools/kpt/internal/util/cmdutil"
3029
"github.com/GoogleContainerTools/kpt/internal/util/pathutil"
3130
"github.com/GoogleContainerTools/kpt/internal/util/render"
31+
"github.com/GoogleContainerTools/kpt/pkg/printer"
3232
"github.com/spf13/cobra"
3333
"sigs.k8s.io/kustomize/kyaml/filesys"
3434
)

commands/fn/render/cmdrender_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ import (
1919
"path/filepath"
2020
"testing"
2121

22-
"github.com/GoogleContainerTools/kpt/internal/printer/fake"
2322
"github.com/GoogleContainerTools/kpt/internal/testutil"
23+
"github.com/GoogleContainerTools/kpt/pkg/printer/fake"
2424
"github.com/spf13/cobra"
2525
"github.com/stretchr/testify/assert"
2626
)

commands/live/apply/cmdapply_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ import (
1818
"path/filepath"
1919
"testing"
2020

21-
"github.com/GoogleContainerTools/kpt/internal/printer/fake"
2221
"github.com/GoogleContainerTools/kpt/internal/testutil"
2322
kptfilev1 "github.com/GoogleContainerTools/kpt/pkg/api/kptfile/v1"
2423
"github.com/GoogleContainerTools/kpt/pkg/kptfile/kptfileutil"
24+
"github.com/GoogleContainerTools/kpt/pkg/printer/fake"
2525
"github.com/stretchr/testify/assert"
2626
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
2727
"k8s.io/cli-runtime/pkg/genericclioptions"

commands/live/destroy/cmddestroy_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ import (
1818
"path/filepath"
1919
"testing"
2020

21-
"github.com/GoogleContainerTools/kpt/internal/printer/fake"
2221
"github.com/GoogleContainerTools/kpt/internal/testutil"
2322
kptfilev1 "github.com/GoogleContainerTools/kpt/pkg/api/kptfile/v1"
2423
"github.com/GoogleContainerTools/kpt/pkg/kptfile/kptfileutil"
24+
"github.com/GoogleContainerTools/kpt/pkg/printer/fake"
2525
"github.com/stretchr/testify/assert"
2626
"k8s.io/cli-runtime/pkg/genericclioptions"
2727
cmdtesting "k8s.io/kubectl/pkg/cmd/testing"

0 commit comments

Comments
 (0)