]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/extra-utils/server/servers.ts
Introduce live command
[github/Chocobozzz/PeerTube.git] / shared / extra-utils / server / servers.ts
index 57b37728a21d1dedd5f25171582a63755b777c58..eca0689aa0966622a318ecaa36396aa4aadde821 100644 (file)
@@ -18,6 +18,7 @@ import { makeGetRequest } from '../requests/requests'
 import { SearchCommand } from '../search'
 import { SocketIOCommand } from '../socket'
 import { AccountsCommand, BlocklistCommand, SubscriptionsCommand } from '../users'
+import { LiveCommand } from '../videos'
 import { ConfigCommand } from './config-command'
 import { ContactFormCommand } from './contact-form-command'
 import { DebugCommand } from './debug-command'
@@ -99,6 +100,7 @@ interface ServerInfo {
   accountsCommand?: AccountsCommand
   blocklistCommand?: BlocklistCommand
   subscriptionsCommand?: SubscriptionsCommand
+  liveCommand?: LiveCommand
 }
 
 function parallelTests () {
@@ -324,6 +326,7 @@ async function runServer (server: ServerInfo, configOverrideArg?: any, args = []
       server.accountsCommand = new AccountsCommand(server)
       server.blocklistCommand = new BlocklistCommand(server)
       server.subscriptionsCommand = new SubscriptionsCommand(server)
+      server.liveCommand = new LiveCommand(server)
 
       res(server)
     })