diff --git a/main.go b/cmd/deepl/main.go similarity index 58% rename from main.go rename to cmd/deepl/main.go index 46e6afc..cc34115 100644 --- a/main.go +++ b/cmd/deepl/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/cluttrdev/deepl-go/cmd" + "github.com/cluttrdev/deepl-go/pkg/cmd" ) func main() { diff --git a/pkg/deepl/http_client.go b/pkg/api/http_client.go similarity index 100% rename from pkg/deepl/http_client.go rename to pkg/api/http_client.go diff --git a/pkg/deepl/translate.go b/pkg/api/translate.go similarity index 100% rename from pkg/deepl/translate.go rename to pkg/api/translate.go diff --git a/cmd/root.go b/pkg/cmd/root.go similarity index 92% rename from cmd/root.go rename to pkg/cmd/root.go index 2eede8a..abf29f0 100644 --- a/cmd/root.go +++ b/pkg/cmd/root.go @@ -7,7 +7,7 @@ import ( "github.com/spf13/cobra" - "github.com/cluttrdev/deepl-go/pkg/deepl" + deepl "github.com/cluttrdev/deepl-go/pkg/api" ) var client *deepl.Client diff --git a/cmd/translate.go b/pkg/cmd/translate.go similarity index 98% rename from cmd/translate.go rename to pkg/cmd/translate.go index e9723c9..7529550 100644 --- a/cmd/translate.go +++ b/pkg/cmd/translate.go @@ -6,7 +6,7 @@ import ( "github.com/spf13/cobra" - "github.com/cluttrdev/deepl-go/pkg/deepl" + deepl "github.com/cluttrdev/deepl-go/pkg/api" ) var (