multi-downloader-nx_mirror/index.ts

19 lines
No EOL
440 B
TypeScript

import { appArgv } from './modules/module.app-args';
import * as yamlCfg from './modules/module.cfg-loader';
import update from './modules/module.updater';
(async () => {
const cfg = yamlCfg.loadCfg();
const argv = appArgv(cfg.cli);
await update(argv.update);
if (argv.service === 'funi') {
(await import('./funi')).default();
} else if (argv.service === 'crunchy') {
(await import('./crunchy')).default();
}
})();