Add more API docs for console module

Pascal Precht 2020-01-21 14:06:16 +01:00
parent b96d83b73f
commit 83a05815f0
1 changed files with 16 additions and 1 deletions

@ -273,7 +273,22 @@ arguments:
* `cb` {function} - Callback to be called when command finished execution
Executes a given command in Embark virtual machine.
a
name: `console:history`
arguments:
* `historySize` {string} - Number of commands to be returned by history
* `cb` {function} - Callback to be executed once history has been returned
Returns last `#n` commands of the history, where `#n` is a number that specifies the amount of commands.e
name: `console:executePartial`
arguments:
* `cmd` {string} - Command to be executed
* `cb` {function} - Callback to be called when done
**Events used**
* `runcode:eval` - To eval/execute commands inside `console:runCmd`
### whisper