move cmd to cmd folder
This commit is contained in:
parent
20566067a5
commit
d0ad16004b
|
@ -9,6 +9,6 @@ try {
|
|||
}
|
||||
}
|
||||
|
||||
var Cmd = require('../lib/cmd');
|
||||
var Cmd = require('../cmd-ui/cmd');
|
||||
var cli = new Cmd();
|
||||
cli.process(process.argv);
|
||||
|
|
|
@ -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) {
|
|
@ -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();
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue