move cmd to cmd folder

This commit is contained in:
Iuri Matias 2018-08-08 15:05:22 -04:00
parent 33668c3f8b
commit 8e2cb12654
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();
cli.process(process.argv);

View File

@ -1,6 +1,6 @@
const program = require('commander');
const Embark = require('../lib/index');
const i18n = require('./core/i18n/i18n.js');
const i18n = require('../lib/core/i18n/i18n.js');
let embark = new Embark;
class Cmd {
@ -288,7 +288,7 @@ class Cmd {
program
.action(function (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 suggestion = utils.proposeAlternative(cmd, dictionary);
if (suggestion) {

View File

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