diff --git a/internal/commands/login.go b/internal/commands/login.go index ae485b0..113085b 100644 --- a/internal/commands/login.go +++ b/internal/commands/login.go @@ -26,10 +26,10 @@ import ( "github.com/spf13/cobra" "github.com/docker/hub-tool/internal/ansi" - "github.com/docker/hub-tool/internal/credentials" "github.com/docker/hub-tool/internal/errdef" "github.com/docker/hub-tool/internal/login" "github.com/docker/hub-tool/internal/metrics" + "github.com/docker/hub-tool/pkg/credentials" "github.com/docker/hub-tool/pkg/hub" ) diff --git a/internal/commands/logout.go b/internal/commands/logout.go index 0bb556d..854de15 100644 --- a/internal/commands/logout.go +++ b/internal/commands/logout.go @@ -23,8 +23,8 @@ import ( "github.com/docker/cli/cli/command" "github.com/docker/hub-tool/internal/ansi" - "github.com/docker/hub-tool/internal/credentials" "github.com/docker/hub-tool/internal/metrics" + "github.com/docker/hub-tool/pkg/credentials" ) const ( diff --git a/internal/commands/root.go b/internal/commands/root.go index 17ebca7..9f58bf4 100644 --- a/internal/commands/root.go +++ b/internal/commands/root.go @@ -32,8 +32,8 @@ import ( "github.com/docker/hub-tool/internal/commands/repo" "github.com/docker/hub-tool/internal/commands/tag" "github.com/docker/hub-tool/internal/commands/token" - "github.com/docker/hub-tool/internal/credentials" "github.com/docker/hub-tool/internal/login" + "github.com/docker/hub-tool/pkg/credentials" "github.com/docker/hub-tool/pkg/hub" ) diff --git a/internal/login/login.go b/internal/login/login.go index 3238be3..bc6ab18 100644 --- a/internal/login/login.go +++ b/internal/login/login.go @@ -31,8 +31,8 @@ import ( "github.com/pkg/errors" "github.com/docker/hub-tool/internal/ansi" - "github.com/docker/hub-tool/internal/credentials" "github.com/docker/hub-tool/internal/errdef" + "github.com/docker/hub-tool/pkg/credentials" "github.com/docker/hub-tool/pkg/hub" ) diff --git a/main.go b/main.go index 6b0a8a3..50f4679 100644 --- a/main.go +++ b/main.go @@ -29,7 +29,7 @@ import ( cliflags "github.com/docker/cli/cli/flags" "github.com/docker/hub-tool/internal/commands" - "github.com/docker/hub-tool/internal/credentials" + "github.com/docker/hub-tool/pkg/credentials" "github.com/docker/hub-tool/pkg/hub" ) diff --git a/internal/credentials/store.go b/pkg/credentials/store.go similarity index 100% rename from internal/credentials/store.go rename to pkg/credentials/store.go