diff --git a/src/config.ts b/src/config.ts index 31c9ae81..21b45359 100644 --- a/src/config.ts +++ b/src/config.ts @@ -41,6 +41,10 @@ export interface IConfig { npmRegistry: string } +export interface ICLIConfig extends IConfig { + engine: IEngine +} + export interface TSConfig { compilerOptions: { rootDir?: string diff --git a/src/engine.ts b/src/engine.ts index 531b2aa1..02963aca 100644 --- a/src/engine.ts +++ b/src/engine.ts @@ -1,8 +1,10 @@ import {ICachedCommand} from './command' +import {ICLIConfig} from './config' import {IPlugin} from './plugin' import {ITopic} from './topic' export interface IEngine { + readonly config: ICLIConfig readonly plugins: IPlugin[] readonly topics: ITopic[] @@ -18,4 +20,6 @@ export interface IEngine { findTopic(id: string, must?: boolean): ITopic | undefined runHook(event: string, opts: T): Promise + + load(root: string): Promise }