Skip to content

Conversation

@dfinkel
Copy link
Contributor

@dfinkel dfinkel commented Nov 5, 2025

  • transform: teach flatten mangler to propagate tags
    Add a way for the flatten mangler to be configured to propagate
    particular tags as it descends.

    Notably, this will be useful for the flag, pflag and env sources
    so flags/env-vars can be disabled at a higher level when interacting
    with types you don't control. (and in some cases allow one to override a
    flag-name when embedding a type which will only generate a single flag)

  • sources: propagate dials{flag,pflag,desc,env}
    Make it possible to default these tags at a higher-level.

Add a way for the flatten mangler to be configured to propagate
particular tags as it descends.

Notably, this will be useful for the flag, pflag and env sources
so flags/env-vars can be disabled at a higher level when interacting
with types you don't control. (and in some cases allow one to override a
flag-name when embedding a type which will only generate a single flag)
Make it possible to default these tags at a higher-level.
@dfinkel dfinkel force-pushed the flags_skip_intermediate branch from 1ef64ef to 5d5d885 Compare November 5, 2025 20:57
@dfinkel dfinkel merged commit c0358e0 into master Nov 5, 2025
7 checks passed
@dfinkel dfinkel deleted the flags_skip_intermediate branch November 5, 2025 22:35
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.

3 participants