Skip to content

Conversation

@thaJeztah
Copy link
Member

Extract the code as a utility function, and add some GoDoc to describe the behavior.

- What I did

- How I did it

- How to verify it

- Human readable description for the release notes

- A picture of a cute animal (not mandatory but encouraged)

@thaJeztah thaJeztah added this to the 29.2.2 milestone Feb 12, 2026
@thaJeztah thaJeztah requested a review from Copilot February 12, 2026 13:07
@codecov-commenter
Copy link

codecov-commenter commented Feb 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the password reading logic in the Docker CLI's registry login command by extracting it into a standalone utility function with comprehensive documentation.

Changes:

  • Extracted password/secret reading logic from stdin into a new readSecretFromStdin utility function
  • Added detailed GoDoc documentation explaining the line-ending trimming behavior and NIST compliance
  • Updated imports: added bytes package (for bytes.CutSuffix), removed unused strings package

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Extract the code as a utility function, and add some GoDoc to
describe the behavior.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah force-pushed the login_stdin_refactor branch from 2a99b14 to 61f03db Compare February 12, 2026 13:43
@thaJeztah thaJeztah requested a review from vvoland February 12, 2026 13:59
@thaJeztah
Copy link
Member Author

@vvoland @Benehiko ptal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants