mirror of
https://github.com/fluencelabs/fluence-js.git
synced 2025-04-25 01:42:13 +00:00
feat: add run-console (#305)
This commit is contained in:
parent
d22017c6b0
commit
cf1f02963c
@ -563,6 +563,13 @@ export const builtInServices: Record<string, Record<string, GenericCallServiceHa
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
'run-console': {
|
||||||
|
print: (req) => {
|
||||||
|
console.log(...req.args);
|
||||||
|
return success({});
|
||||||
|
},
|
||||||
|
},
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
const checkForArgumentsCount = (req: { args: Array<unknown> }, count: number) => {
|
const checkForArgumentsCount = (req: { args: Array<unknown> }, count: number) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user