mirror of
https://github.com/certd/certd.git
synced 2026-04-24 04:17:25 +08:00
refactor: register
This commit is contained in:
@@ -34,7 +34,7 @@ export type PluginDefine = Registrable & {
|
||||
};
|
||||
|
||||
export interface ITaskPlugin {
|
||||
onInit(): Promise<void>;
|
||||
onInstance(): Promise<void>;
|
||||
execute(): Promise<void>;
|
||||
}
|
||||
|
||||
|
||||
@@ -20,6 +20,10 @@ export class EchoPlugin implements ITaskPlugin {
|
||||
// @ts-ignore
|
||||
logger: ILogger;
|
||||
|
||||
onInstance(): Promise<void> {
|
||||
throw new Error("Method not implemented.");
|
||||
}
|
||||
|
||||
async execute(): Promise<void> {
|
||||
return Promise.resolve(undefined);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user