budibase/packages/builder/src/constants/completions.js

15 lines
391 B
JavaScript
Raw Normal View History

2021-02-01 12:51:53 +01:00
import { getManifest } from "@budibase/string-templates"
export function handlebarsCompletions() {
const manifest = getManifest()
return Object.keys(manifest).flatMap(key =>
Object.entries(manifest[key]).map(([helperName, helperConfig]) => ({
text: helperName,
path: helperName,
displayText: helperName,
description: helperConfig.description,
}))
)
}