(app *cli.App, graceShutdownC chan struct{})
| 12 | ) |
| 13 | |
| 14 | func 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 | |
| 34 | func installGenericService(c *cli.Context) error { |
| 35 | return fmt.Errorf("service installation is not supported on this operating system") |
nothing calls this directly
no test coverage detected