createPrompter }, externalArgv) { const argv = yargs(externalArgv);
static parseCommand (command) { if (command.length === 0) { throw new Error('command cannot be empty'); } const splitted = command.split(' '); let commandName = splitted.shift(); if (commandName[0] === '!') { commandName = commandName.substr(1); } const args = yargs(splitted.join(' ')); return {commandName, args}; }