Skip to content

Commit

Permalink
Unexport more internal packages (#1377)
Browse files Browse the repository at this point in the history
RELEASE_NOTES=n/a

Signed-off-by: Dominik Schulz <[email protected]>
  • Loading branch information
dominikschulz authored May 22, 2020
1 parent c3352e2 commit d0be405
Show file tree
Hide file tree
Showing 362 changed files with 506 additions and 502 deletions.
6 changes: 3 additions & 3 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"strings"

ap "github.com/gopasspw/gopass/internal/action"
"github.com/gopasspw/gopass/internal/out"
"github.com/gopasspw/gopass/internal/store/sub"
"github.com/gopasspw/gopass/internal/termio"
"github.com/gopasspw/gopass/pkg/config"
"github.com/gopasspw/gopass/pkg/out"
"github.com/gopasspw/gopass/pkg/store/sub"
"github.com/gopasspw/gopass/pkg/termio"

"github.com/blang/semver"
"github.com/urfave/cli/v2"
Expand Down
4 changes: 2 additions & 2 deletions commands_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import (
"github.com/blang/semver"
"github.com/fatih/color"
"github.com/gopasspw/gopass/internal/action"
"github.com/gopasspw/gopass/pkg/backend"
"github.com/gopasspw/gopass/internal/backend"
"github.com/gopasspw/gopass/internal/out"
"github.com/gopasspw/gopass/pkg/config"
"github.com/gopasspw/gopass/pkg/ctxutil"
"github.com/gopasspw/gopass/pkg/out"
"github.com/gopasspw/gopass/tests/gptest"
"github.com/stretchr/testify/assert"
"github.com/urfave/cli/v2"
Expand Down
4 changes: 2 additions & 2 deletions context.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (

"golang.org/x/crypto/ssh/terminal"

"github.com/gopasspw/gopass/pkg/backend/crypto/gpg"
"github.com/gopasspw/gopass/internal/backend/crypto/gpg"
"github.com/gopasspw/gopass/internal/store/sub"
"github.com/gopasspw/gopass/pkg/config"
"github.com/gopasspw/gopass/pkg/ctxutil"
"github.com/gopasspw/gopass/pkg/store/sub"

"github.com/fatih/color"
)
Expand Down
2 changes: 1 addition & 1 deletion context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os"
"testing"

"github.com/gopasspw/gopass/pkg/backend/crypto/gpg"
"github.com/gopasspw/gopass/internal/backend/crypto/gpg"
"github.com/gopasspw/gopass/pkg/config"
"github.com/gopasspw/gopass/pkg/ctxutil"
"github.com/stretchr/testify/assert"
Expand Down
2 changes: 1 addition & 1 deletion docs/backends.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,5 @@ using existing building blocks - we're a little wary to recommend it for broader
Also it requires its own Keyring/Agent infrastructure, as the keyformat is quite
different from what GPG is using.

Please see the backend [Readme](https://github.com/gopasspw/gopass/blob/master/pkg/backend/crypto/xc/README.md) for more details. Proper documentation for this
Please see the backend [Readme](https://github.com/gopasspw/gopass/blob/master/internal/backend/crypto/xc/README.md) for more details. Proper documentation for this
backend still needs to written and will be added at a later point.
4 changes: 2 additions & 2 deletions internal/action/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"os"
"path/filepath"

"github.com/gopasspw/gopass/internal/out"
"github.com/gopasspw/gopass/internal/store/root"
"github.com/gopasspw/gopass/pkg/config"
"github.com/gopasspw/gopass/pkg/out"
"github.com/gopasspw/gopass/pkg/store/root"

"github.com/blang/semver"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/action/action_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"runtime"
"testing"

"github.com/gopasspw/gopass/pkg/backend"
"github.com/gopasspw/gopass/internal/backend"
"github.com/gopasspw/gopass/pkg/config"
"github.com/gopasspw/gopass/tests/gptest"

Expand Down
2 changes: 1 addition & 1 deletion internal/action/audit.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package action

import (
"github.com/gopasspw/gopass/internal/out"
"github.com/gopasspw/gopass/pkg/audit"
"github.com/gopasspw/gopass/pkg/ctxutil"
"github.com/gopasspw/gopass/pkg/out"

"github.com/urfave/cli/v2"
)
Expand Down
4 changes: 2 additions & 2 deletions internal/action/audit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"os"
"testing"

"github.com/gopasspw/gopass/internal/out"
"github.com/gopasspw/gopass/internal/store/secret"
"github.com/gopasspw/gopass/pkg/ctxutil"
"github.com/gopasspw/gopass/pkg/out"
"github.com/gopasspw/gopass/pkg/store/secret"
"github.com/gopasspw/gopass/tests/gptest"

"github.com/muesli/goprogressbar"
Expand Down
2 changes: 1 addition & 1 deletion internal/action/binary/binary.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package binary
import (
"context"

"github.com/gopasspw/gopass/pkg/store"
"github.com/gopasspw/gopass/internal/store"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion internal/action/binary/binary_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"path/filepath"
"testing"

"github.com/gopasspw/gopass/internal/out"
"github.com/gopasspw/gopass/pkg/ctxutil"
"github.com/gopasspw/gopass/pkg/out"
"github.com/gopasspw/gopass/tests/mockstore"

"github.com/stretchr/testify/assert"
Expand Down
4 changes: 2 additions & 2 deletions internal/action/binary/cat.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"strings"

"github.com/gopasspw/gopass/internal/action"
"github.com/gopasspw/gopass/internal/out"
"github.com/gopasspw/gopass/internal/store/secret"
"github.com/gopasspw/gopass/pkg/ctxutil"
"github.com/gopasspw/gopass/pkg/out"
"github.com/gopasspw/gopass/pkg/store/secret"

"github.com/urfave/cli/v2"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/action/binary/copy.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"strings"

"github.com/gopasspw/gopass/internal/action"
"github.com/gopasspw/gopass/internal/store/secret"
"github.com/gopasspw/gopass/pkg/ctxutil"
"github.com/gopasspw/gopass/pkg/fsutil"
"github.com/gopasspw/gopass/pkg/store/secret"

"github.com/pkg/errors"
"github.com/urfave/cli/v2"
Expand Down
2 changes: 1 addition & 1 deletion internal/action/binary/sum.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"strings"

"github.com/gopasspw/gopass/internal/action"
"github.com/gopasspw/gopass/internal/out"
"github.com/gopasspw/gopass/pkg/ctxutil"
"github.com/gopasspw/gopass/pkg/out"

"github.com/urfave/cli/v2"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/action/clihelper.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"strings"

"github.com/gopasspw/gopass/pkg/cui"
"github.com/gopasspw/gopass/internal/cui"
"github.com/urfave/cli/v2"
)

Expand Down
10 changes: 5 additions & 5 deletions internal/action/clone.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ import (
"os"
"path/filepath"

"github.com/gopasspw/gopass/pkg/backend"
"github.com/gopasspw/gopass/pkg/backend/crypto/xc"
"github.com/gopasspw/gopass/internal/backend"
"github.com/gopasspw/gopass/internal/backend/crypto/xc"
"github.com/gopasspw/gopass/internal/cui"
"github.com/gopasspw/gopass/internal/out"
"github.com/gopasspw/gopass/internal/termio"
"github.com/gopasspw/gopass/pkg/config"
"github.com/gopasspw/gopass/pkg/ctxutil"
"github.com/gopasspw/gopass/pkg/cui"
"github.com/gopasspw/gopass/pkg/fsutil"
"github.com/gopasspw/gopass/pkg/out"
"github.com/gopasspw/gopass/pkg/termio"

"github.com/fatih/color"
"github.com/urfave/cli/v2"
Expand Down
6 changes: 3 additions & 3 deletions internal/action/clone_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import (
"path/filepath"
"testing"

"github.com/gopasspw/gopass/pkg/backend"
git "github.com/gopasspw/gopass/pkg/backend/rcs/git/cli"
"github.com/gopasspw/gopass/internal/backend"
git "github.com/gopasspw/gopass/internal/backend/rcs/git/cli"
"github.com/gopasspw/gopass/internal/out"
"github.com/gopasspw/gopass/pkg/config"
"github.com/gopasspw/gopass/pkg/ctxutil"
"github.com/gopasspw/gopass/pkg/out"
"github.com/gopasspw/gopass/tests/gptest"

"github.com/blang/semver"
Expand Down
2 changes: 1 addition & 1 deletion internal/action/completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

fishcomp "github.com/gopasspw/gopass/internal/completion/fish"
zshcomp "github.com/gopasspw/gopass/internal/completion/zsh"
"github.com/gopasspw/gopass/internal/out"
"github.com/gopasspw/gopass/pkg/ctxutil"
"github.com/gopasspw/gopass/pkg/out"
"github.com/urfave/cli/v2"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/action/completion_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"os"
"testing"

"github.com/gopasspw/gopass/pkg/out"
"github.com/gopasspw/gopass/internal/out"
"github.com/gopasspw/gopass/tests/gptest"

"github.com/stretchr/testify/assert"
Expand Down
2 changes: 1 addition & 1 deletion internal/action/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"fmt"
"sort"

"github.com/gopasspw/gopass/internal/out"
"github.com/gopasspw/gopass/pkg/ctxutil"
"github.com/gopasspw/gopass/pkg/out"

"github.com/pkg/errors"
"github.com/urfave/cli/v2"
Expand Down
4 changes: 2 additions & 2 deletions internal/action/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"strings"
"testing"

"github.com/gopasspw/gopass/pkg/backend"
"github.com/gopasspw/gopass/internal/backend"
"github.com/gopasspw/gopass/internal/out"
"github.com/gopasspw/gopass/pkg/config"
"github.com/gopasspw/gopass/pkg/out"
"github.com/gopasspw/gopass/tests/gptest"

"github.com/stretchr/testify/assert"
Expand Down
2 changes: 1 addition & 1 deletion internal/action/copy.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"fmt"

"github.com/gopasspw/gopass/internal/termio"
"github.com/gopasspw/gopass/pkg/ctxutil"
"github.com/gopasspw/gopass/pkg/termio"

"github.com/urfave/cli/v2"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/action/copy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"os"
"testing"

"github.com/gopasspw/gopass/internal/out"
"github.com/gopasspw/gopass/pkg/ctxutil"
"github.com/gopasspw/gopass/pkg/out"
"github.com/gopasspw/gopass/tests/gptest"

"github.com/fatih/color"
Expand Down
10 changes: 5 additions & 5 deletions internal/action/create/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ import (

"github.com/fatih/color"
"github.com/gopasspw/gopass/internal/action"
"github.com/gopasspw/gopass/internal/cui"
"github.com/gopasspw/gopass/internal/out"
"github.com/gopasspw/gopass/internal/store"
"github.com/gopasspw/gopass/internal/store/secret"
"github.com/gopasspw/gopass/internal/termio"
"github.com/gopasspw/gopass/pkg/clipboard"
"github.com/gopasspw/gopass/pkg/ctxutil"
"github.com/gopasspw/gopass/pkg/cui"
"github.com/gopasspw/gopass/pkg/fsutil"
"github.com/gopasspw/gopass/pkg/out"
"github.com/gopasspw/gopass/pkg/pwgen"
"github.com/gopasspw/gopass/pkg/store"
"github.com/gopasspw/gopass/pkg/store/secret"
"github.com/gopasspw/gopass/pkg/termio"
"github.com/martinhoefling/goxkcdpwgen/xkcdpwgen"
"github.com/urfave/cli/v2"
)
Expand Down
4 changes: 2 additions & 2 deletions internal/action/create/create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"testing"

aclip "github.com/atotto/clipboard"
"github.com/gopasspw/gopass/internal/out"
"github.com/gopasspw/gopass/internal/termio"
"github.com/gopasspw/gopass/pkg/ctxutil"
"github.com/gopasspw/gopass/pkg/out"
"github.com/gopasspw/gopass/pkg/termio"
"github.com/gopasspw/gopass/tests/mockstore"
"github.com/stretchr/testify/assert"
"github.com/urfave/cli/v2"
Expand Down
2 changes: 1 addition & 1 deletion internal/action/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"fmt"

"github.com/gopasspw/gopass/internal/termio"
"github.com/gopasspw/gopass/pkg/ctxutil"
"github.com/gopasspw/gopass/pkg/termio"

"github.com/urfave/cli/v2"
)
Expand Down
4 changes: 2 additions & 2 deletions internal/action/delete_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"os"
"testing"

"github.com/gopasspw/gopass/internal/out"
"github.com/gopasspw/gopass/internal/store/secret"
"github.com/gopasspw/gopass/pkg/ctxutil"
"github.com/gopasspw/gopass/pkg/out"
"github.com/gopasspw/gopass/pkg/store/secret"
"github.com/gopasspw/gopass/tests/gptest"

"github.com/stretchr/testify/assert"
Expand Down
6 changes: 3 additions & 3 deletions internal/action/edit.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import (
"context"
"fmt"

"github.com/gopasspw/gopass/internal/editor"
"github.com/gopasspw/gopass/internal/out"
"github.com/gopasspw/gopass/internal/store/secret"
"github.com/gopasspw/gopass/pkg/audit"
"github.com/gopasspw/gopass/pkg/ctxutil"
"github.com/gopasspw/gopass/pkg/editor"
"github.com/gopasspw/gopass/pkg/out"
"github.com/gopasspw/gopass/pkg/pwgen"
"github.com/gopasspw/gopass/pkg/store/secret"

"github.com/urfave/cli/v2"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/action/edit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"os"
"testing"

"github.com/gopasspw/gopass/internal/out"
"github.com/gopasspw/gopass/pkg/ctxutil"
"github.com/gopasspw/gopass/pkg/out"
"github.com/gopasspw/gopass/tests/gptest"

"github.com/stretchr/testify/assert"
Expand Down
2 changes: 1 addition & 1 deletion internal/action/env_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"os"
"testing"

"github.com/gopasspw/gopass/internal/out"
"github.com/gopasspw/gopass/pkg/ctxutil"
"github.com/gopasspw/gopass/pkg/out"
"github.com/gopasspw/gopass/tests/gptest"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down
2 changes: 1 addition & 1 deletion internal/action/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/gopasspw/gopass/pkg/out"
"github.com/gopasspw/gopass/internal/out"

"github.com/urfave/cli/v2"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/action/errors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"strings"
"testing"

"github.com/gopasspw/gopass/internal/out"
"github.com/gopasspw/gopass/pkg/ctxutil"
"github.com/gopasspw/gopass/pkg/out"

"github.com/stretchr/testify/assert"
)
Expand Down
4 changes: 2 additions & 2 deletions internal/action/find.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"sort"
"strings"

"github.com/gopasspw/gopass/internal/cui"
"github.com/gopasspw/gopass/internal/out"
"github.com/gopasspw/gopass/pkg/ctxutil"
"github.com/gopasspw/gopass/pkg/cui"
"github.com/gopasspw/gopass/pkg/out"

"github.com/schollz/closestmatch"
"github.com/urfave/cli/v2"
Expand Down
4 changes: 2 additions & 2 deletions internal/action/find_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"strings"
"testing"

"github.com/gopasspw/gopass/internal/out"
"github.com/gopasspw/gopass/internal/store/secret"
"github.com/gopasspw/gopass/pkg/ctxutil"
"github.com/gopasspw/gopass/pkg/out"
"github.com/gopasspw/gopass/pkg/store/secret"
"github.com/gopasspw/gopass/tests/gptest"

"github.com/fatih/color"
Expand Down
Loading

0 comments on commit d0be405

Please sign in to comment.