CobraCommand defines a cobra command function
func(context.Context, *cobra.Command, []string) error
| 102 | |
| 103 | // CobraCommand defines a cobra command function |
| 104 | type CobraCommand func(context.Context, *cobra.Command, []string) error |
| 105 | |
| 106 | // AdaptCmd adapt a CobraCommand func to cobra library |
| 107 | func AdaptCmd(fn CobraCommand) func(cmd *cobra.Command, args []string) error { |
nothing calls this directly
no outgoing calls
no test coverage detected