mirror of
https://github.com/anidl/multi-downloader-nx.git
synced 2026-01-11 20:10:20 +00:00
19 lines
No EOL
440 B
TypeScript
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();
|
|
}
|
|
|
|
})(); |