getJobLabel returns the appropriate term for a job based on the platform Returns "scheduled task" on Windows, "cron job" on other platforms
()
| 24 | // getJobLabel returns the appropriate term for a job based on the platform |
| 25 | // Returns "scheduled task" on Windows, "cron job" on other platforms |
| 26 | func getJobLabel() string { |
| 27 | if runtime.GOOS == "windows" { |
| 28 | return "scheduled task" |
| 29 | } |
| 30 | return "cron job" |
| 31 | } |
| 32 | |
| 33 | type ExistingMonitors struct { |
| 34 | Monitors []lib.Monitor |
no outgoing calls
no test coverage detected