aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tools
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-04-01 17:04:12 +0200
committerChocobozzz <me@florianbigard.com>2020-04-01 17:04:12 +0200
commitded739eb381565aafcf2de81356eb34234fa027d (patch)
tree105542ec7f0474536e56154a2bfbd61c49ad2e3b /server/tools
parent93708d4e402901635c6f8b6d59bc1fa607dd99ad (diff)
downloadPeerTube-ded739eb381565aafcf2de81356eb34234fa027d.tar.gz
PeerTube-ded739eb381565aafcf2de81356eb34234fa027d.tar.zst
PeerTube-ded739eb381565aafcf2de81356eb34234fa027d.zip
Fix CLI tools typings
Diffstat (limited to 'server/tools')
-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,