Fix CLI tools typings
This commit is contained in:
parent
93708d4e40
commit
ded739eb38
|
@ -3,7 +3,7 @@ import { getAppNumber, isTestInstance } from '../helpers/core-utils'
|
||||||
import { join } from 'path'
|
import { join } from 'path'
|
||||||
import { root } from '../../shared/extra-utils/miscs/miscs'
|
import { root } from '../../shared/extra-utils/miscs/miscs'
|
||||||
import { getVideoChannel } from '../../shared/extra-utils/videos/video-channels'
|
import { getVideoChannel } from '../../shared/extra-utils/videos/video-channels'
|
||||||
import { Command } from 'commander'
|
import { CommanderStatic } from 'commander'
|
||||||
import { VideoChannel, VideoPrivacy } from '../../shared/models/videos'
|
import { VideoChannel, VideoPrivacy } from '../../shared/models/videos'
|
||||||
import { createLogger, format, transports } from 'winston'
|
import { createLogger, format, transports } from 'winston'
|
||||||
import { getMyUserInformation } from '@shared/extra-utils/users/users'
|
import { getMyUserInformation } from '@shared/extra-utils/users/users'
|
||||||
|
@ -118,7 +118,7 @@ function getRemoteObjectOrDie (
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function buildCommonVideoOptions (command: Command) {
|
function buildCommonVideoOptions (command: CommanderStatic) {
|
||||||
function list (val) {
|
function list (val) {
|
||||||
return val.split(',')
|
return val.split(',')
|
||||||
}
|
}
|
||||||
|
@ -139,7 +139,7 @@ function buildCommonVideoOptions (command: Command) {
|
||||||
.option('-v, --verbose <verbose>', 'Verbosity, from 0/\'error\' to 4/\'debug\'', 'info')
|
.option('-v, --verbose <verbose>', 'Verbosity, from 0/\'error\' to 4/\'debug\'', 'info')
|
||||||
}
|
}
|
||||||
|
|
||||||
async function buildVideoAttributesFromCommander (url: string, command: Command, defaultAttributes: any = {}) {
|
async function buildVideoAttributesFromCommander (url: string, command: CommanderStatic, defaultAttributes: any = {}) {
|
||||||
const defaultBooleanAttributes = {
|
const defaultBooleanAttributes = {
|
||||||
nsfw: false,
|
nsfw: false,
|
||||||
commentsEnabled: true,
|
commentsEnabled: true,
|
||||||
|
|
Loading…
Reference in New Issue