MCPcopy
hub / github.com/cloudflare/cloudflared / ConfiguredAction

Function ConfiguredAction

cmd/cloudflared/cliutil/handler.go:15–22  ·  view source on GitHub ↗
(actionFunc cli.ActionFunc)

Source from the content-addressed store, hash-verified

13}
14
15func 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.
25func ConfiguredActionWithWarnings(actionFunc func(*cli.Context, string) error) cli.ActionFunc {

Callers 15

runAppFunction · 0.92
runAppFunction · 0.92
runAppFunction · 0.92
runAppFunction · 0.92
commandsFunction · 0.92
actionFunction · 0.92
CommandFunction · 0.92
buildTokenSubcommandFunction · 0.92
buildTestURLCommandFunction · 0.92
buildTunnelCommandFunction · 0.92

Calls 1

Tested by

no test coverage detected