ICommandHistory
Interfaces
ICommandHistory
History of executed commands.
Methods
addCommand()
addCommand(command): void;
Adds the executed command to history.
Parameters
| Parameter | Type | Description |
|---|---|---|
command | ICommand | executed command. |
Returns
void
clearHistory()
clearHistory(): void;
Clears the history of executed commands.
Returns
void
getCommandsCount()
getCommandsCount(): number;
Returns the number of commands in history.
Returns
number
getLastCommand()
getLastCommand(index?): ICommand;
Returns the last command executed from history by index.
Parameters
| Parameter | Type | Description |
|---|---|---|
index? | number | command index ('0' used for the most recent command). |