aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/server/servers.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-08 16:49:51 +0200
committerChocobozzz <me@florianbigard.com>2021-07-20 15:27:18 +0200
commit6910f20f114b5bd020258a3a9a3f2117819a60c2 (patch)
tree0f50d33e20814b581dd9b2c175e511ac7a66f8df /shared/extra-utils/server/servers.ts
parent313228e9c3b5bcef5391228c9b949d05d32ad7bb (diff)
downloadPeerTube-6910f20f114b5bd020258a3a9a3f2117819a60c2.tar.gz
PeerTube-6910f20f114b5bd020258a3a9a3f2117819a60c2.tar.zst
PeerTube-6910f20f114b5bd020258a3a9a3f2117819a60c2.zip
Introduce import command
Diffstat (limited to 'shared/extra-utils/server/servers.ts')
-rw-r--r--shared/extra-utils/server/servers.ts13
1 files changed, 12 insertions, 1 deletions
diff --git a/shared/extra-utils/server/servers.ts b/shared/extra-utils/server/servers.ts
index bd5c29e51..95c876110 100644
--- a/shared/extra-utils/server/servers.ts
+++ b/shared/extra-utils/server/servers.ts
@@ -18,7 +18,16 @@ import { makeGetRequest } from '../requests/requests'
18import { SearchCommand } from '../search' 18import { SearchCommand } from '../search'
19import { SocketIOCommand } from '../socket' 19import { SocketIOCommand } from '../socket'
20import { AccountsCommand, BlocklistCommand, SubscriptionsCommand } from '../users' 20import { AccountsCommand, BlocklistCommand, SubscriptionsCommand } from '../users'
21import { BlacklistCommand, CaptionsCommand, ChangeOwnershipCommand, HistoryCommand, LiveCommand, PlaylistsCommand, ServicesCommand } from '../videos' 21import {
22 BlacklistCommand,
23 CaptionsCommand,
24 ChangeOwnershipCommand,
25 HistoryCommand,
26 ImportsCommand,
27 LiveCommand,
28 PlaylistsCommand,
29 ServicesCommand
30} from '../videos'
22import { ConfigCommand } from './config-command' 31import { ConfigCommand } from './config-command'
23import { ContactFormCommand } from './contact-form-command' 32import { ContactFormCommand } from './contact-form-command'
24import { DebugCommand } from './debug-command' 33import { DebugCommand } from './debug-command'
@@ -107,6 +116,7 @@ interface ServerInfo {
107 changeOwnershipCommand?: ChangeOwnershipCommand 116 changeOwnershipCommand?: ChangeOwnershipCommand
108 playlistsCommand?: PlaylistsCommand 117 playlistsCommand?: PlaylistsCommand
109 historyCommand?: HistoryCommand 118 historyCommand?: HistoryCommand
119 importsCommand?: ImportsCommand
110} 120}
111 121
112function parallelTests () { 122function parallelTests () {
@@ -339,6 +349,7 @@ async function runServer (server: ServerInfo, configOverrideArg?: any, args = []
339 server.changeOwnershipCommand = new ChangeOwnershipCommand(server) 349 server.changeOwnershipCommand = new ChangeOwnershipCommand(server)
340 server.playlistsCommand = new PlaylistsCommand(server) 350 server.playlistsCommand = new PlaylistsCommand(server)
341 server.historyCommand = new HistoryCommand(server) 351 server.historyCommand = new HistoryCommand(server)
352 server.importsCommand = new ImportsCommand(server)
342 353
343 res(server) 354 res(server)
344 }) 355 })