(app *cli.App, _ chan struct{})
| 17 | ) |
| 18 | |
| 19 | func 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. |
nothing calls this directly
no test coverage detected