diff --git a/.gitignore b/.gitignore index 84ebab3..38fee9a 100644 --- a/.gitignore +++ b/.gitignore @@ -60,3 +60,5 @@ go.work /.idea/sonarlint/issuestore/b/2/b27e432ec96355a0a0d6dcfb9896e10e33a78dba /.idea/sonarlint/securityhotspotstore/a/8/a81b87ba622b933d644c063932316f4f3a59e585 /.idea/sonarlint/securityhotspotstore/b/2/b27e432ec96355a0a0d6dcfb9896e10e33a78dba +/.idea/sonarlint/issuestore/d/7/d72184c10ec6e1cdcca2cadf1989ae0d309c1ecf +/.idea/sonarlint/securityhotspotstore/d/7/d72184c10ec6e1cdcca2cadf1989ae0d309c1ecf diff --git a/cmd/cmd_suite_test.go b/pkg/cmd/cmd_suite_test.go similarity index 100% rename from cmd/cmd_suite_test.go rename to pkg/cmd/cmd_suite_test.go diff --git a/cmd/downloader/downloader.go b/pkg/cmd/downloader/downloader.go similarity index 100% rename from cmd/downloader/downloader.go rename to pkg/cmd/downloader/downloader.go diff --git a/cmd/downloader/downloader_suite_test.go b/pkg/cmd/downloader/downloader_suite_test.go similarity index 100% rename from cmd/downloader/downloader_suite_test.go rename to pkg/cmd/downloader/downloader_suite_test.go diff --git a/cmd/install.go b/pkg/cmd/install.go similarity index 90% rename from cmd/install.go rename to pkg/cmd/install.go index cd10464..fb479e9 100644 --- a/cmd/install.go +++ b/pkg/cmd/install.go @@ -2,9 +2,9 @@ package cmd import ( "fmt" - "github.com/AthulMuralidhar/protobuff-installer/cmd/downloader" - "github.com/AthulMuralidhar/protobuff-installer/cmd/semvar" - "github.com/AthulMuralidhar/protobuff-installer/cmd/unzip" + "github.com/AthulMuralidhar/protobuff-installer/pkg/cmd/downloader" + "github.com/AthulMuralidhar/protobuff-installer/pkg/cmd/semvar" + "github.com/AthulMuralidhar/protobuff-installer/pkg/cmd/unzip" "github.com/spf13/cobra" "go.uber.org/zap" "log" diff --git a/cmd/prompts.go b/pkg/cmd/prompts.go similarity index 97% rename from cmd/prompts.go rename to pkg/cmd/prompts.go index b5c7ecd..793f48c 100644 --- a/cmd/prompts.go +++ b/pkg/cmd/prompts.go @@ -3,7 +3,7 @@ package cmd import ( "errors" "fmt" - "github.com/AthulMuralidhar/protobuff-installer/cmd/semvar" + "github.com/AthulMuralidhar/protobuff-installer/pkg/cmd/semvar" "os" "strconv" "strings" diff --git a/cmd/root.go b/pkg/cmd/root.go similarity index 100% rename from cmd/root.go rename to pkg/cmd/root.go diff --git a/cmd/semvar/sem_var.go b/pkg/cmd/semvar/sem_var.go similarity index 100% rename from cmd/semvar/sem_var.go rename to pkg/cmd/semvar/sem_var.go diff --git a/cmd/semvar/semvar_suite_test.go b/pkg/cmd/semvar/semvar_suite_test.go similarity index 100% rename from cmd/semvar/semvar_suite_test.go rename to pkg/cmd/semvar/semvar_suite_test.go diff --git a/cmd/templates.go b/pkg/cmd/templates.go similarity index 100% rename from cmd/templates.go rename to pkg/cmd/templates.go diff --git a/cmd/unzip/unzip.go b/pkg/cmd/unzip/unzip.go similarity index 100% rename from cmd/unzip/unzip.go rename to pkg/cmd/unzip/unzip.go diff --git a/cmd/unzip/unzip_suite_test.go b/pkg/cmd/unzip/unzip_suite_test.go similarity index 93% rename from cmd/unzip/unzip_suite_test.go rename to pkg/cmd/unzip/unzip_suite_test.go index 987707b..5fee7ab 100644 --- a/cmd/unzip/unzip_suite_test.go +++ b/pkg/cmd/unzip/unzip_suite_test.go @@ -1,7 +1,7 @@ package unzip import ( - "github.com/AthulMuralidhar/protobuff-installer/cmd/downloader" + "github.com/AthulMuralidhar/protobuff-installer/pkg/cmd/downloader" "go.uber.org/zap" "os" "testing" diff --git a/main.go b/pkg/main.go similarity index 72% rename from main.go rename to pkg/main.go index 62039bc..8b4ac9b 100644 --- a/main.go +++ b/pkg/main.go @@ -5,7 +5,9 @@ based off of: https://github.com/divrhino/studybuddy/blob/master/cmd/new.go */ package main -import "github.com/AthulMuralidhar/protobuff-installer/cmd" +import ( + "github.com/AthulMuralidhar/protobuff-installer/pkg/cmd" +) func main() { cmd.Execute()