diff options
-rw-r--r-- | server/tools/cli.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/tools/cli.ts b/server/tools/cli.ts index d1a631b69..7658eddce 100644 --- a/server/tools/cli.ts +++ b/server/tools/cli.ts | |||
@@ -3,7 +3,7 @@ import { getAppNumber, isTestInstance } from '../helpers/core-utils' | |||
3 | import { join } from 'path' | 3 | import { join } from 'path' |
4 | import { root } from '../../shared/extra-utils/miscs/miscs' | 4 | import { root } from '../../shared/extra-utils/miscs/miscs' |
5 | import { getVideoChannel } from '../../shared/extra-utils/videos/video-channels' | 5 | import { getVideoChannel } from '../../shared/extra-utils/videos/video-channels' |
6 | import { Command } from 'commander' | 6 | import { CommanderStatic } from 'commander' |
7 | import { VideoChannel, VideoPrivacy } from '../../shared/models/videos' | 7 | import { VideoChannel, VideoPrivacy } from '../../shared/models/videos' |
8 | import { createLogger, format, transports } from 'winston' | 8 | import { createLogger, format, transports } from 'winston' |
9 | import { getMyUserInformation } from '@shared/extra-utils/users/users' | 9 | import { getMyUserInformation } from '@shared/extra-utils/users/users' |
@@ -118,7 +118,7 @@ function getRemoteObjectOrDie ( | |||
118 | } | 118 | } |
119 | } | 119 | } |
120 | 120 | ||
121 | function buildCommonVideoOptions (command: Command) { | 121 | function buildCommonVideoOptions (command: CommanderStatic) { |
122 | function list (val) { | 122 | function list (val) { |
123 | return val.split(',') | 123 | return val.split(',') |
124 | } | 124 | } |
@@ -139,7 +139,7 @@ function buildCommonVideoOptions (command: Command) { | |||
139 | .option('-v, --verbose <verbose>', 'Verbosity, from 0/\'error\' to 4/\'debug\'', 'info') | 139 | .option('-v, --verbose <verbose>', 'Verbosity, from 0/\'error\' to 4/\'debug\'', 'info') |
140 | } | 140 | } |
141 | 141 | ||
142 | async function buildVideoAttributesFromCommander (url: string, command: Command, defaultAttributes: any = {}) { | 142 | async function buildVideoAttributesFromCommander (url: string, command: CommanderStatic, defaultAttributes: any = {}) { |
143 | const defaultBooleanAttributes = { | 143 | const defaultBooleanAttributes = { |
144 | nsfw: false, | 144 | nsfw: false, |
145 | commentsEnabled: true, | 145 | commentsEnabled: true, |