move cmd to cmd folder

This commit is contained in:
Iuri Matias 2018-08-08 15:05:22 -04:00
parent 20566067a5
commit d0ad16004b
3 changed files with 5 additions and 5 deletions

View File

@ -9,6 +9,6 @@ try {
} }
} }
var Cmd = require('../lib/cmd'); var Cmd = require('../cmd-ui/cmd');
var cli = new Cmd(); var cli = new Cmd();
cli.process(process.argv); cli.process(process.argv);

View File

@ -1,6 +1,6 @@
const program = require('commander'); const program = require('commander');
const Embark = require('../lib/index'); const Embark = require('../lib/index');
const i18n = require('./core/i18n/i18n.js'); const i18n = require('../lib/core/i18n/i18n.js');
let embark = new Embark; let embark = new Embark;
class Cmd { class Cmd {
@ -288,7 +288,7 @@ class Cmd {
program program
.action(function (cmd) { .action(function (cmd) {
console.log((__('unknown command') + ' "%s"').red, cmd); console.log((__('unknown command') + ' "%s"').red, cmd);
let utils = require('./utils/utils.js'); let utils = require('../lib/utils/utils.js');
let dictionary = ['new', 'demo', 'build', 'run', 'blockchain', 'simulator', 'test', 'upload', 'version']; let dictionary = ['new', 'demo', 'build', 'run', 'blockchain', 'simulator', 'test', 'upload', 'version'];
let suggestion = utils.proposeAlternative(cmd, dictionary); let suggestion = utils.proposeAlternative(cmd, dictionary);
if (suggestion) { if (suggestion) {

View File

@ -1,5 +1,5 @@
let Embark = require('../lib/index'); let Embark = require('../lib/index');
let Cmd = require('../lib/cmd'); let Cmd = require('../cmd-ui/cmd');
// Function to send a line to stdin // Function to send a line to stdin
function sendLine(line) { function sendLine(line) {