Skip to content

Commit

Permalink
More exports to unexport
Browse files Browse the repository at this point in the history
  • Loading branch information
leg100 committed Dec 20, 2020
1 parent 7af76e0 commit 3664e9d
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 13 deletions.
9 changes: 4 additions & 5 deletions cmd/workspace/workspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@ func WorkspaceCmd(opts *cmdutil.Options) *cobra.Command {
cmd.AddCommand(nc)

cmd.AddCommand(
ListCmd(opts),
DeleteCmd(opts),
ShowCmd(opts),
SelectCmd(opts),
DeleteCmd(opts),
listCmd(opts),
deleteCmd(opts),
showCmd(opts),
selectCmd(opts),
)

return cmd
Expand Down
2 changes: 1 addition & 1 deletion cmd/workspace/workspace_delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"k8s.io/apimachinery/pkg/util/wait"
)

func DeleteCmd(opts *cmdutil.Options) *cobra.Command {
func deleteCmd(opts *cmdutil.Options) *cobra.Command {
var namespace, kubeContext string
cmd := &cobra.Command{
Use: "delete <workspace>",
Expand Down
2 changes: 1 addition & 1 deletion cmd/workspace/workspace_delete_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func TestDeleteWorkspace(t *testing.T) {
opts, err := cmdutil.NewFakeOpts(new(bytes.Buffer), tt.objs...)
require.NoError(t, err)

cmd := DeleteCmd(opts)
cmd := deleteCmd(opts)
cmd.SetArgs(tt.args)
cmd.SetOut(opts.Out)
t.CheckError(tt.err, cmd.ExecuteContext(context.Background()))
Expand Down
2 changes: 1 addition & 1 deletion cmd/workspace/workspace_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

func ListCmd(opts *cmdutil.Options) *cobra.Command {
func listCmd(opts *cmdutil.Options) *cobra.Command {
var path, kubeContext string
var namespace = "default"
var workspace = "default"
Expand Down
2 changes: 1 addition & 1 deletion cmd/workspace/workspace_list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func TestListWorkspaces(t *testing.T) {
opts, err := cmdutil.NewFakeOpts(out, tt.objs...)
require.NoError(t, err)

cmd := ListCmd(opts)
cmd := listCmd(opts)
cmd.SetArgs(tt.args)
cmd.SetOut(opts.Out)

Expand Down
2 changes: 1 addition & 1 deletion cmd/workspace/workspace_select.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/spf13/cobra"
)

func SelectCmd(opts *cmdutil.Options) *cobra.Command {
func selectCmd(opts *cmdutil.Options) *cobra.Command {
var path string

cmd := &cobra.Command{
Expand Down
2 changes: 1 addition & 1 deletion cmd/workspace/workspace_select_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func TestWorkspaceSelect(t *testing.T) {
opts, err := cmdutil.NewFakeOpts(out)
require.NoError(t, err)

cmd := SelectCmd(opts)
cmd := selectCmd(opts)
cmd.SetArgs(tt.args)
cmd.SetOut(opts.Out)

Expand Down
2 changes: 1 addition & 1 deletion cmd/workspace/workspace_show.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/spf13/cobra"
)

func ShowCmd(opts *cmdutil.Options) *cobra.Command {
func showCmd(opts *cmdutil.Options) *cobra.Command {
var path string

cmd := &cobra.Command{
Expand Down
2 changes: 1 addition & 1 deletion cmd/workspace/workspace_show_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func TestWorkspaceShow(t *testing.T) {
opts, err := cmdutil.NewFakeOpts(out)
require.NoError(t, err)

cmd := ShowCmd(opts)
cmd := showCmd(opts)
cmd.SetOut(opts.Out)
cmd.SetArgs(tt.args)

Expand Down

0 comments on commit 3664e9d

Please sign in to comment.