From c5e9d6649c2590844241ac4911e8bd8d59a6ecd3 Mon Sep 17 00:00:00 2001 From: Romain BELORGEY Date: Fri, 22 Jul 2022 16:29:15 +0200 Subject: [PATCH] Moving credentials from internal to pkg Signed-off-by: Romain BELORGEY --- internal/commands/login.go | 2 +- internal/commands/logout.go | 2 +- internal/commands/root.go | 2 +- internal/login/login.go | 2 +- main.go | 2 +- {internal => pkg}/credentials/store.go | 0 6 files changed, 5 insertions(+), 5 deletions(-) rename {internal => pkg}/credentials/store.go (100%) 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