This commit is contained in:
ray
2026-04-21 21:16:56 +08:00
parent aa67b0e37e
commit 19e8a833ba
9 changed files with 777 additions and 82 deletions

View File

@@ -1,6 +1,13 @@
import { login, scheduleSync, syncAll, syncBillsOnly } from './sync.js';
const args = process.argv.slice(2);
const command = args[0] || 'sync';
const command = process.argv[2] || 'sync';
for (const arg of args.slice(1)) {
if (arg.startsWith('--incremental-order-start-date=')) {
process.env.ALIYUN_APS_INCREMENTAL_ORDER_START_DATE = arg.split('=').slice(1).join('=');
}
}
const { login, scheduleSync, syncAll, syncBillsOnly } = await import('./sync.js');
if (command === 'login') {
await login();