1
0
mirror of https://github.com/snobu/destreamer.git synced 2026-01-23 00:12:16 +00:00

refactor toward SharePoint downloader

This commit is contained in:
Luca Armaroli
2021-10-13 22:01:54 +02:00
parent b2497865a1
commit 6a2159b266
12 changed files with 482 additions and 445 deletions

View File

@@ -1,5 +1,5 @@
import { CLI_ERROR, ERROR_CODE } from './Errors';
import { checkOutDir } from './Utils';
import { makeOutDir } from './Utils';
import { logger } from './Logger';
import { templateElements } from './Types';
@@ -9,7 +9,7 @@ import sanitize from 'sanitize-filename';
import yargs from 'yargs';
export const argv: any = yargs.options({
export const argv = yargs.options({
username: {
alias: 'u',
type: 'string',
@@ -114,7 +114,7 @@ export const argv: any = yargs.options({
.check(() => noArguments())
.check((argv: any) => checkInputConflicts(argv.videoUrls, argv.inputFile))
.check((argv: any) => {
if (checkOutDir(argv.outputDirectory)) {
if (makeOutDir(argv.outputDirectory)) {
return true;
}
else {