feat: add run-console (#305)

This commit is contained in:
shamsartem 2023-05-30 16:17:51 +02:00 committed by GitHub
parent d22017c6b0
commit cf1f02963c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -563,6 +563,13 @@ export const builtInServices: Record<string, Record<string, GenericCallServiceHa
}
},
},
'run-console': {
print: (req) => {
console.log(...req.args);
return success({});
},
},
} as const;
const checkForArgumentsCount = (req: { args: Array<unknown> }, count: number) => {