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

Function runApp

cmd/cloudflared/linux_service.go:19–40  ·  view source on GitHub ↗
(app *cli.App, _ chan struct{})

Source from the content-addressed store, hash-verified

17)
18
19func runApp(app *cli.App, _ chan struct{}) {
20 app.Commands = append(app.Commands, &cli.Command{
21 Name: "service",
22 Usage: "Manages the cloudflared system service",
23 Subcommands: []*cli.Command{
24 {
25 Name: "install",
26 Usage: "Install cloudflared as a system service",
27 Action: cliutil.ConfiguredAction(installLinuxService),
28 Flags: []cli.Flag{
29 noUpdateServiceFlag,
30 },
31 },
32 {
33 Name: "uninstall",
34 Usage: "Uninstall the cloudflared service",
35 Action: cliutil.ConfiguredAction(uninstallLinuxService),
36 },
37 },
38 })
39 _ = app.Run(os.Args)
40}
41
42// The directory and files that are used by the service.
43// These are hard-coded in the templates below.

Callers

nothing calls this directly

Calls 2

ConfiguredActionFunction · 0.92
RunMethod · 0.65

Tested by

no test coverage detected