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 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 .PHONY: all test build install docs clean

View File

@ -8,8 +8,8 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/viper" "github.com/spf13/viper"
"gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/cache" "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/cache"
"gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/projects" "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/projects"
) )
var aliasAddCmd = &cobra.Command{ var aliasAddCmd = &cobra.Command{

View File

@ -6,7 +6,7 @@ import (
"github.com/pterm/pterm" "github.com/pterm/pterm"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/viper" "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{ var aliasDeleteCmd = &cobra.Command{

View File

@ -5,7 +5,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/viper" "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 var projectCache *cache.Cache

View File

@ -10,8 +10,8 @@ import (
"github.com/spf13/viper" "github.com/spf13/viper"
"gopkg.in/yaml.v3" "gopkg.in/yaml.v3"
"gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/config" "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/config"
"gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/info" "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/info"
) )
var configGenerateCmd = &cobra.Command{ var configGenerateCmd = &cobra.Command{

View File

@ -4,8 +4,8 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/viper" "github.com/spf13/viper"
"gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/cache" "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/cache"
"gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/projects" "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/projects"
) )
var projectCmd = &cobra.Command{ var projectCmd = &cobra.Command{

View File

@ -8,7 +8,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/viper" "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{ var projectShowCmd = &cobra.Command{

View File

@ -10,7 +10,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/viper" "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 ( var (

View File

@ -6,8 +6,8 @@ import (
fzf "github.com/ktr0731/go-fuzzyfinder" fzf "github.com/ktr0731/go-fuzzyfinder"
"golang.org/x/exp/slices" "golang.org/x/exp/slices"
"gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/cache" "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/cache"
"gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/projects" "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/projects"
) )
type fzfProjectOpts struct { type fzfProjectOpts struct {

View File

@ -7,13 +7,13 @@ import (
"strings" "strings"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/cache" "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/cache"
"gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/config" "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/config"
"gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes" "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes"
gitearemote "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/gitea" gitearemote "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/gitea"
githubremote "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/github" githubremote "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/github"
gitlabremote "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/gitlab" gitlabremote "gitea.libretechconsulting.com/rmcguire/git-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/remotes/remote"
"golang.org/x/sys/unix" "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 go 1.23.4

View File

@ -7,9 +7,9 @@ import (
"time" "time"
"github.com/pterm/pterm" "github.com/pterm/pterm"
"gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/config" "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/config"
"gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes" "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes"
"gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/projects" "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/projects"
"gopkg.in/yaml.v3" "gopkg.in/yaml.v3"
) )

View File

@ -3,7 +3,7 @@ package cache
import ( import (
"errors" "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" "golang.org/x/exp/slices"
) )

View File

@ -5,9 +5,9 @@ import (
"sync" "sync"
"github.com/pterm/pterm" "github.com/pterm/pterm"
"gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes" "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes"
"gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/load" "gitea.libretechconsulting.com/rmcguire/git-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/remote"
"golang.org/x/exp/slices" "golang.org/x/exp/slices"
) )

View File

@ -4,7 +4,7 @@ import (
"strings" "strings"
"github.com/pterm/pterm" "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" "golang.org/x/exp/slices"
) )

View File

@ -6,7 +6,7 @@ import (
"github.com/lithammer/fuzzysearch/fuzzy" "github.com/lithammer/fuzzysearch/fuzzy"
"golang.org/x/exp/slices" "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 // Performs a fuzzy find on the input string, returning the closest

View File

@ -4,7 +4,7 @@ import (
"strings" "strings"
"github.com/pterm/pterm" "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" "golang.org/x/exp/slices"
) )

View File

@ -7,7 +7,7 @@ import (
"text/tabwriter" "text/tabwriter"
"github.com/pterm/pterm" "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" "golang.org/x/exp/slices"
) )

View File

@ -6,7 +6,7 @@ import (
"path/filepath" "path/filepath"
"strings" "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) { func (c *Cache) GoTo(project *projects.Project) {

View File

@ -5,7 +5,7 @@ import (
"time" "time"
git "github.com/go-git/go-git/v5" 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 const gitCloneTimeoutSecs = 60

View File

@ -3,7 +3,7 @@ package config
import ( import (
"time" "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 { type Config struct {

View File

@ -5,7 +5,7 @@ import (
"net/url" "net/url"
"code.gitea.io/sdk/gitea" "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 { type GiteaRemote struct {

View File

@ -7,8 +7,8 @@ import (
"strings" "strings"
"code.gitea.io/sdk/gitea" "code.gitea.io/sdk/gitea"
"gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/projects" "gitea.libretechconsulting.com/rmcguire/git-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/remote"
) )
func (r *GiteaRemote) ReposToProjects(repos []*gitea.Repository) []*projects.Project { func (r *GiteaRemote) ReposToProjects(repos []*gitea.Repository) []*projects.Project {

View File

@ -4,8 +4,8 @@ import (
"errors" "errors"
"code.gitea.io/sdk/gitea" "code.gitea.io/sdk/gitea"
"gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/load" "gitea.libretechconsulting.com/rmcguire/git-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/remote"
) )
const giteaReposPerPage = 20 const giteaReposPerPage = 20

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"github.com/google/go-github/v58/github" "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 { type GithubRemote struct {

View File

@ -4,8 +4,8 @@ import (
"math" "math"
"github.com/google/go-github/v58/github" "github.com/google/go-github/v58/github"
"gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/projects" "gitea.libretechconsulting.com/rmcguire/git-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/remote"
) )
func (r *GithubRemote) GetNumProjects(opts *remote.RemoteQueryOpts) int { func (r *GithubRemote) GetNumProjects(opts *remote.RemoteQueryOpts) int {

View File

@ -4,8 +4,8 @@ import (
"errors" "errors"
"github.com/google/go-github/v58/github" "github.com/google/go-github/v58/github"
"gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/load" "gitea.libretechconsulting.com/rmcguire/git-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/remote"
) )
const githubReposPerPage = 20 const githubReposPerPage = 20

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"github.com/xanzy/go-gitlab" "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 { type GitlabRemote struct {

View File

@ -5,9 +5,9 @@ import (
"github.com/pterm/pterm" "github.com/pterm/pterm"
"github.com/xanzy/go-gitlab" "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"
"gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/projects" "gitea.libretechconsulting.com/rmcguire/git-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/remote"
) )
var DefaultListOpts = &gitlab.ListProjectsOptions{ var DefaultListOpts = &gitlab.ListProjectsOptions{

View File

@ -4,8 +4,8 @@ import (
"sync" "sync"
"github.com/xanzy/go-gitlab" "github.com/xanzy/go-gitlab"
"gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/load" "gitea.libretechconsulting.com/rmcguire/git-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/remote"
) )
// Will determine number of total projects, // Will determine number of total projects,

View File

@ -1,6 +1,6 @@
package load 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 // This package provides structs that serve
// as the interface between remotes, and any code // as the interface between remotes, and any code

View File

@ -6,8 +6,8 @@ import (
"net/url" "net/url"
"time" "time"
"gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/info" "gitea.libretechconsulting.com/rmcguire/git-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/load"
) )
const defNetDialTimeoutSecs = 3 const defNetDialTimeoutSecs = 3

View File

@ -3,9 +3,9 @@ package remotes
import ( import (
"errors" "errors"
"gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/load" "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/load"
"gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/projects" "gitea.libretechconsulting.com/rmcguire/git-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/remote"
) )
// Will determine number of total projects, // Will determine number of total projects,

View File

@ -1,6 +1,6 @@
package main package main
import "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/cmd" import "gitea.libretechconsulting.com/rmcguire/git-project-manager/cmd"
func main() { func main() {
cmd.Execute() cmd.Execute()