Skip to content

Conversation

@valentin-kaiser
Copy link
Owner

No description provided.

@valentin-kaiser valentin-kaiser self-assigned this Oct 8, 2025
Copy link
Contributor

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 adds an Unregister function to the flag package that allows removal of previously registered flags, and renames the existing RegisterFlag function to Register for better API consistency.

  • Added Unregister function to remove registered flags with appropriate validation
  • Renamed RegisterFlag to Register throughout the codebase
  • Updated documentation and examples to reflect the new API

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
flag/flag.go Added Unregister function implementation and renamed RegisterFlag to Register
flag/flag_test.go Updated all test cases to use Register instead of RegisterFlag and added comprehensive tests for the new Unregister functionality

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@valentin-kaiser valentin-kaiser merged commit d38c207 into main Oct 8, 2025
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants