UNPKG

school-schedule-sync

Version:

Synchronization between JSON schedule and Google Calendar

12 lines (9 loc) 333 B
import { filterProfiles } from '@anmiles/google-api-wrapper'; import { info } from '@anmiles/logger'; import { sync } from './sync'; export async function run(profile?: string): Promise<void> { for (const foundProfile of filterProfiles(profile)) { info(`Syncing calendars for ${foundProfile}`); await sync(foundProfile); } }