1
0
silverbullet/packages/plugos-silverbullet-syscall/system.ts
2022-07-11 09:08:22 +02:00

22 lines
494 B
TypeScript

import { syscall } from "./syscall";
export async function invokeFunction(
env: string,
name: string,
...args: any[]
): Promise<any> {
return syscall("system.invokeFunction", env, name, ...args);
}
export async function invokeCommand(name: string): Promise<any> {
return syscall("system.invokeCommand", name);
}
export async function getVersion(): Promise<string> {
return syscall("system.getVersion");
}
export async function reloadPlugs() {
syscall("system.reloadPlugs");
}