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,
|
2021-02-01 15:29:51 +01:00
|
|
|
label: helperName,
|
2021-02-01 12:51:53 +01:00
|
|
|
displayText: helperName,
|
|
|
|
description: helperConfig.description,
|
|
|
|
}))
|
|
|
|
)
|
|
|
|
}
|