silverbullet/plugs/federation/federation.plug.yaml

35 lines
775 B
YAML

name: federation
requiredPermissions:
- fetch
functions:
readFile:
path: ./federation.ts:readFile
pageNamespace:
pattern: "^!.+"
operation: readFile
writeFile:
path: ./federation.ts:writeFile
pageNamespace:
pattern: "^!.+"
operation: writeFile
deleteFile:
path: ./federation.ts:deleteFile
pageNamespace:
pattern: "^!.+"
operation: deleteFile
getFileMeta:
path: ./federation.ts:getFileMeta
pageNamespace:
pattern: "^!.+"
operation: getFileMeta
# Library management commands
updateLibrariesCommand:
path: library.ts:updateLibrariesCommand
command:
name: "Libraries: Update"
requireMode: rw
updateLibraries:
path: library.ts:updateLibraries
env: server