Closed morkeleb closed 11 months ago
Hi @morkeleb
this should do the trick
call "math.add" --a 5 --#b Bob --$timeout 1
// params will be { a: 5 }, meta will be { b: 'Bob' } and options will be { timeout: 1 }
as an alternative you can use --loadFull flag (more info here: https://github.com/moleculerjs/moleculer-repl/pull/61)
Yes. But as stated in the documentation the following should work:
call [options] <actionName> [jsonParams] [meta]
@AndreMaz could you reproduce it, plz?
@icebob the #
(e.g, --#metaParam
) option is working fine. However, passing meta
as JSON encoded as string was failing.
This PR should fix it https://github.com/moleculerjs/moleculer-repl/pull/71
When I use the repel with JSON-strings it wont add meta to the call.
will call the service v1.myService.action with
{run: true}
but it wont add{myExtra: 'data'}
to the meta of the request. The meta is always only{ '$repl': true }
.I start the repl with: