| 247 | var constructorByCommands = map[*cobra.Command]func() *cobra.Command{} |
| 248 | |
| 249 | type UIer interface { |
| 250 | UI() UI |
| 251 | } |
| 252 | |
| 253 | func NewCmd[T UIer](parent *cobra.Command, name string, fn func(*cobra.Command)) *cobra.Command { |
| 254 | var def, parentDef *CmdDef |
no outgoing calls
no test coverage detected