diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-08 16:49:51 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:18 +0200 |
commit | 6910f20f114b5bd020258a3a9a3f2117819a60c2 (patch) | |
tree | 0f50d33e20814b581dd9b2c175e511ac7a66f8df /shared/extra-utils/server | |
parent | 313228e9c3b5bcef5391228c9b949d05d32ad7bb (diff) | |
download | PeerTube-6910f20f114b5bd020258a3a9a3f2117819a60c2.tar.gz PeerTube-6910f20f114b5bd020258a3a9a3f2117819a60c2.tar.zst PeerTube-6910f20f114b5bd020258a3a9a3f2117819a60c2.zip |
Introduce import command
Diffstat (limited to 'shared/extra-utils/server')
-rw-r--r-- | shared/extra-utils/server/servers.ts | 13 |
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' | |||
18 | import { SearchCommand } from '../search' | 18 | import { SearchCommand } from '../search' |
19 | import { SocketIOCommand } from '../socket' | 19 | import { SocketIOCommand } from '../socket' |
20 | import { AccountsCommand, BlocklistCommand, SubscriptionsCommand } from '../users' | 20 | import { AccountsCommand, BlocklistCommand, SubscriptionsCommand } from '../users' |
21 | import { BlacklistCommand, CaptionsCommand, ChangeOwnershipCommand, HistoryCommand, LiveCommand, PlaylistsCommand, ServicesCommand } from '../videos' | 21 | import { |
22 | BlacklistCommand, | ||
23 | CaptionsCommand, | ||
24 | ChangeOwnershipCommand, | ||
25 | HistoryCommand, | ||
26 | ImportsCommand, | ||
27 | LiveCommand, | ||
28 | PlaylistsCommand, | ||
29 | ServicesCommand | ||
30 | } from '../videos' | ||
22 | import { ConfigCommand } from './config-command' | 31 | import { ConfigCommand } from './config-command' |
23 | import { ContactFormCommand } from './contact-form-command' | 32 | import { ContactFormCommand } from './contact-form-command' |
24 | import { DebugCommand } from './debug-command' | 33 | import { 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 | ||
112 | function parallelTests () { | 122 | function 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 | }) |