feat: optimize api

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2019-09-19 18:59:00 +08:00
parent dfa43d58f0
commit 15cea1dfc8
6 changed files with 23 additions and 23 deletions

View File

@ -14,11 +14,14 @@ export namespace command {
if (exec.tab && typeof exec.tab === "function") {
this.onTabComplete(plugin, cmd, exec.tab)
}
}
off(plugin: any, name: string) {
}
/**
* Create Server Command Object
*/
abstract create(plugin: object, opts: { name: string });
abstract create(name: string, opts: { name: string });
abstract onCommand(plugin: object, command: any, opts: { name: string });
abstract onTabComplete(plugin: object, command: any, opts: { name: string });
}