import { CommandManagerConfigType } from './CommandManagerConfigType' ; import { ServiceManager , AbstractFileBasedPluginManager } from '../ServiceManager' ; import { Instantiable } from '../Core' ; import { AbstractCommand } from './AbstractCommand' ; export class CommandManager extends AbstractFileBasedPluginManager { constructor ( creationContext , config = { } ) { const { locations , commands } = config ; super ( creationContext , locations , commands ) ; } public getCommand ( Command ) { return this . getPlugin ( Command as Instantiable < Object > ) ; } }