aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--server/tools/cli.ts6
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'
3import { join } from 'path' 3import { join } from 'path'
4import { root } from '../../shared/extra-utils/miscs/miscs' 4import { root } from '../../shared/extra-utils/miscs/miscs'
5import { getVideoChannel } from '../../shared/extra-utils/videos/video-channels' 5import { getVideoChannel } from '../../shared/extra-utils/videos/video-channels'
6import { Command } from 'commander' 6import { CommanderStatic } from 'commander'
7import { VideoChannel, VideoPrivacy } from '../../shared/models/videos' 7import { VideoChannel, VideoPrivacy } from '../../shared/models/videos'
8import { createLogger, format, transports } from 'winston' 8import { createLogger, format, transports } from 'winston'
9import { getMyUserInformation } from '@shared/extra-utils/users/users' 9import { getMyUserInformation } from '@shared/extra-utils/users/users'
@@ -118,7 +118,7 @@ function getRemoteObjectOrDie (
118 } 118 }
119} 119}
120 120
121function buildCommonVideoOptions (command: Command) { 121function 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
142async function buildVideoAttributesFromCommander (url: string, command: Command, defaultAttributes: any = {}) { 142async 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,