Sha256: e2b4a9b70039babb8b8a60c5e29a67d2a4b17899a6d4d34640b1ecff88cff5b8
Contents?: true
Size: 453 Bytes
Versions: 48
Compression:
Stored size: 453 Bytes
Contents
/* eslint-disable camelcase */ export const generateDefaultDescription = ({ description_format, advancedInputs, inputs, name, }) => { if (description_format) return description_format; const allInputs = [...advancedInputs, ...inputs]; if (!allInputs.length) return name; const inputsString = allInputs .map(({ name: inputname }) => `${inputname}="%{${inputname}}"`) .join(' '); return `${name} with inputs ${inputsString}`; };
Version data entries
48 entries across 48 versions & 1 rubygems