Initial implementation of command link arguments (#573)
Initial implementation of command link arguments --------- Co-authored-by: prcrst <p-github@prcr.st> Co-authored-by: Zef Hemel <zef@zef.me>
This commit is contained in:
co-authored by
prcrst
Zef Hemel
parent
a03b211dad
commit
e6f77b12af
@@ -50,11 +50,11 @@ export function systemSyscalls(
|
||||
}
|
||||
return plug.invoke(name, args);
|
||||
},
|
||||
"system.invokeCommand": (_ctx, name: string) => {
|
||||
"system.invokeCommand": (_ctx, name: string, args?: string[]) => {
|
||||
if (!client) {
|
||||
throw new Error("Not supported");
|
||||
}
|
||||
return client.runCommandByName(name);
|
||||
return client.runCommandByName(name, args);
|
||||
},
|
||||
"system.listCommands": (): { [key: string]: CommandDef } => {
|
||||
if (!client) {
|
||||
|
||||
Reference in New Issue
Block a user