mirror of https://github.com/embarklabs/embark.git
move cmd to cmd folder
This commit is contained in:
parent
33668c3f8b
commit
8e2cb12654
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue