Skip to content

Commit

Permalink
Don't export internal package
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Oct 8, 2019
1 parent c79de4c commit 9e2ceb7
Show file tree
Hide file tree
Showing 44 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions Makefile
Expand Up @@ -23,9 +23,9 @@ completions/chezmoi.zsh:

.PHONY: coverage.out
coverage.out:
go test -cover -covermode=count -coverprofile=cmd-coverage.out -coverpkg=github.com/twpayne/chezmoi/cmd,github.com/twpayne/chezmoi/lib/chezmoi ./cmd
go test -cover -covermode=count -coverprofile=lib-chezmoi-coverage.out ./lib/chezmoi
gocovmerge cmd-coverage.out lib-chezmoi-coverage.out > $@ || ( rm -f $@ ; false )
go test -cover -covermode=count -coverprofile=cmd-coverage.out -coverpkg=github.com/twpayne/chezmoi/cmd,github.com/twpayne/chezmoi/internal/chezmoi ./cmd
go test -cover -covermode=count -coverprofile=internal-chezmoi-coverage.out ./internal/chezmoi
gocovmerge cmd-coverage.out internal-chezmoi-coverage.out > $@ || ( rm -f $@ ; false )

.PHONY: format
format:
Expand Down
2 changes: 1 addition & 1 deletion cmd/add.go
Expand Up @@ -7,7 +7,7 @@ import (
"strings"

"github.com/spf13/cobra"
"github.com/twpayne/chezmoi/lib/chezmoi"
"github.com/twpayne/chezmoi/internal/chezmoi"
vfs "github.com/twpayne/go-vfs"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/add_test.go
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/twpayne/chezmoi/lib/chezmoi"
"github.com/twpayne/chezmoi/internal/chezmoi"
"github.com/twpayne/go-vfs/vfst"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/cat.go
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"

"github.com/spf13/cobra"
"github.com/twpayne/chezmoi/lib/chezmoi"
"github.com/twpayne/chezmoi/internal/chezmoi"
vfs "github.com/twpayne/go-vfs"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/chattr.go
Expand Up @@ -8,7 +8,7 @@ import (
"strings"

"github.com/spf13/cobra"
"github.com/twpayne/chezmoi/lib/chezmoi"
"github.com/twpayne/chezmoi/internal/chezmoi"
vfs "github.com/twpayne/go-vfs"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/config.go
Expand Up @@ -18,7 +18,7 @@ import (
"github.com/BurntSushi/toml"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"github.com/twpayne/chezmoi/lib/chezmoi"
"github.com/twpayne/chezmoi/internal/chezmoi"
vfs "github.com/twpayne/go-vfs"
xdg "github.com/twpayne/go-xdg/v3"
bolt "go.etcd.io/bbolt"
Expand Down
2 changes: 1 addition & 1 deletion cmd/diff.go
Expand Up @@ -2,7 +2,7 @@ package cmd

import (
"github.com/spf13/cobra"
"github.com/twpayne/chezmoi/lib/chezmoi"
"github.com/twpayne/chezmoi/internal/chezmoi"
vfs "github.com/twpayne/go-vfs"
bolt "go.etcd.io/bbolt"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/edit.go
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/google/renameio"
"github.com/spf13/cobra"
"github.com/twpayne/chezmoi/lib/chezmoi"
"github.com/twpayne/chezmoi/internal/chezmoi"
vfs "github.com/twpayne/go-vfs"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/import.go
Expand Up @@ -11,7 +11,7 @@ import (
"strings"

"github.com/spf13/cobra"
"github.com/twpayne/chezmoi/lib/chezmoi"
"github.com/twpayne/chezmoi/internal/chezmoi"
vfs "github.com/twpayne/go-vfs"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/init.go
Expand Up @@ -11,7 +11,7 @@ import (

"github.com/spf13/cobra"
"github.com/spf13/viper"
"github.com/twpayne/chezmoi/lib/chezmoi"
"github.com/twpayne/chezmoi/internal/chezmoi"
vfs "github.com/twpayne/go-vfs"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/init_test.go
Expand Up @@ -10,7 +10,7 @@ import (

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/twpayne/chezmoi/lib/chezmoi"
"github.com/twpayne/chezmoi/internal/chezmoi"
"github.com/twpayne/go-vfs/vfst"
xdg "github.com/twpayne/go-xdg/v3"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/merge.go
Expand Up @@ -7,7 +7,7 @@ import (
"path/filepath"

"github.com/spf13/cobra"
"github.com/twpayne/chezmoi/lib/chezmoi"
"github.com/twpayne/chezmoi/internal/chezmoi"
vfs "github.com/twpayne/go-vfs"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/mattn/go-isatty"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"github.com/twpayne/chezmoi/lib/chezmoi"
"github.com/twpayne/chezmoi/internal/chezmoi"
vfs "github.com/twpayne/go-vfs"
xdg "github.com/twpayne/go-xdg/v3"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/upgrade.go
Expand Up @@ -26,7 +26,7 @@ import (
"github.com/coreos/go-semver/semver"
"github.com/google/go-github/v26/github"
"github.com/spf13/cobra"
"github.com/twpayne/chezmoi/lib/chezmoi"
"github.com/twpayne/chezmoi/internal/chezmoi"
vfs "github.com/twpayne/go-vfs"
"golang.org/x/oauth2"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/verify.go
Expand Up @@ -4,7 +4,7 @@ import (
"os"

"github.com/spf13/cobra"
"github.com/twpayne/chezmoi/lib/chezmoi"
"github.com/twpayne/chezmoi/internal/chezmoi"
vfs "github.com/twpayne/go-vfs"
bolt "go.etcd.io/bbolt"
)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 9e2ceb7

Please sign in to comment.