mirror of https://github.com/embarklabs/embark.git
Add more API docs for console module
parent
b96d83b73f
commit
83a05815f0
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue