diff --git a/README.md b/README.md index f824487..813e374 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ ![The devzero logo](https://console.devzero.io/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Ffull_logo.379052d8.png&w=1080&q=75) -![Workflow Status](https://img.shields.io/github/actions/workflow/status/devzero-inc/local-developer-analytics/go.yaml) -![License](https://img.shields.io/github/license/devzero-inc/local-developer-analytics) -![Version](https://img.shields.io/github/v/tag/devzero-inc/local-developer-analytics) +![Workflow Status](https://img.shields.io/github/actions/workflow/status/devzero-inc/oda/go.yaml) +![License](https://img.shields.io/github/license/devzero-inc/oda) +![Version](https://img.shields.io/github/v/tag/devzero-inc/oda) # ODA @@ -28,7 +28,7 @@ brew install <> You can install `oda` using `wget`: ```sh -wget https://github.com/devzero-inc/local-developer-analytics/releases/download//oda--.zip +wget https://github.com/devzero-inc/oda/releases/download//oda--.zip unzip oda--.zip mv oda /usr/local/bin ``` @@ -67,4 +67,4 @@ For updates on the ODA CLI, [follow this repo on GitHub][repo]. For information on contributing to this project, please see the [contributing guidelines](CONTRIBUTING.md). -[repo]: https://github.com/devzero-inc/local-developer-analytics \ No newline at end of file +[repo]: https://github.com/devzero-inc/oda \ No newline at end of file diff --git a/client/client.go b/client/client.go index 70f7396..b46ae33 100644 --- a/client/client.go +++ b/client/client.go @@ -5,8 +5,8 @@ import ( "fmt" "time" - gen "github.com/devzero-inc/local-developer-analytics/gen/api/v1" - "github.com/devzero-inc/local-developer-analytics/logging" + gen "github.com/devzero-inc/oda/gen/api/v1" + "github.com/devzero-inc/oda/logging" "github.com/rs/zerolog" "google.golang.org/grpc" diff --git a/cmd/cmd.go b/cmd/cmd.go index 3bb632a..b665818 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -7,15 +7,15 @@ import ( "os" "strings" - "github.com/devzero-inc/local-developer-analytics/config" - "github.com/devzero-inc/local-developer-analytics/daemon" - "github.com/devzero-inc/local-developer-analytics/database" - "github.com/devzero-inc/local-developer-analytics/job" - "github.com/devzero-inc/local-developer-analytics/logging" - "github.com/devzero-inc/local-developer-analytics/resources" - "github.com/devzero-inc/local-developer-analytics/shell" - "github.com/devzero-inc/local-developer-analytics/user" - "github.com/devzero-inc/local-developer-analytics/util" + "github.com/devzero-inc/oda/config" + "github.com/devzero-inc/oda/daemon" + "github.com/devzero-inc/oda/database" + "github.com/devzero-inc/oda/job" + "github.com/devzero-inc/oda/logging" + "github.com/devzero-inc/oda/resources" + "github.com/devzero-inc/oda/shell" + "github.com/devzero-inc/oda/user" + "github.com/devzero-inc/oda/util" "github.com/pkg/errors" "github.com/spf13/cobra" diff --git a/cmd/collect.go b/cmd/collect.go index 35eb0d3..ec5b479 100644 --- a/cmd/collect.go +++ b/cmd/collect.go @@ -3,12 +3,12 @@ package cmd import ( "time" - "github.com/devzero-inc/local-developer-analytics/client" - "github.com/devzero-inc/local-developer-analytics/collector" - "github.com/devzero-inc/local-developer-analytics/config" - "github.com/devzero-inc/local-developer-analytics/logging" - "github.com/devzero-inc/local-developer-analytics/process" - "github.com/devzero-inc/local-developer-analytics/user" + "github.com/devzero-inc/oda/client" + "github.com/devzero-inc/oda/collector" + "github.com/devzero-inc/oda/config" + "github.com/devzero-inc/oda/logging" + "github.com/devzero-inc/oda/process" + "github.com/devzero-inc/oda/user" "github.com/pkg/errors" diff --git a/cmd/version.go b/cmd/version.go index 11595a0..2923ea3 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -3,7 +3,7 @@ package cmd import ( "fmt" - "github.com/devzero-inc/local-developer-analytics/config" + "github.com/devzero-inc/oda/config" "github.com/spf13/cobra" ) diff --git a/collector/collector.go b/collector/collector.go index ef830fb..910d6e6 100644 --- a/collector/collector.go +++ b/collector/collector.go @@ -8,10 +8,10 @@ import ( "strings" "sync" - "github.com/devzero-inc/local-developer-analytics/client" - gen "github.com/devzero-inc/local-developer-analytics/gen/api/v1" - "github.com/devzero-inc/local-developer-analytics/process" - "github.com/devzero-inc/local-developer-analytics/util" + "github.com/devzero-inc/oda/client" + gen "github.com/devzero-inc/oda/gen/api/v1" + "github.com/devzero-inc/oda/process" + "github.com/devzero-inc/oda/util" "github.com/rs/zerolog" diff --git a/collector/command.go b/collector/command.go index 3173644..591f718 100644 --- a/collector/command.go +++ b/collector/command.go @@ -4,10 +4,10 @@ import ( "regexp" "time" - "github.com/devzero-inc/local-developer-analytics/config" - "github.com/devzero-inc/local-developer-analytics/database" - gen "github.com/devzero-inc/local-developer-analytics/gen/api/v1" - "github.com/devzero-inc/local-developer-analytics/logging" + "github.com/devzero-inc/oda/config" + "github.com/devzero-inc/oda/database" + gen "github.com/devzero-inc/oda/gen/api/v1" + "github.com/devzero-inc/oda/logging" ) // Command is the model for command diff --git a/config/config.go b/config/config.go index 0862820..4990d15 100644 --- a/config/config.go +++ b/config/config.go @@ -8,7 +8,7 @@ import ( "os/user" "path/filepath" - "github.com/devzero-inc/local-developer-analytics/util" + "github.com/devzero-inc/oda/util" "github.com/pkg/errors" diff --git a/config/os.go b/config/os.go index 2856165..868cf0b 100644 --- a/config/os.go +++ b/config/os.go @@ -8,7 +8,7 @@ import ( "path/filepath" "runtime" - "github.com/devzero-inc/local-developer-analytics/util" + "github.com/devzero-inc/oda/util" "github.com/manifoldco/promptui" ) diff --git a/daemon/daemon.go b/daemon/daemon.go index 528ff5a..6d1cde6 100644 --- a/daemon/daemon.go +++ b/daemon/daemon.go @@ -10,8 +10,8 @@ import ( "path/filepath" "strings" - "github.com/devzero-inc/local-developer-analytics/config" - "github.com/devzero-inc/local-developer-analytics/util" + "github.com/devzero-inc/oda/config" + "github.com/devzero-inc/oda/util" "github.com/spf13/afero" diff --git a/database/database.go b/database/database.go index e431bb9..38c76ba 100644 --- a/database/database.go +++ b/database/database.go @@ -6,8 +6,8 @@ import ( "os/user" "path/filepath" - "github.com/devzero-inc/local-developer-analytics/config" - "github.com/devzero-inc/local-developer-analytics/util" + "github.com/devzero-inc/oda/config" + "github.com/devzero-inc/oda/util" "github.com/jmoiron/sqlx" _ "modernc.org/sqlite" diff --git a/database/migrations.go b/database/migrations.go index 319e5b7..735c8be 100644 --- a/database/migrations.go +++ b/database/migrations.go @@ -4,7 +4,7 @@ import ( "fmt" "os" - "github.com/devzero-inc/local-developer-analytics/config" + "github.com/devzero-inc/oda/config" ) // RunMigrations all additional migrations should be registered here diff --git a/gen/api/v1/collector.pb.go b/gen/api/v1/collector.pb.go index 416b70f..6d66463 100644 --- a/gen/api/v1/collector.pb.go +++ b/gen/api/v1/collector.pb.go @@ -559,13 +559,11 @@ var file_api_v1_collector_proto_rawDesc = []byte{ 0x73, 0x73, 0x65, 0x73, 0x12, 0x1c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x42, 0x4f, 0x0a, 0x0a, 0x67, 0x65, - 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x50, 0x01, 0x5a, 0x3f, 0x67, 0x69, 0x74, 0x68, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x42, 0x39, 0x0a, 0x0a, 0x67, 0x65, + 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x50, 0x01, 0x5a, 0x29, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x65, 0x76, 0x7a, 0x65, 0x72, 0x6f, 0x2d, 0x69, - 0x6e, 0x63, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x2d, 0x64, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, - 0x65, 0x72, 0x2d, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x2f, 0x67, 0x65, 0x6e, - 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x3b, 0x67, 0x65, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, + 0x6e, 0x63, 0x2f, 0x6f, 0x64, 0x61, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, + 0x31, 0x3b, 0x67, 0x65, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/gen/api/v1/genconnect/collector.connect.go b/gen/api/v1/genconnect/collector.connect.go index 7039d55..5884efb 100644 --- a/gen/api/v1/genconnect/collector.connect.go +++ b/gen/api/v1/genconnect/collector.connect.go @@ -11,7 +11,7 @@ import ( strings "strings" connect "connectrpc.com/connect" - v1 "github.com/devzero-inc/local-developer-analytics/gen/api/v1" + v1 "github.com/devzero-inc/oda/gen/api/v1" emptypb "google.golang.org/protobuf/types/known/emptypb" ) diff --git a/go.mod b/go.mod index 10673fe..8114405 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/devzero-inc/local-developer-analytics +module github.com/devzero-inc/oda go 1.21.4 diff --git a/install.sh b/install.sh index c01454a..b17efcf 100755 --- a/install.sh +++ b/install.sh @@ -17,7 +17,7 @@ else fi # Download, unzip, and move binary in one go -$downloader https://github.com/devzero-inc/local-developer-analytics/releases/download/$ODA_VERSION/oda-$OS-$ARCH.tar.gz && \ +$downloader https://github.com/devzero-inc/oda/releases/download/$ODA_VERSION/oda-$OS-$ARCH.tar.gz && \ tar -xvf oda-$OS-$ARCH.tar.gz && \ sudo mv oda /usr/local/bin/oda && \ rm oda-$OS-$ARCH.tar.gz diff --git a/job/job.go b/job/job.go index 684b2ab..a6d423c 100644 --- a/job/job.go +++ b/job/job.go @@ -3,8 +3,8 @@ package job import ( "time" - "github.com/devzero-inc/local-developer-analytics/collector" - "github.com/devzero-inc/local-developer-analytics/process" + "github.com/devzero-inc/oda/collector" + "github.com/devzero-inc/oda/process" ) // Cleanup job that will run in background and every 'hours' try to run the ticker diff --git a/main.go b/main.go index e12b00b..5d14c88 100644 --- a/main.go +++ b/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/devzero-inc/local-developer-analytics/cmd" + "github.com/devzero-inc/oda/cmd" ) func main() { diff --git a/process/process.go b/process/process.go index 5f73e3e..016c579 100644 --- a/process/process.go +++ b/process/process.go @@ -5,8 +5,8 @@ import ( "fmt" "time" - "github.com/devzero-inc/local-developer-analytics/database" - gen "github.com/devzero-inc/local-developer-analytics/gen/api/v1" + "github.com/devzero-inc/oda/database" + gen "github.com/devzero-inc/oda/gen/api/v1" "github.com/rs/zerolog" ) diff --git a/proto/api/v1/collector.proto b/proto/api/v1/collector.proto index 20858bd..a0053b3 100644 --- a/proto/api/v1/collector.proto +++ b/proto/api/v1/collector.proto @@ -4,7 +4,7 @@ package api.v1; import "google/protobuf/empty.proto"; -option go_package = "github.com/devzero-inc/local-developer-analytics/gen/api/v1;gen"; +option go_package = "github.com/devzero-inc/oda/gen/api/v1;gen"; option java_multiple_files = true; option java_package = "gen.api.v1"; diff --git a/resources/charts.go b/resources/charts.go index 7d4027d..69b762d 100644 --- a/resources/charts.go +++ b/resources/charts.go @@ -5,8 +5,8 @@ import ( "fmt" "math" - "github.com/devzero-inc/local-developer-analytics/collector" - "github.com/devzero-inc/local-developer-analytics/process" + "github.com/devzero-inc/oda/collector" + "github.com/devzero-inc/oda/process" ) // ChartData represents the overall structure for a Chart.js chart configuration. diff --git a/resources/routes.go b/resources/routes.go index 1d73e5e..327e629 100644 --- a/resources/routes.go +++ b/resources/routes.go @@ -9,9 +9,9 @@ import ( "text/template" "time" - "github.com/devzero-inc/local-developer-analytics/collector" - "github.com/devzero-inc/local-developer-analytics/logging" - "github.com/devzero-inc/local-developer-analytics/process" + "github.com/devzero-inc/oda/collector" + "github.com/devzero-inc/oda/logging" + "github.com/devzero-inc/oda/process" ) // Embedding directory diff --git a/shell/shell.go b/shell/shell.go index 776647b..206e9eb 100644 --- a/shell/shell.go +++ b/shell/shell.go @@ -10,9 +10,9 @@ import ( "strings" "text/template" - "github.com/devzero-inc/local-developer-analytics/collector" - "github.com/devzero-inc/local-developer-analytics/config" - "github.com/devzero-inc/local-developer-analytics/util" + "github.com/devzero-inc/oda/collector" + "github.com/devzero-inc/oda/config" + "github.com/devzero-inc/oda/util" "github.com/manifoldco/promptui" "github.com/rs/zerolog" diff --git a/user/user.go b/user/user.go index db42c68..7cc8d2e 100644 --- a/user/user.go +++ b/user/user.go @@ -10,11 +10,11 @@ import ( "path/filepath" "strings" - "github.com/devzero-inc/local-developer-analytics/collector" - "github.com/devzero-inc/local-developer-analytics/config" - "github.com/devzero-inc/local-developer-analytics/database" - "github.com/devzero-inc/local-developer-analytics/logging" - "github.com/devzero-inc/local-developer-analytics/util" + "github.com/devzero-inc/oda/collector" + "github.com/devzero-inc/oda/config" + "github.com/devzero-inc/oda/database" + "github.com/devzero-inc/oda/logging" + "github.com/devzero-inc/oda/util" jwtlib "github.com/golang-jwt/jwt/v4" "github.com/golang-jwt/jwt/v4" diff --git a/util/file.go b/util/file.go index 79c29ef..8add81f 100644 --- a/util/file.go +++ b/util/file.go @@ -10,7 +10,7 @@ import ( "strconv" "strings" - "github.com/devzero-inc/local-developer-analytics/logging" + "github.com/devzero-inc/oda/logging" ) // FileExists checks if a file exists or not