Allow user to pass in a type to use as the Output
object
#2
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This object simply needs to be a superset of the automatically generated
Output
object. Extra fields will be default-initialized or leftundefined
. I've found in practice that my command callbacks tend to be very thin wrappers around a method from a non-CLI-oriented module, which defines a type that maps to most or all of the CLI options.Plus this would allow the user to have methods on the Output object, which might be nice.