feat: complate event and command module

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2019-09-19 18:59:32 +08:00
parent 15cea1dfc8
commit 533859808f
5 changed files with 198 additions and 39 deletions

View File

@ -1,5 +1,4 @@
import { injectable, postConstruct } from "inversify";
import { getPluginMetadata } from './utils'
export namespace interfaces {
@injectable()
@ -15,6 +14,22 @@ export namespace interfaces {
name: string;
version: string;
author: string | string[];
source: string;
target?: any;
}
export interface CommandMetadata {
name?: string;
executor?: string;
paramtypes?: string[];
}
export interface TabCompleterMetadata {
name?: string;
executor?: string;
paramtypes?: string[];
}
export interface ListenerMetadata {
name?: string;
executor?: string;
}
export type PluginLike = Plugin | string;
}