Rename project

This commit is contained in:
Ryan McGuire 2024-12-19 14:55:49 -05:00
parent 06511f5690
commit 4fca4a5e3e
34 changed files with 57 additions and 61 deletions

View File

@ -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

View File

@ -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{

View File

@ -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{

View File

@ -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

View File

@ -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{

View File

@ -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{

View File

@ -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{

View File

@ -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 (

View File

@ -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 {

View File

@ -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"
)

2
go.mod
View File

@ -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

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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) {

View File

@ -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

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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

View File

@ -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 {

View File

@ -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 {

View File

@ -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

View File

@ -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 {

View File

@ -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{

View File

@ -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,

View File

@ -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

View File

@ -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

View File

@ -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,

View File

@ -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()