5 * function execute(command, params) {
10 * include all Eos command's info.
11 * For seaching with O(n), the object key name is command name.
13 const commandReference = {
26 execute: function(command, options) {
28 hasDone: false, // true | false
33 * Check of command name
35 if(typeof command !== 'string') {
36 result.comment = 'command parameter need to be string';
40 const hasCommand = Object.keys(commandReference).indexOf(command) > 0;
42 result.comment = 'command name is invalid';
54 result.hasDone = true;
55 result.comment = command + ' has done.';