executeCommand method
Executes the buffered command and returns a response indicating any triggered commands.
Currently, :q
triggers an exit command.
Implementation
ResponseInput executeCommand() {
final ResponseCommands responseCommands;
if (_buffer.toString() == ':q') {
responseCommands = ResponseCommands.exit;
} else {
responseCommands = ResponseCommands.none;
}
_exitCommandMode();
return ResponseInput(commands: responseCommands, handled: true);
}