Adapt a Command func to cobra library
(fn Command)
| 132 | |
| 133 | // Adapt a Command func to cobra library |
| 134 | func Adapt(fn Command) func(cmd *cobra.Command, args []string) error { |
| 135 | return AdaptCmd(func(ctx context.Context, cmd *cobra.Command, args []string) error { |
| 136 | return fn(ctx, args) |
| 137 | }) |
| 138 | } |
| 139 | |
| 140 | type ProjectOptions struct { |
| 141 | ProjectName string |
no test coverage detected