From 8e2cb12654edeea41a497e4915e0f5c2a832cdea Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Wed, 8 Aug 2018 15:05:22 -0400 Subject: [PATCH] move cmd to cmd folder --- bin/embark | 2 +- {lib => cmd-ui}/cmd.js | 4 ++-- test/cmd.js | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) rename {lib => cmd-ui}/cmd.js (99%) diff --git a/bin/embark b/bin/embark index 6e015edb0..303b96b42 100755 --- a/bin/embark +++ b/bin/embark @@ -9,6 +9,6 @@ try { } } -var Cmd = require('../lib/cmd'); +var Cmd = require('../cmd-ui/cmd'); var cli = new Cmd(); cli.process(process.argv); diff --git a/lib/cmd.js b/cmd-ui/cmd.js similarity index 99% rename from lib/cmd.js rename to cmd-ui/cmd.js index b75448262..e02b42310 100644 --- a/lib/cmd.js +++ b/cmd-ui/cmd.js @@ -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) { diff --git a/test/cmd.js b/test/cmd.js index 45e99ebcd..1b0e193e9 100644 --- a/test/cmd.js +++ b/test/cmd.js @@ -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(); }); }); -}); \ No newline at end of file +});