cli icon indicating copy to clipboard operation
cli copied to clipboard

Added script to generate altsrc flag definitions

Open ipostelnik opened this issue 4 years ago • 5 comments

Added script to generate altsrc flag definitions, restricted list of types to the ones that provide implementation of FlagInputSourceExtension.

What type of PR is this?

  • bug
  • cleanup

What this PR does / why we need it:

  • The original program to generate altsrc flags is nowhere to be found, so replaced with fg.py.
  • The types of altsrc flags are now limited to the subset that provide FlagInputSourceExtension implementation and have matching methods in InputSourceContext interface. Removed types where never updated from the input source.

Which issue(s) this PR fixes:

Testing

Existing unit tests

Release Notes

Removed altsrc flag definitions for types that do not implement FlagInputSourceExtension. These types did not have their values loaded from the configuration file.


ipostelnik avatar Feb 12 '21 16:02 ipostelnik

This issue or PR has been automatically marked as stale because it has not had recent activity. Please add a comment bumping this if you're still interested in it's resolution! Thanks for your help, please let us know if you need anything else.

stale[bot] avatar Jul 22 '21 23:07 stale[bot]

Closing this as it has become stale.

stale[bot] avatar Aug 22 '21 16:08 stale[bot]

@ipostelnik Sorry for the long delay! 😭 Any chance you're interested in refreshing this work, especially in light of the most recent round of flag generation tooling?

meatballhat avatar May 07 '22 18:05 meatballhat

@dearchap if you're interested in seeing this work moved forward, I think I would prefer the use of the more recently-(re)introduced internal/genflags. WDYT?

meatballhat avatar Aug 14 '22 12:08 meatballhat

@meatballhat That should be fine. @ipostelnik Are you up to resolve the conflicts ?

dearchap avatar Aug 16 '22 22:08 dearchap

PR #1553 Does this on latest and uses the internal gen flag program.

dearchap avatar Oct 29 '22 23:10 dearchap