Add template function descriptions

This commit is contained in:
Gregory Schier
2024-10-15 07:47:26 -07:00
parent 17a429525f
commit 9d24aefba1
3 changed files with 3 additions and 0 deletions

View File

@@ -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',