You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Combine behavioral struct fields into sub-struct groupings #1791
area/v3relates to / is being considered for v3kind/cleanupdescribes internal cleanup / maintaincekind/featuredescribes a code enhancement / feature request
Some of the fields on Command are related and may be grouped together for clarity. For example, these Help.+ fields could be grouped together under a Help field:
HideHelp ➡️ Help.Hidden
HideHelpCommand ➡️ Help.CommandHidden
or these fields related to shell completion could be under a ShellCompletion field:
nested fields are more difficult to reason about and more visually complex than a single level of fields
logical groupings of fields "hides" them from each other
depending on the "zero value" of simple types means that default values for certain behaviors are tightly coupled to the field names, e.g. HideSomething (default on) vs. EnableSomething (default off)
area/v3relates to / is being considered for v3kind/cleanupdescribes internal cleanup / maintaincekind/featuredescribes a code enhancement / feature request
Activity
bartekpacia commentedon May 2, 2024
I understand this issue, but I think the way it is currently is just... good enough. I also think that the less we break from v2, the better.
"Flat is better than nested." - The Zen of Python
dearchap commentedon Oct 26, 2024
Lets keep it for v2 compatibility.