(actionFunc cli.ActionFunc)
| 13 | } |
| 14 | |
| 15 | func ConfiguredAction(actionFunc cli.ActionFunc) cli.ActionFunc { |
| 16 | // Adapt actionFunc to the type signature required by ConfiguredActionWithWarnings |
| 17 | f := func(context *cli.Context, _ string) error { |
| 18 | return actionFunc(context) |
| 19 | } |
| 20 | |
| 21 | return ConfiguredActionWithWarnings(f) |
| 22 | } |
| 23 | |
| 24 | // Just like ConfiguredAction, but accepts a second parameter with configuration warnings. |
| 25 | func ConfiguredActionWithWarnings(actionFunc func(*cli.Context, string) error) cli.ActionFunc { |
no test coverage detected