From 4fca4a5e3ec80337b29cf6a23e788024b2b71a0d Mon Sep 17 00:00:00 2001 From: Ryan McGuire Date: Thu, 19 Dec 2024 14:55:49 -0500 Subject: [PATCH] Rename project --- Makefile | 4 ---- cmd/alias_add.go | 4 ++-- cmd/alias_delete.go | 2 +- cmd/cache.go | 2 +- cmd/config_generate.go | 4 ++-- cmd/project.go | 4 ++-- cmd/project_show.go | 2 +- cmd/root.go | 2 +- cmd/util_fzf.go | 4 ++-- cmd/util_init.go | 14 +++++++------- go.mod | 2 +- internal/cache/cache.go | 6 +++--- internal/cache/cache_aliases.go | 2 +- internal/cache/cache_load.go | 6 +++--- internal/cache/cache_projects.go | 2 +- internal/cache/fuzz.go | 2 +- internal/cache/projects.go | 2 +- internal/cache/projects_alias.go | 2 +- internal/cache/projects_fs.go | 2 +- internal/cache/projects_git.go | 2 +- internal/config/config.go | 2 +- internal/remotes/gitea/gitea.go | 2 +- internal/remotes/gitea/gitea_api.go | 4 ++-- internal/remotes/gitea/gitea_stream.go | 4 ++-- internal/remotes/github/github.go | 2 +- internal/remotes/github/github_api.go | 4 ++-- internal/remotes/github/github_stream.go | 4 ++-- internal/remotes/gitlab/gitlab.go | 2 +- internal/remotes/gitlab/gitlab_api.go | 6 +++--- internal/remotes/gitlab/gitlab_strean.go | 4 ++-- internal/remotes/load/load.go | 2 +- internal/remotes/remote/remote.go | 4 ++-- internal/remotes/remotes.go | 6 +++--- main.go | 2 +- 34 files changed, 57 insertions(+), 61 deletions(-) diff --git a/Makefile b/Makefile index cec8ef1..54f3bd0 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,4 @@ CMD_NAME := git-project-manager -GO_FORMATTER := gofumpt - -IS_GNU_SED := $(shell sed --version >/dev/null 2>&1 && echo true || echo false) -SED_INLINE := $(if $(filter true,$(IS_GNU_SED)),-i,-i '') .PHONY: all test build install docs clean diff --git a/cmd/alias_add.go b/cmd/alias_add.go index fe5a30a..3139136 100644 --- a/cmd/alias_add.go +++ b/cmd/alias_add.go @@ -8,8 +8,8 @@ import ( "github.com/spf13/cobra" "github.com/spf13/viper" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/cache" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/projects" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/cache" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/projects" ) var aliasAddCmd = &cobra.Command{ diff --git a/cmd/alias_delete.go b/cmd/alias_delete.go index b7d3db3..d53f481 100644 --- a/cmd/alias_delete.go +++ b/cmd/alias_delete.go @@ -6,7 +6,7 @@ import ( "github.com/pterm/pterm" "github.com/spf13/cobra" "github.com/spf13/viper" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/projects" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/projects" ) var aliasDeleteCmd = &cobra.Command{ diff --git a/cmd/cache.go b/cmd/cache.go index 2956392..c11a418 100644 --- a/cmd/cache.go +++ b/cmd/cache.go @@ -5,7 +5,7 @@ import ( "github.com/spf13/cobra" "github.com/spf13/viper" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/cache" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/cache" ) var projectCache *cache.Cache diff --git a/cmd/config_generate.go b/cmd/config_generate.go index f55c657..9cff9d5 100644 --- a/cmd/config_generate.go +++ b/cmd/config_generate.go @@ -10,8 +10,8 @@ import ( "github.com/spf13/viper" "gopkg.in/yaml.v3" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/config" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/info" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/config" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/info" ) var configGenerateCmd = &cobra.Command{ diff --git a/cmd/project.go b/cmd/project.go index f02e487..81745b9 100644 --- a/cmd/project.go +++ b/cmd/project.go @@ -4,8 +4,8 @@ import ( "github.com/spf13/cobra" "github.com/spf13/viper" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/cache" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/projects" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/cache" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/projects" ) var projectCmd = &cobra.Command{ diff --git a/cmd/project_show.go b/cmd/project_show.go index a437d73..aef9f83 100644 --- a/cmd/project_show.go +++ b/cmd/project_show.go @@ -8,7 +8,7 @@ import ( "github.com/spf13/cobra" "github.com/spf13/viper" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/projects" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/projects" ) var projectShowCmd = &cobra.Command{ diff --git a/cmd/root.go b/cmd/root.go index fd27cb2..c120cbe 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -10,7 +10,7 @@ import ( "github.com/spf13/cobra" "github.com/spf13/viper" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/config" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/config" ) var ( diff --git a/cmd/util_fzf.go b/cmd/util_fzf.go index e195dc1..2a9def5 100644 --- a/cmd/util_fzf.go +++ b/cmd/util_fzf.go @@ -6,8 +6,8 @@ import ( fzf "github.com/ktr0731/go-fuzzyfinder" "golang.org/x/exp/slices" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/cache" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/projects" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/cache" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/projects" ) type fzfProjectOpts struct { diff --git a/cmd/util_init.go b/cmd/util_init.go index 148a80c..e2fccbf 100644 --- a/cmd/util_init.go +++ b/cmd/util_init.go @@ -7,13 +7,13 @@ import ( "strings" "github.com/spf13/cobra" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/cache" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/config" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes" - gitearemote "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/gitea" - githubremote "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/github" - gitlabremote "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/gitlab" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/remote" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/cache" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/config" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes" + gitearemote "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/gitea" + githubremote "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/github" + gitlabremote "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/gitlab" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/remote" "golang.org/x/sys/unix" ) diff --git a/go.mod b/go.mod index 308c087..7621e40 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager +module gitea.libretechconsulting.com/rmcguire/git-project-manager go 1.23.4 diff --git a/internal/cache/cache.go b/internal/cache/cache.go index 7177084..5254914 100644 --- a/internal/cache/cache.go +++ b/internal/cache/cache.go @@ -7,9 +7,9 @@ import ( "time" "github.com/pterm/pterm" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/config" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/projects" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/config" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/projects" "gopkg.in/yaml.v3" ) diff --git a/internal/cache/cache_aliases.go b/internal/cache/cache_aliases.go index a1c00a6..dbe6701 100644 --- a/internal/cache/cache_aliases.go +++ b/internal/cache/cache_aliases.go @@ -3,7 +3,7 @@ package cache import ( "errors" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/projects" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/projects" "golang.org/x/exp/slices" ) diff --git a/internal/cache/cache_load.go b/internal/cache/cache_load.go index 496ba8b..f63db4f 100644 --- a/internal/cache/cache_load.go +++ b/internal/cache/cache_load.go @@ -5,9 +5,9 @@ import ( "sync" "github.com/pterm/pterm" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/load" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/remote" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/load" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/remote" "golang.org/x/exp/slices" ) diff --git a/internal/cache/cache_projects.go b/internal/cache/cache_projects.go index b0cf424..d441b7b 100644 --- a/internal/cache/cache_projects.go +++ b/internal/cache/cache_projects.go @@ -4,7 +4,7 @@ import ( "strings" "github.com/pterm/pterm" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/projects" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/projects" "golang.org/x/exp/slices" ) diff --git a/internal/cache/fuzz.go b/internal/cache/fuzz.go index fe42991..b878fe4 100644 --- a/internal/cache/fuzz.go +++ b/internal/cache/fuzz.go @@ -6,7 +6,7 @@ import ( "github.com/lithammer/fuzzysearch/fuzzy" "golang.org/x/exp/slices" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/projects" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/projects" ) // Performs a fuzzy find on the input string, returning the closest diff --git a/internal/cache/projects.go b/internal/cache/projects.go index 440959c..16fed6d 100644 --- a/internal/cache/projects.go +++ b/internal/cache/projects.go @@ -4,7 +4,7 @@ import ( "strings" "github.com/pterm/pterm" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/projects" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/projects" "golang.org/x/exp/slices" ) diff --git a/internal/cache/projects_alias.go b/internal/cache/projects_alias.go index 6ce3954..17906d2 100644 --- a/internal/cache/projects_alias.go +++ b/internal/cache/projects_alias.go @@ -7,7 +7,7 @@ import ( "text/tabwriter" "github.com/pterm/pterm" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/projects" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/projects" "golang.org/x/exp/slices" ) diff --git a/internal/cache/projects_fs.go b/internal/cache/projects_fs.go index cf1a950..0f045c8 100644 --- a/internal/cache/projects_fs.go +++ b/internal/cache/projects_fs.go @@ -6,7 +6,7 @@ import ( "path/filepath" "strings" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/projects" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/projects" ) func (c *Cache) GoTo(project *projects.Project) { diff --git a/internal/cache/projects_git.go b/internal/cache/projects_git.go index d895ebe..3eec1a4 100644 --- a/internal/cache/projects_git.go +++ b/internal/cache/projects_git.go @@ -5,7 +5,7 @@ import ( "time" git "github.com/go-git/go-git/v5" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/projects" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/projects" ) const gitCloneTimeoutSecs = 60 diff --git a/internal/config/config.go b/internal/config/config.go index e5de3d5..979e999 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -3,7 +3,7 @@ package config import ( "time" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/info" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/info" ) type Config struct { diff --git a/internal/remotes/gitea/gitea.go b/internal/remotes/gitea/gitea.go index ef68d41..a9aff63 100644 --- a/internal/remotes/gitea/gitea.go +++ b/internal/remotes/gitea/gitea.go @@ -5,7 +5,7 @@ import ( "net/url" "code.gitea.io/sdk/gitea" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/info" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/info" ) type GiteaRemote struct { diff --git a/internal/remotes/gitea/gitea_api.go b/internal/remotes/gitea/gitea_api.go index c6d18e5..e7e2bf4 100644 --- a/internal/remotes/gitea/gitea_api.go +++ b/internal/remotes/gitea/gitea_api.go @@ -7,8 +7,8 @@ import ( "strings" "code.gitea.io/sdk/gitea" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/projects" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/remote" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/projects" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/remote" ) func (r *GiteaRemote) ReposToProjects(repos []*gitea.Repository) []*projects.Project { diff --git a/internal/remotes/gitea/gitea_stream.go b/internal/remotes/gitea/gitea_stream.go index 263982d..c78099c 100644 --- a/internal/remotes/gitea/gitea_stream.go +++ b/internal/remotes/gitea/gitea_stream.go @@ -4,8 +4,8 @@ import ( "errors" "code.gitea.io/sdk/gitea" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/load" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/remote" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/load" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/remote" ) const giteaReposPerPage = 20 diff --git a/internal/remotes/github/github.go b/internal/remotes/github/github.go index 8c9917e..8bd6524 100644 --- a/internal/remotes/github/github.go +++ b/internal/remotes/github/github.go @@ -4,7 +4,7 @@ import ( "fmt" "github.com/google/go-github/v58/github" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/info" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/info" ) type GithubRemote struct { diff --git a/internal/remotes/github/github_api.go b/internal/remotes/github/github_api.go index 97e31e3..975d205 100644 --- a/internal/remotes/github/github_api.go +++ b/internal/remotes/github/github_api.go @@ -4,8 +4,8 @@ import ( "math" "github.com/google/go-github/v58/github" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/projects" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/remote" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/projects" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/remote" ) func (r *GithubRemote) GetNumProjects(opts *remote.RemoteQueryOpts) int { diff --git a/internal/remotes/github/github_stream.go b/internal/remotes/github/github_stream.go index 997631f..54e27d1 100644 --- a/internal/remotes/github/github_stream.go +++ b/internal/remotes/github/github_stream.go @@ -4,8 +4,8 @@ import ( "errors" "github.com/google/go-github/v58/github" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/load" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/remote" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/load" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/remote" ) const githubReposPerPage = 20 diff --git a/internal/remotes/gitlab/gitlab.go b/internal/remotes/gitlab/gitlab.go index c56960d..13a9513 100644 --- a/internal/remotes/gitlab/gitlab.go +++ b/internal/remotes/gitlab/gitlab.go @@ -4,7 +4,7 @@ import ( "fmt" "github.com/xanzy/go-gitlab" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/info" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/info" ) type GitlabRemote struct { diff --git a/internal/remotes/gitlab/gitlab_api.go b/internal/remotes/gitlab/gitlab_api.go index 9630661..0a19067 100644 --- a/internal/remotes/gitlab/gitlab_api.go +++ b/internal/remotes/gitlab/gitlab_api.go @@ -5,9 +5,9 @@ import ( "github.com/pterm/pterm" "github.com/xanzy/go-gitlab" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/info" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/projects" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/remote" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/info" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/projects" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/remote" ) var DefaultListOpts = &gitlab.ListProjectsOptions{ diff --git a/internal/remotes/gitlab/gitlab_strean.go b/internal/remotes/gitlab/gitlab_strean.go index f1c78f8..2c023e9 100644 --- a/internal/remotes/gitlab/gitlab_strean.go +++ b/internal/remotes/gitlab/gitlab_strean.go @@ -4,8 +4,8 @@ import ( "sync" "github.com/xanzy/go-gitlab" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/load" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/remote" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/load" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/remote" ) // Will determine number of total projects, diff --git a/internal/remotes/load/load.go b/internal/remotes/load/load.go index 324314c..b7f0104 100644 --- a/internal/remotes/load/load.go +++ b/internal/remotes/load/load.go @@ -1,6 +1,6 @@ package load -import "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/projects" +import "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/projects" // This package provides structs that serve // as the interface between remotes, and any code diff --git a/internal/remotes/remote/remote.go b/internal/remotes/remote/remote.go index c7c33e1..2c67fb3 100644 --- a/internal/remotes/remote/remote.go +++ b/internal/remotes/remote/remote.go @@ -6,8 +6,8 @@ import ( "net/url" "time" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/info" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/load" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/info" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/load" ) const defNetDialTimeoutSecs = 3 diff --git a/internal/remotes/remotes.go b/internal/remotes/remotes.go index 2958a72..eb9061b 100644 --- a/internal/remotes/remotes.go +++ b/internal/remotes/remotes.go @@ -3,9 +3,9 @@ package remotes import ( "errors" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/load" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/projects" - "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/remote" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/load" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/projects" + "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/remote" ) // Will determine number of total projects, diff --git a/main.go b/main.go index 756d8fe..8e16574 100644 --- a/main.go +++ b/main.go @@ -1,6 +1,6 @@ package main -import "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/cmd" +import "gitea.libretechconsulting.com/rmcguire/git-project-manager/cmd" func main() { cmd.Execute()