Peter Bourgon
Peter Bourgon
Is a "tagline" a well-defined concept? Can you point me to any prior art you might be aware of? It's true that the ShortHelp of a Command is only consumed...
> using ffcli in the style of objectctl (with separate packages for commands, and also for the root command) is already verbose Just parenthetically: if you find this to be...
`ff` or `ffcli`?
Right. So, the approach is basically a visitor pattern — a function which accepts a `*flag.FlagSet` and registers the global flags within it. It's demonstrated in the objectctl example. [RegisterFlags...
This or something like it is useful in ~every ffcli CLI. I'd love to find a way to make it easier — without expanding the surface area of ffcli.Command, which...
@josharian Where'd you land on this one? What could I have given you to make it better?
Concretely, automatic propagation would mean defining or marking specific flags in a Command's FlagSet such that they're automatically registered in the FlagSets of all Subcommands, transitively?
Understood. I think it would be surprising if this behavior was the default, but it may make sense as something to opt-in to.
_edit_: Moving discussion to #72.
An additional observation, just as a sort of window into my thoughts... There is a design decision I made early on which I'm frequently re-assessing. Parse mutates the command tree,...