Add stop command (#540)

Co-authored-by: Max Isom <hi@maxisom.me>
This commit is contained in:
Thongrapee Panyapatiphan 2022-02-25 06:24:45 +07:00 committed by GitHub
parent 237086245b
commit 4f0db62170
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 47 additions and 0 deletions

View file

@ -26,6 +26,7 @@ import Remove from './commands/remove.js';
import Seek from './commands/seek.js';
import Shuffle from './commands/shuffle.js';
import Skip from './commands/skip.js';
import Stop from './commands/stop.js';
import Unskip from './commands/unskip.js';
import ThirdParty from './services/third-party.js';
import FileCacheProvider from './services/file-cache.js';
@ -66,6 +67,7 @@ container.bind<AddQueryToQueue>(TYPES.Services.AddQueryToQueue).to(AddQueryToQue
Seek,
Shuffle,
Skip,
Stop,
Unskip,
].forEach(command => {
container.bind<Command>(TYPES.Command).to(command).inSingletonScope();