Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@dearchap
Copy link
Contributor

What type of PR is this?

  • bug
  • cleanup
  • documentation
  • feature

What this PR does / why we need it:

This removes the burden of having to use reflect calls to enforce hidden flag functionality. This makes the interface for Visible flags explicit rather than assuming that the user will have a field name "Hidden" in their flag implementation

Which issue(s) this PR fixes:

Fixes #631

Special notes for your reviewer:

Testing

go test ./...

Release Notes

User flag implementation need to implement VisibleFlag interface to allow their custom flags to be hidden/visible


@dearchap dearchap requested a review from a team as a code owner March 26, 2021 00:49
@dearchap dearchap requested review from coilysiren and rliebz and removed request for a team March 26, 2021 00:49
@coilysiren coilysiren requested review from a team and removed request for a team and coilysiren April 23, 2021 19:46
@rliebz rliebz merged commit e79ceb6 into urfave:master Apr 24, 2021
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.

Eliminate reflection calls in flags

2 participants