Files
tea-sdlc/scripts/report.js
T

19 lines
598 B
JavaScript
Executable File

#!/usr/bin/env node
/**
* 週報、月報、年報目前停用。
* 時間追蹤與耗時統計已移除,不能再產生可信的工時報表。
*/
import { ScriptError, main, parseFlags, parseRepo } from './lib.js';
const REPORT_UNAVAILABLE = '週報、月報、年報目前不可用;時間追蹤功能已移除。';
main(async () => {
const flags = parseFlags(process.argv.slice(2), {
required: ['repo'],
optional: ['month', 'year', 'today', 'host'],
booleans: ['week'],
});
parseRepo(flags.repo);
throw new ScriptError('REPORT_UNAVAILABLE', REPORT_UNAVAILABLE);
});