Skip to content

Commit 54e3685

Browse files
committed
cli/command: ConfigureAuth: fix deprecation comment
Deprecation comments must have an empty line before them, otherwise tools and linters may not recognise them. While fixing this, also updated the reference to PromptUserForCredentials to be a docs-link to make it clickable. Updates 6e4818e. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 8a7c5ae commit 54e3685

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎cli/command/registry.go‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ func GetDefaultAuthConfig(cfg *configfile.ConfigFile, checkCredStore bool, serve
8686
}
8787

8888
// ConfigureAuth handles prompting of user's username and password if needed.
89-
// Deprecated: use PromptUserForCredentials instead.
89+
//
90+
// Deprecated: use [PromptUserForCredentials] instead.
9091
func ConfigureAuth(ctx context.Context, cli Cli, flUser, flPassword string, authConfig *registrytypes.AuthConfig, _ bool) error {
9192
defaultUsername := authConfig.Username
9293
serverAddress := authConfig.ServerAddress

0 commit comments

Comments
 (0)