Skip to content

Commit 2acfab4

Browse files
author
John DoeJohn Doe
committed
Move config and git to internal dir
1 parent a2f0cdd commit 2acfab4

133 files changed

Lines changed: 44953 additions & 70 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

cmd/add.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"charm.land/huh/v2"
1010
"github.com/spf13/cobra"
1111

12-
"github.com/dotzero/git-profile/config"
12+
"github.com/dotzero/git-profile/internal/config"
1313
)
1414

1515
const (

cmd/add_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"charm.land/huh/v2"
1111
"github.com/matryer/is"
1212

13-
"github.com/dotzero/git-profile/config"
13+
"github.com/dotzero/git-profile/internal/config"
1414
)
1515

1616
func TestAdd(t *testing.T) {

cmd/export_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
"github.com/matryer/is"
99

10-
"github.com/dotzero/git-profile/config"
10+
"github.com/dotzero/git-profile/internal/config"
1111
)
1212

1313
func TestExport(t *testing.T) {

cmd/import.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66

77
"github.com/spf13/cobra"
88

9-
"github.com/dotzero/git-profile/config"
9+
"github.com/dotzero/git-profile/internal/config"
1010
)
1111

1212
// Import returns `import` command

cmd/interfaces.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package cmd
22

3+
//go:generate go tool github.com/matryer/moq -skip-ensure -out mock.go . storage vcs
4+
35
import (
4-
"github.com/dotzero/git-profile/config"
6+
"github.com/dotzero/git-profile/internal/config"
57
)
68

7-
//go:generate moq -skip-ensure -out mock.go . storage vcs
8-
99
type storage interface {
1010
Len() int
1111
Lookup(name string) ([]config.Entry, bool)

cmd/list_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
"github.com/matryer/is"
99

10-
"github.com/dotzero/git-profile/config"
10+
"github.com/dotzero/git-profile/internal/config"
1111
)
1212

1313
func TestList(t *testing.T) {

cmd/mock.go

Lines changed: 70 additions & 59 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmd/root.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"github.com/mitchellh/go-homedir"
99
"github.com/spf13/cobra"
1010

11-
"github.com/dotzero/git-profile/config"
12-
"github.com/dotzero/git-profile/git"
11+
"github.com/dotzero/git-profile/internal/config"
12+
"github.com/dotzero/git-profile/internal/git"
1313
)
1414

1515
// Cmd is a CLI app

cmd/use_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
"github.com/matryer/is"
99

10-
"github.com/dotzero/git-profile/config"
10+
"github.com/dotzero/git-profile/internal/config"
1111
)
1212

1313
func TestUse(t *testing.T) {

go.mod

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,17 @@ require (
2828
github.com/dustin/go-humanize v1.0.1 // indirect
2929
github.com/inconshreveable/mousetrap v1.0.0 // indirect
3030
github.com/lucasb-eyer/go-colorful v1.3.0 // indirect
31+
github.com/matryer/moq v0.7.1 // indirect
3132
github.com/mattn/go-runewidth v0.0.20 // indirect
3233
github.com/mitchellh/hashstructure/v2 v2.0.2 // indirect
3334
github.com/muesli/cancelreader v0.2.2 // indirect
3435
github.com/rivo/uniseg v0.4.7 // indirect
3536
github.com/spf13/pflag v1.0.5 // indirect
3637
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
38+
golang.org/x/mod v0.23.0 // indirect
3739
golang.org/x/sync v0.19.0 // indirect
3840
golang.org/x/sys v0.42.0 // indirect
41+
golang.org/x/tools v0.30.0 // indirect
3942
)
43+
44+
tool github.com/matryer/moq

0 commit comments

Comments
 (0)