mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Introduce CLI command
This commit is contained in:
parent
a6a79eae0d
commit
329619b345
16 changed files with 94 additions and 138 deletions
|
@ -6,6 +6,8 @@ import { copy, ensureDir, pathExists, readdir, readFile, remove } from 'fs-extra
|
|||
import { join } from 'path'
|
||||
import { randomInt } from '../../core-utils/miscs/miscs'
|
||||
import { VideoChannel } from '../../models/videos'
|
||||
import { BulkCommand } from '../bulk'
|
||||
import { CLICommand } from '../cli'
|
||||
import { buildServerDirectory, getFileSize, isGithubCI, root, wait } from '../miscs/miscs'
|
||||
import { makeGetRequest } from '../requests/requests'
|
||||
|
||||
|
@ -60,6 +62,9 @@ interface ServerInfo {
|
|||
}
|
||||
|
||||
videos?: { id: number, uuid: string }[]
|
||||
|
||||
bulkCommand?: BulkCommand
|
||||
cliCommand?: CLICommand
|
||||
}
|
||||
|
||||
function parallelTests () {
|
||||
|
@ -265,6 +270,9 @@ async function runServer (server: ServerInfo, configOverrideArg?: any, args = []
|
|||
} catch { /* empty */ }
|
||||
})
|
||||
|
||||
server.bulkCommand = new BulkCommand(server)
|
||||
server.cliCommand = new CLICommand(server)
|
||||
|
||||
res(server)
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue