diff --git a/cmd/flags/credentials_test.go b/cmd/flags/credentials_test.go index 6672b39..43f6d7a 100644 --- a/cmd/flags/credentials_test.go +++ b/cmd/flags/credentials_test.go @@ -3,8 +3,9 @@ package flags import ( - "asvec/utils" "testing" + + "github.com/aerospike/asvec/utils" ) func TestCredentialsFlag_Set(t *testing.T) { diff --git a/cmd/flags/optionals.go b/cmd/flags/optionals.go index 203ed0d..5b1d73e 100644 --- a/cmd/flags/optionals.go +++ b/cmd/flags/optionals.go @@ -1,11 +1,12 @@ package flags import ( - "asvec/utils" "fmt" "strconv" "strings" "time" + + "github.com/aerospike/asvec/utils" ) const optionalEmptyString = "" diff --git a/cmd/flags/vector.go b/cmd/flags/vector.go index 9568a3b..97c9471 100644 --- a/cmd/flags/vector.go +++ b/cmd/flags/vector.go @@ -1,10 +1,11 @@ package flags import ( - "asvec/cmd/writers" "fmt" "strconv" "strings" + + "github.com/aerospike/asvec/cmd/writers" ) // A cobra PFlag to parse and store a vector of floats or booleans. diff --git a/cmd/indexCreate.go b/cmd/indexCreate.go index 5878b18..54eda7b 100644 --- a/cmd/indexCreate.go +++ b/cmd/indexCreate.go @@ -1,7 +1,6 @@ package cmd import ( - "asvec/cmd/flags" "context" "encoding/json" "fmt" @@ -10,6 +9,8 @@ import ( "os" "strings" + "github.com/aerospike/asvec/cmd/flags" + avs "github.com/aerospike/avs-client-go" "github.com/aerospike/avs-client-go/protos" "github.com/spf13/cobra" diff --git a/cmd/indexDrop.go b/cmd/indexDrop.go index 6d2a1f3..8e06257 100644 --- a/cmd/indexDrop.go +++ b/cmd/indexDrop.go @@ -1,11 +1,12 @@ package cmd import ( - "asvec/cmd/flags" "context" "fmt" "log/slog" + "github.com/aerospike/asvec/cmd/flags" + "github.com/spf13/cobra" "github.com/spf13/pflag" ) diff --git a/cmd/indexGC.go b/cmd/indexGC.go index af40ed4..7bffdcf 100644 --- a/cmd/indexGC.go +++ b/cmd/indexGC.go @@ -1,11 +1,12 @@ package cmd import ( - "asvec/cmd/flags" "context" "fmt" "log/slog" + "github.com/aerospike/asvec/cmd/flags" + "github.com/spf13/cobra" "github.com/spf13/pflag" ) diff --git a/cmd/indexList.go b/cmd/indexList.go index 1dec462..7f5faa8 100644 --- a/cmd/indexList.go +++ b/cmd/indexList.go @@ -1,13 +1,14 @@ package cmd import ( - "asvec/cmd/flags" "context" "encoding/json" "fmt" "log/slog" "sync" + "github.com/aerospike/asvec/cmd/flags" + "github.com/aerospike/avs-client-go/protos" "github.com/spf13/cobra" "github.com/spf13/pflag" diff --git a/cmd/indexUpdate.go b/cmd/indexUpdate.go index c73f4a2..960e461 100644 --- a/cmd/indexUpdate.go +++ b/cmd/indexUpdate.go @@ -1,11 +1,12 @@ package cmd import ( - "asvec/cmd/flags" "context" "fmt" "log/slog" + "github.com/aerospike/asvec/cmd/flags" + "github.com/aerospike/avs-client-go/protos" "github.com/spf13/cobra" "github.com/spf13/pflag" diff --git a/cmd/nodeList.go b/cmd/nodeList.go index a8df335..3189491 100644 --- a/cmd/nodeList.go +++ b/cmd/nodeList.go @@ -1,8 +1,6 @@ package cmd import ( - "asvec/cmd/flags" - "asvec/cmd/writers" "context" "fmt" "log/slog" @@ -12,6 +10,10 @@ import ( "strings" "sync" + "github.com/aerospike/asvec/cmd/writers" + + "github.com/aerospike/asvec/cmd/flags" + "github.com/aerospike/avs-client-go" "github.com/aerospike/avs-client-go/protos" "github.com/spf13/cobra" diff --git a/cmd/query.go b/cmd/query.go index 72f0ce0..92b029a 100644 --- a/cmd/query.go +++ b/cmd/query.go @@ -1,12 +1,13 @@ package cmd import ( - "asvec/cmd/flags" "context" "fmt" "log/slog" "reflect" + "github.com/aerospike/asvec/cmd/flags" + "github.com/aerospike/avs-client-go" "github.com/aerospike/avs-client-go/protos" "github.com/spf13/cobra" diff --git a/cmd/rolesList.go b/cmd/rolesList.go index 4f4c214..b57dedc 100644 --- a/cmd/rolesList.go +++ b/cmd/rolesList.go @@ -1,11 +1,12 @@ package cmd import ( - "asvec/cmd/flags" "context" "fmt" "log/slog" + "github.com/aerospike/asvec/cmd/flags" + "github.com/spf13/cobra" "github.com/spf13/pflag" ) diff --git a/cmd/root.go b/cmd/root.go index e7b632b..f03ccff 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -1,13 +1,14 @@ package cmd import ( - "asvec/cmd/flags" "context" "fmt" "log/slog" "os" "strings" + "github.com/aerospike/asvec/cmd/flags" + "github.com/aerospike/tools-common-go/config" common "github.com/aerospike/tools-common-go/flags" "github.com/spf13/cobra" @@ -63,7 +64,7 @@ asvec --help } cmd.SilenceUsage = true - config.SetDefaultConfName("asvec") + config.SetDefaultConfName("module asvec") config.BindPFlags(cmd.Flags(), rootFlags.clusterName) configFile, err := config.InitConfig(rootFlags.confFile, "", cmd.Flags()) diff --git a/cmd/userCreate.go b/cmd/userCreate.go index 109f563..deacbb7 100644 --- a/cmd/userCreate.go +++ b/cmd/userCreate.go @@ -1,11 +1,12 @@ package cmd import ( - "asvec/cmd/flags" "context" "fmt" "log/slog" + "github.com/aerospike/asvec/cmd/flags" + "github.com/spf13/cobra" "github.com/spf13/pflag" ) diff --git a/cmd/userDrop.go b/cmd/userDrop.go index fc9a398..ae6297c 100644 --- a/cmd/userDrop.go +++ b/cmd/userDrop.go @@ -1,11 +1,12 @@ package cmd import ( - "asvec/cmd/flags" "context" "fmt" "log/slog" + "github.com/aerospike/asvec/cmd/flags" + "github.com/spf13/cobra" "github.com/spf13/pflag" ) diff --git a/cmd/userGrant.go b/cmd/userGrant.go index 6910295..a5f3d37 100644 --- a/cmd/userGrant.go +++ b/cmd/userGrant.go @@ -2,12 +2,13 @@ package cmd import ( - "asvec/cmd/flags" "context" "fmt" "log/slog" "strings" + "github.com/aerospike/asvec/cmd/flags" + "github.com/spf13/cobra" "github.com/spf13/pflag" ) diff --git a/cmd/userList.go b/cmd/userList.go index 41088ef..2ad619b 100644 --- a/cmd/userList.go +++ b/cmd/userList.go @@ -1,11 +1,12 @@ package cmd import ( - "asvec/cmd/flags" "context" "fmt" "log/slog" + "github.com/aerospike/asvec/cmd/flags" + "github.com/spf13/cobra" "github.com/spf13/pflag" ) diff --git a/cmd/userNewPassword.go b/cmd/userNewPassword.go index 6b6e587..43aea8f 100644 --- a/cmd/userNewPassword.go +++ b/cmd/userNewPassword.go @@ -1,11 +1,12 @@ package cmd import ( - "asvec/cmd/flags" "context" "fmt" "log/slog" + "github.com/aerospike/asvec/cmd/flags" + "github.com/spf13/cobra" "github.com/spf13/pflag" ) diff --git a/cmd/userRevoke.go b/cmd/userRevoke.go index 2b5c036..1c844eb 100644 --- a/cmd/userRevoke.go +++ b/cmd/userRevoke.go @@ -2,12 +2,13 @@ package cmd import ( - "asvec/cmd/flags" "context" "fmt" "log/slog" "strings" + "github.com/aerospike/asvec/cmd/flags" + "github.com/spf13/cobra" "github.com/spf13/pflag" ) diff --git a/cmd/utils.go b/cmd/utils.go index bb78647..d622110 100644 --- a/cmd/utils.go +++ b/cmd/utils.go @@ -1,13 +1,14 @@ package cmd import ( - "asvec/cmd/flags" "context" "fmt" "log/slog" "os" "strings" + "github.com/aerospike/asvec/cmd/flags" + "golang.org/x/term" avs "github.com/aerospike/avs-client-go" diff --git a/cmd/utils_test.go b/cmd/utils_test.go index 073fe06..1c7717a 100644 --- a/cmd/utils_test.go +++ b/cmd/utils_test.go @@ -3,9 +3,10 @@ package cmd import ( - "asvec/cmd/flags" "testing" + "github.com/aerospike/asvec/cmd/flags" + avs "github.com/aerospike/avs-client-go" "github.com/stretchr/testify/assert" ) diff --git a/cmd/view.go b/cmd/view.go index b3a83f9..9924544 100644 --- a/cmd/view.go +++ b/cmd/view.go @@ -1,12 +1,13 @@ package cmd import ( - "asvec/cmd/writers" "fmt" "io" "log/slog" "sync/atomic" + "github.com/aerospike/asvec/cmd/writers" + tableColor "github.com/jedib0t/go-pretty/v6/text" "github.com/aerospike/avs-client-go" diff --git a/e2e_multi_node_LB_test.go b/e2e_multi_node_LB_test.go index e306dd1..3417bf4 100644 --- a/e2e_multi_node_LB_test.go +++ b/e2e_multi_node_LB_test.go @@ -3,12 +3,13 @@ package main import ( - "asvec/tests" "context" "fmt" "strings" "testing" + "github.com/aerospike/asvec/tests" + avs "github.com/aerospike/avs-client-go" "github.com/stretchr/testify/suite" ) diff --git a/e2e_multi_node_test.go b/e2e_multi_node_test.go index b1ede6a..18c2d0a 100644 --- a/e2e_multi_node_test.go +++ b/e2e_multi_node_test.go @@ -3,12 +3,13 @@ package main import ( - "asvec/tests" "context" "fmt" "strings" "testing" + "github.com/aerospike/asvec/tests" + avs "github.com/aerospike/avs-client-go" "github.com/stretchr/testify/suite" ) diff --git a/e2e_test.go b/e2e_test.go index 415c942..eb01d87 100644 --- a/e2e_test.go +++ b/e2e_test.go @@ -3,8 +3,6 @@ package main import ( - "asvec/cmd/flags" - "asvec/tests" "bytes" "context" "crypto/tls" @@ -19,6 +17,10 @@ import ( "testing" "time" + "github.com/aerospike/asvec/tests" + + "github.com/aerospike/asvec/cmd/flags" + avs "github.com/aerospike/avs-client-go" "github.com/aerospike/avs-client-go/protos" "github.com/stretchr/testify/suite" diff --git a/go.mod b/go.mod index a677594..d8b2dce 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module asvec +module github.com/aerospike/asvec go 1.22.0 diff --git a/main.go b/main.go index 581cb68..b7d624a 100644 --- a/main.go +++ b/main.go @@ -1,6 +1,6 @@ package main -import "asvec/cmd" +import "github.com/aerospike/asvec/cmd" func main() { cmd.Execute() diff --git a/tests/utils.go b/tests/utils.go index 0e21039..16fd60d 100644 --- a/tests/utils.go +++ b/tests/utils.go @@ -3,7 +3,6 @@ package tests import ( - "asvec/utils" "context" "crypto/tls" "crypto/x509" @@ -14,6 +13,8 @@ import ( "os/exec" "time" + "github.com/aerospike/asvec/utils" + avs "github.com/aerospike/avs-client-go" "github.com/aerospike/avs-client-go/protos" "github.com/aerospike/tools-common-go/client"