2023-05-24 16:41:36 +00:00
|
|
|
import { Autowire, IsTaskPlugin, ITaskPlugin, TaskInput, TaskOutput } from "../src";
|
2022-10-26 01:02:47 +00:00
|
|
|
|
2023-01-07 15:22:02 +00:00
|
|
|
@IsTaskPlugin({
|
|
|
|
name: "EchoPlugin",
|
|
|
|
title: "测试插件【echo】",
|
2022-10-26 01:02:47 +00:00
|
|
|
})
|
2023-01-07 15:22:02 +00:00
|
|
|
export class EchoPlugin implements ITaskPlugin {
|
|
|
|
@TaskInput({
|
|
|
|
title: "cert",
|
|
|
|
component: {
|
|
|
|
name: "pi-output-selector",
|
|
|
|
},
|
|
|
|
helper: "输出选择",
|
|
|
|
})
|
|
|
|
cert!: any;
|
|
|
|
|
|
|
|
@TaskOutput({
|
|
|
|
title: "cert info",
|
|
|
|
})
|
|
|
|
certInfo!: any;
|
|
|
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
2023-05-09 02:16:49 +00:00
|
|
|
async onInstance(): Promise<void> {}
|
2023-01-07 15:22:02 +00:00
|
|
|
async execute(): Promise<void> {
|
|
|
|
console.log("input :cert", this.cert);
|
2022-10-26 01:02:47 +00:00
|
|
|
}
|
|
|
|
}
|