(id)
| 144 | const out = spawnSync('schtasks', ['/Query', '/FO', 'CSV', '/NH'], { encoding: 'utf8' }); |
| 145 | const lines = (out.stdout || '').split('\n').filter((l) => l.includes('citadel-')); |
| 146 | if (!lines.length) { console.log('No Citadel schedules found.'); return; } |
| 147 | for (const line of lines) console.log(line.trim()); |
| 148 | } |
| 149 | |
| 150 | function winRemove(id) { |
| 151 | execFileSync('schtasks', ['/Delete', '/TN', id, '/F'], { stdio: 'inherit' }); |
| 152 | forgetJob(id); |
| 153 | console.log(`Removed ${id}`); |
| 154 | } |
no test coverage detected