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

Function runApp

cmd/cloudflared/generic_service.go:14–32  ·  view source on GitHub ↗
(app *cli.App, graceShutdownC chan struct{})

Source from the content-addressed store, hash-verified

12)
13
14func runApp(app *cli.App, graceShutdownC chan struct{}) {
15 app.Commands = append(app.Commands, &cli.Command{
16 Name: "service",
17 Usage: "Manages the cloudflared system service (not supported on this operating system)",
18 Subcommands: []*cli.Command{
19 {
20 Name: "install",
21 Usage: "Install cloudflared as a system service (not supported on this operating system)",
22 Action: cliutil.ConfiguredAction(installGenericService),
23 },
24 {
25 Name: "uninstall",
26 Usage: "Uninstall the cloudflared service (not supported on this operating system)",
27 Action: cliutil.ConfiguredAction(uninstallGenericService),
28 },
29 },
30 })
31 app.Run(os.Args)
32}
33
34func installGenericService(c *cli.Context) error {
35 return fmt.Errorf("service installation is not supported on this operating system")

Callers

nothing calls this directly

Calls 2

ConfiguredActionFunction · 0.92
RunMethod · 0.65

Tested by

no test coverage detected