diff --git a/plugins/template-function-fs/src/index.ts b/plugins/template-function-fs/src/index.ts index 472c1a0d..c783ea4f 100644 --- a/plugins/template-function-fs/src/index.ts +++ b/plugins/template-function-fs/src/index.ts @@ -4,6 +4,7 @@ import fs from 'node:fs'; export const plugin: PluginDefinition = { templateFunctions: [{ name: 'fs.readFile', + description: 'Read the contents of a file as utf-8', args: [{ title: 'Select File', type: 'file', name: 'path', label: 'File' }], async onRender(_ctx: Context, args: CallTemplateFunctionArgs): Promise { if (!args.values.path) return null; diff --git a/plugins/template-function-hash/src/index.ts b/plugins/template-function-hash/src/index.ts index 8520c0b7..9fca36a4 100755 --- a/plugins/template-function-hash/src/index.ts +++ b/plugins/template-function-hash/src/index.ts @@ -6,6 +6,7 @@ const algorithms = ['md5', 'sha1', 'sha256', 'sha512']; export const plugin: PluginDefinition = { templateFunctions: algorithms.map(algorithm => ({ name: `hash.${algorithm}`, + description: 'Hash a value to its hexidecimal representation', args: [ { name: 'input', diff --git a/plugins/template-function-response/src/index.ts b/plugins/template-function-response/src/index.ts index 2080cd98..90bb6525 100644 --- a/plugins/template-function-response/src/index.ts +++ b/plugins/template-function-response/src/index.ts @@ -33,6 +33,7 @@ export const plugin: PluginDefinition = { templateFunctions: [ { name: 'response.header', + description: 'Read the value of a response header, by name', args: [ requestArg, {