File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,10 @@ import (
1818 "github.com/spf13/cobra"
1919)
2020
21+ // Deprecated: Use HandlerCobra instead
2122type Handler func (opts * cobra.Command , args []string , data HandlerData ) error
22- type HandlerCobra Handler
23+
24+ type HandlerCobra = Handler
2325
2426func addParams (cmd * cobra.Command , op * v3.Operation , handlerData * HandlerData ) {
2527 var (
@@ -196,8 +198,7 @@ func BootstrapV3Cobra(rootCmd *cobra.Command, model libopenapi.DocumentModel[v3.
196198
197199// Bootstraps a cobra.Command with the loaded model and a handler map
198200//
199- // Deprecated: Will be kept for backwards compatibility.
200- // Use BootstrapV3Cobra instead.
201+ // Deprecated: Will be kept for backwards compatibility. Use BootstrapV3Cobra instead.
201202func BootstrapV3 (rootCmd * cobra.Command , model libopenapi.DocumentModel [v3.Document ], handlers map [string ]Handler ) error {
202203 return BootstrapV3Cobra (rootCmd , model , handlers )
203204}
You can’t perform that action at this time.
0 commit comments