mirror of https://github.com/certd/certd
28 lines
605 B
TypeScript
28 lines
605 B
TypeScript
import { Autowire, IsTaskPlugin, ITaskPlugin, TaskInput, TaskOutput } from "../src";
|
|
|
|
@IsTaskPlugin({
|
|
name: "EchoPlugin",
|
|
title: "测试插件【echo】",
|
|
})
|
|
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
|
|
async onInstance(): Promise<void> {}
|
|
async execute(): Promise<void> {
|
|
console.log("input :cert", this.cert);
|
|
}
|
|
}
|