Change cmd.SubCommand
to a type that isn't an interface.
#531
Labels
improvement
Improvement of an existing part of the codebase
Milestone
Instead of requiring implementation of this interface, we could simply make
cmd.SubCommand
a type that isn't an interface and allow using that as a parameter type directly. We could then use the field name andcmd:""
struct tag to let users specify the name of the subcommand. This means we wouldn't have to keep implementing new types for every subcommand.The text was updated successfully, but these errors were encountered: