Skip to content

Commit

Permalink
Move library code from pkg/ytbx into project root
Browse files Browse the repository at this point in the history
The `ytbx` project is more a library than it is a command line tool at
the moment. This results in a rather long import name.

Change location of library code to the project root to be more in line
with the other projects in the `gonvenience` organizaation.
  • Loading branch information
HeavyWombat committed Jan 10, 2020
1 parent ff5b3f5 commit 06d89ca
Show file tree
Hide file tree
Showing 19 changed files with 11 additions and 11 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion pkg/ytbx/getting_test.go → getting_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"

"github.com/gonvenience/ytbx/pkg/ytbx"
"github.com/gonvenience/ytbx"
)

var _ = Describe("getting stuff test cases", func() {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion pkg/ytbx/input_test.go → input_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
. "github.com/onsi/gomega"

. "github.com/gorilla/mux"
. "github.com/gonvenience/ytbx/pkg/ytbx"
. "github.com/gonvenience/ytbx"
)

var _ = Describe("Input test cases", func() {
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/compare.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"fmt"

"github.com/gonvenience/wrap"
"github.com/gonvenience/ytbx/pkg/ytbx"
"github.com/gonvenience/ytbx"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (

"github.com/gonvenience/neat"
"github.com/gonvenience/wrap"
"github.com/gonvenience/ytbx/pkg/ytbx"
"github.com/gonvenience/ytbx"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/paths.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"fmt"

"github.com/gonvenience/wrap"
"github.com/gonvenience/ytbx/pkg/ytbx"
"github.com/gonvenience/ytbx"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/restructure.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (

"github.com/gonvenience/bunt"
"github.com/gonvenience/neat"
"github.com/gonvenience/ytbx/pkg/ytbx"
"github.com/gonvenience/ytbx"
"github.com/spf13/cobra"
yamlv3 "gopkg.in/yaml.v3"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"github.com/gonvenience/bunt"
"github.com/gonvenience/neat"
"github.com/gonvenience/wrap"
"github.com/gonvenience/ytbx/pkg/ytbx"
"github.com/gonvenience/ytbx"
"github.com/spf13/cobra"
)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion pkg/ytbx/path_test.go → path_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"

. "github.com/gonvenience/ytbx/pkg/ytbx"
. "github.com/gonvenience/ytbx"
yamlv3 "gopkg.in/yaml.v3"
)

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion pkg/ytbx/restructure_test.go → restructure_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"

. "github.com/gonvenience/ytbx/pkg/ytbx"
. "github.com/gonvenience/ytbx"
)

var _ = Describe("Restructure order of map keys", func() {
Expand Down
4 changes: 2 additions & 2 deletions pkg/ytbx/ytbx_suite_test.go → ytbx_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (

"github.com/gonvenience/bunt"
"github.com/gonvenience/neat"
"github.com/gonvenience/ytbx/pkg/ytbx"
"github.com/gonvenience/ytbx"
yamlv3 "gopkg.in/yaml.v3"
)

Expand Down Expand Up @@ -88,7 +88,7 @@ var _ = AfterSuite(func() {

func assets(pathElement ...string) string {
targetPath := filepath.Join(append(
[]string{"..", "..", "assets"},
[]string{"assets"},
pathElement...,
)...)

Expand Down

0 comments on commit 06d89ca

Please sign in to comment.