diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-05 16:37:50 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:16 +0200 |
commit | 329619b3453479f76c049816b7403b86e9d45cb5 (patch) | |
tree | e522940946402a4284d356f2cde8e0dcbe29b289 /shared/extra-utils/server | |
parent | a6a79eae0d8564099b6957e76d7a18528d9ef124 (diff) | |
download | PeerTube-329619b3453479f76c049816b7403b86e9d45cb5.tar.gz PeerTube-329619b3453479f76c049816b7403b86e9d45cb5.tar.zst PeerTube-329619b3453479f76c049816b7403b86e9d45cb5.zip |
Introduce CLI command
Diffstat (limited to 'shared/extra-utils/server')
-rw-r--r-- | shared/extra-utils/server/servers.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/shared/extra-utils/server/servers.ts b/shared/extra-utils/server/servers.ts index 28e431e94..1b0775421 100644 --- a/shared/extra-utils/server/servers.ts +++ b/shared/extra-utils/server/servers.ts | |||
@@ -6,6 +6,8 @@ import { copy, ensureDir, pathExists, readdir, readFile, remove } from 'fs-extra | |||
6 | import { join } from 'path' | 6 | import { join } from 'path' |
7 | import { randomInt } from '../../core-utils/miscs/miscs' | 7 | import { randomInt } from '../../core-utils/miscs/miscs' |
8 | import { VideoChannel } from '../../models/videos' | 8 | import { VideoChannel } from '../../models/videos' |
9 | import { BulkCommand } from '../bulk' | ||
10 | import { CLICommand } from '../cli' | ||
9 | import { buildServerDirectory, getFileSize, isGithubCI, root, wait } from '../miscs/miscs' | 11 | import { buildServerDirectory, getFileSize, isGithubCI, root, wait } from '../miscs/miscs' |
10 | import { makeGetRequest } from '../requests/requests' | 12 | import { makeGetRequest } from '../requests/requests' |
11 | 13 | ||
@@ -60,6 +62,9 @@ interface ServerInfo { | |||
60 | } | 62 | } |
61 | 63 | ||
62 | videos?: { id: number, uuid: string }[] | 64 | videos?: { id: number, uuid: string }[] |
65 | |||
66 | bulkCommand?: BulkCommand | ||
67 | cliCommand?: CLICommand | ||
63 | } | 68 | } |
64 | 69 | ||
65 | function parallelTests () { | 70 | function parallelTests () { |
@@ -265,6 +270,9 @@ async function runServer (server: ServerInfo, configOverrideArg?: any, args = [] | |||
265 | } catch { /* empty */ } | 270 | } catch { /* empty */ } |
266 | }) | 271 | }) |
267 | 272 | ||
273 | server.bulkCommand = new BulkCommand(server) | ||
274 | server.cliCommand = new CLICommand(server) | ||
275 | |||
268 | res(server) | 276 | res(server) |
269 | }) | 277 | }) |
270 | }) | 278 | }) |