diff --git a/client/client.go b/client/client.go index 5181e4c..70f7396 100644 --- a/client/client.go +++ b/client/client.go @@ -3,10 +3,11 @@ package client import ( "context" "fmt" - gen "lda/gen/api/v1" - "lda/logging" "time" + gen "github.com/devzero-inc/local-developer-analytics/gen/api/v1" + "github.com/devzero-inc/local-developer-analytics/logging" + "github.com/rs/zerolog" "google.golang.org/grpc" "google.golang.org/grpc/connectivity" diff --git a/cmd/cmd.go b/cmd/cmd.go index b118ace..fda608e 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -3,19 +3,20 @@ package cmd import ( "fmt" "io" - "lda/config" - "lda/daemon" - "lda/database" - "lda/job" - "lda/logging" - "lda/resources" - "lda/shell" - "lda/user" - "lda/util" "net/http" "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/pkg/errors" "github.com/spf13/cobra" ) diff --git a/cmd/collect.go b/cmd/collect.go index 8cccab0..854a826 100644 --- a/cmd/collect.go +++ b/cmd/collect.go @@ -1,14 +1,15 @@ package cmd import ( - "lda/client" - "lda/collector" - "lda/config" - "lda/logging" - "lda/process" - "lda/user" "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/pkg/errors" "github.com/spf13/cobra" diff --git a/cmd/version.go b/cmd/version.go index 746174c..0e250d2 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -2,7 +2,8 @@ package cmd import ( "fmt" - "lda/config" + + "github.com/devzero-inc/local-developer-analytics/config" "github.com/spf13/cobra" ) diff --git a/collector/collector.go b/collector/collector.go index 9ab6ba2..d628884 100644 --- a/collector/collector.go +++ b/collector/collector.go @@ -3,14 +3,15 @@ package collector import ( "context" "fmt" - "lda/client" - gen "lda/gen/api/v1" - "lda/process" - "lda/util" "net" "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/rs/zerolog" "time" diff --git a/collector/command.go b/collector/command.go index 562e86a..407b5f7 100644 --- a/collector/command.go +++ b/collector/command.go @@ -1,12 +1,13 @@ package collector import ( - "lda/config" - "lda/database" - gen "lda/gen/api/v1" - "lda/logging" "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" ) // Command is the model for command diff --git a/config/config.go b/config/config.go index 9381bc4..1850200 100644 --- a/config/config.go +++ b/config/config.go @@ -4,11 +4,12 @@ import ( _ "embed" "fmt" "io" - "lda/util" "os" "os/user" "path/filepath" + "github.com/devzero-inc/local-developer-analytics/util" + "github.com/pkg/errors" "github.com/spf13/viper" diff --git a/config/os.go b/config/os.go index 5da6fcf..82b5f39 100644 --- a/config/os.go +++ b/config/os.go @@ -2,13 +2,14 @@ package config import ( "fmt" - "lda/util" "os" "os/user" "path" "path/filepath" "runtime" + "github.com/devzero-inc/local-developer-analytics/util" + "github.com/manifoldco/promptui" ) diff --git a/daemon/daemon.go b/daemon/daemon.go index eedcfed..0c326e9 100644 --- a/daemon/daemon.go +++ b/daemon/daemon.go @@ -5,12 +5,13 @@ import ( "embed" "fmt" "html/template" - "lda/config" - "lda/util" "os/exec" "os/user" "path/filepath" + "github.com/devzero-inc/local-developer-analytics/config" + "github.com/devzero-inc/local-developer-analytics/util" + "github.com/spf13/afero" "github.com/rs/zerolog" diff --git a/database/database.go b/database/database.go index 279c7d7..1f15736 100644 --- a/database/database.go +++ b/database/database.go @@ -2,12 +2,13 @@ package database import ( "fmt" - "lda/config" - "lda/util" "os" "os/user" "path/filepath" + "github.com/devzero-inc/local-developer-analytics/config" + "github.com/devzero-inc/local-developer-analytics/util" + "github.com/jmoiron/sqlx" _ "github.com/mattn/go-sqlite3" ) diff --git a/database/migrations.go b/database/migrations.go index 9f91d26..1c80585 100644 --- a/database/migrations.go +++ b/database/migrations.go @@ -2,8 +2,9 @@ package database import ( "fmt" - "lda/config" "os" + + "github.com/devzero-inc/local-developer-analytics/config" ) // RunMigrations all additional migrations should be registered here diff --git a/go.mod b/go.mod index e44080d..98b0c2a 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module lda +module github.com/devzero-inc/local-developer-analytics go 1.21.4 diff --git a/job/job.go b/job/job.go index 6822dbb..684b2ab 100644 --- a/job/job.go +++ b/job/job.go @@ -1,9 +1,10 @@ package job import ( - "lda/collector" - "lda/process" "time" + + "github.com/devzero-inc/local-developer-analytics/collector" + "github.com/devzero-inc/local-developer-analytics/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 878f6db..e12b00b 100644 --- a/main.go +++ b/main.go @@ -1,7 +1,7 @@ package main import ( - "lda/cmd" + "github.com/devzero-inc/local-developer-analytics/cmd" ) func main() { diff --git a/process/process.go b/process/process.go index 6d0ea93..5f73e3e 100644 --- a/process/process.go +++ b/process/process.go @@ -3,10 +3,11 @@ package process import ( "errors" "fmt" - "lda/database" - gen "lda/gen/api/v1" "time" + "github.com/devzero-inc/local-developer-analytics/database" + gen "github.com/devzero-inc/local-developer-analytics/gen/api/v1" + "github.com/rs/zerolog" ) diff --git a/proto/api/v1/collector.proto b/proto/api/v1/collector.proto index af06b32..21e4635 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 = "lda/gen/api/v1;gen"; +option go_package = "github.com/devzero-inc/local-developer-analytics/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 bcb9536..7d4027d 100644 --- a/resources/charts.go +++ b/resources/charts.go @@ -3,9 +3,10 @@ package resources import ( "encoding/json" "fmt" - "lda/collector" - "lda/process" "math" + + "github.com/devzero-inc/local-developer-analytics/collector" + "github.com/devzero-inc/local-developer-analytics/process" ) // ChartData represents the overall structure for a Chart.js chart configuration. diff --git a/resources/routes.go b/resources/routes.go index b4ee756..1d73e5e 100644 --- a/resources/routes.go +++ b/resources/routes.go @@ -3,14 +3,15 @@ package resources import ( "embed" "encoding/json" - "lda/collector" - "lda/logging" - "lda/process" "net/http" "strconv" "sync" "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" ) // Embedding directory diff --git a/shell/shell.go b/shell/shell.go index 47b7835..3a84efb 100644 --- a/shell/shell.go +++ b/shell/shell.go @@ -4,15 +4,16 @@ import ( "bytes" "embed" "fmt" - "lda/collector" - "lda/config" - "lda/util" "os" "os/user" "path/filepath" "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/manifoldco/promptui" "github.com/rs/zerolog" ) diff --git a/user/user.go b/user/user.go index abcfa73..e1f98fe 100644 --- a/user/user.go +++ b/user/user.go @@ -4,16 +4,17 @@ import ( "database/sql" "errors" "fmt" - "lda/collector" - "lda/config" - "lda/database" - "lda/logging" - "lda/util" "os" "os/user" "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/manifoldco/promptui" ) diff --git a/util/file.go b/util/file.go index 184c0e3..cceed44 100644 --- a/util/file.go +++ b/util/file.go @@ -3,12 +3,13 @@ package util import ( "bufio" "fmt" - "lda/logging" "os" "os/user" "path/filepath" "strconv" "strings" + + "github.com/devzero-inc/local-developer-analytics/logging" ) // FileExists checks if a file exists or not