wrap wraps the provided GenericHandlerFunc with the provided middleware functions.
(hf GenericHandlerFunc, mw ...func(GenericHandlerFunc) GenericHandlerFunc)
| 296 | |
| 297 | // wrap wraps the provided GenericHandlerFunc with the provided middleware functions. |
| 298 | func wrap(hf GenericHandlerFunc, mw ...func(GenericHandlerFunc) GenericHandlerFunc) GenericHandlerFunc { |
| 299 | for _, m := range mw { |
| 300 | hf = m(hf) |
| 301 | } |
| 302 | return hf |
| 303 | } |
| 304 | |
| 305 | // All is a list of all tools that can be used in the Coder CLI. |
| 306 | // When you add a new tool, be sure to include it here! |