()
| 111 | const CRON_MARKER_END = '# CITADEL-SCHEDULES-END'; |
| 112 | |
| 113 | function readCrontab() { |
| 114 | const r = spawnSync('crontab', ['-l'], { encoding: 'utf8' }); |
| 115 | return r.status === 0 ? r.stdout : ''; |
| 116 | } |
| 117 | |
| 118 | function writeCrontab(content) { |
| 119 | const r = spawnSync('crontab', ['-'], { input: content, encoding: 'utf8' }); |
no outgoing calls
no test coverage detected