Plug format now changed to YAML

This commit is contained in:
Zef Hemel
2022-03-27 11:26:13 +02:00
parent a382ab3baa
commit 621e55dbcf
20 changed files with 225 additions and 254 deletions
+2 -5
View File
@@ -4,8 +4,7 @@ import { CronHook } from "../plugbox/feature/node_cron";
import { EventHook } from "../plugbox/feature/event";
export type CommandDef = {
// Function name to invoke
invoke: string;
name: string;
// Bind to keyboard shortcut
key?: string;
@@ -17,9 +16,7 @@ export type CommandDef = {
};
export type SilverBulletHooks = {
commands?: {
[key: string]: CommandDef;
};
command?: CommandDef | CommandDef[];
} & EndpointHook &
CronHook &
EventHook;