Skip to content

Commit 34d4eb4

Browse files
author
Cornelius Weig
committed
Ensure standard go project structure
1 parent be0cc8b commit 34d4eb4

14 files changed

Lines changed: 13 additions & 13 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ BUNDLE := $(BUILDDIR)/bundle.tar.gz
2828
CHECKSUMS := $(patsubst %,%.sha256,$(ASSETS))
2929
CHECKSUMS += $(BUNDLE).sha256
3030

31-
VERSION_PACKAGE := $(REPOPATH)/pkg/version
31+
VERSION_PACKAGE := $(REPOPATH)/pkg/ketall/version
3232

3333
GO_LDFLAGS :="
3434
GO_LDFLAGS += -X $(VERSION_PACKAGE).version=$(VERSION)

cmd/root.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ import (
2020
"io"
2121
"path/filepath"
2222

23-
"github.com/corneliusweig/ketall/pkg/constants"
24-
"github.com/corneliusweig/ketall/pkg/options"
23+
"github.com/corneliusweig/ketall/pkg/ketall/constants"
24+
"github.com/corneliusweig/ketall/pkg/ketall/options"
2525
"github.com/sirupsen/logrus"
2626
"k8s.io/client-go/util/homedir"
2727

28-
"github.com/corneliusweig/ketall/pkg"
28+
"github.com/corneliusweig/ketall/pkg/ketall"
2929
"github.com/pkg/errors"
3030
"github.com/spf13/cobra"
3131
"github.com/spf13/viper"
@@ -70,7 +70,7 @@ var rootCmd = &cobra.Command{
7070
Args: cobra.NoArgs,
7171
Example: ketallExamples,
7272
Run: func(cmd *cobra.Command, args []string) {
73-
pkg.KetAll(ketallOptions)
73+
ketall.KetAll(ketallOptions)
7474
},
7575
}
7676

cmd/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"os"
2121
"text/template"
2222

23-
"github.com/corneliusweig/ketall/pkg/version"
23+
"github.com/corneliusweig/ketall/pkg/ketall/version"
2424
"github.com/sirupsen/logrus"
2525

2626
"github.com/spf13/cobra"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"strings"
2323
"sync"
2424

25-
"github.com/corneliusweig/ketall/pkg/constants"
25+
"github.com/corneliusweig/ketall/pkg/ketall/constants"
2626
"github.com/pkg/errors"
2727
"github.com/sirupsen/logrus"
2828
"github.com/spf13/viper"

pkg/ket_all.go renamed to pkg/ketall/ket_all.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package pkg
17+
package ketall
1818

1919
import (
2020
"text/tabwriter"
2121

22-
"github.com/corneliusweig/ketall/pkg/client"
23-
"github.com/corneliusweig/ketall/pkg/options"
24-
"github.com/corneliusweig/ketall/pkg/printer"
22+
"github.com/corneliusweig/ketall/pkg/ketall/client"
23+
"github.com/corneliusweig/ketall/pkg/ketall/options"
24+
"github.com/corneliusweig/ketall/pkg/ketall/printer"
2525
"github.com/sirupsen/logrus"
2626
"k8s.io/cli-runtime/pkg/genericclioptions/printers"
2727
)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"bytes"
2121
"os"
2222

23-
"github.com/corneliusweig/ketall/pkg/printer"
23+
"github.com/corneliusweig/ketall/pkg/ketall/printer"
2424
"github.com/sirupsen/logrus"
2525
"k8s.io/cli-runtime/pkg/genericclioptions"
2626
"k8s.io/cli-runtime/pkg/genericclioptions/printers"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package options
1919
import (
2020
"testing"
2121

22-
"github.com/corneliusweig/ketall/pkg/printer"
22+
"github.com/corneliusweig/ketall/pkg/ketall/printer"
2323
"github.com/stretchr/testify/assert"
2424
"k8s.io/cli-runtime/pkg/genericclioptions"
2525
"k8s.io/cli-runtime/pkg/genericclioptions/printers"

0 commit comments

Comments
 (0)