Merge branch 'linting_fixes' of github.com:embark-framework/embark into linting_fixes

Please enter a commit message to explain why this merge is necessary,
This commit is contained in:
Iuri Matias 2018-10-29 21:37:03 +01:00
commit 0cca992fca
3 changed files with 2 additions and 4 deletions

View File

@ -26,7 +26,6 @@ if (!process.env.PKG_PATH) {
} }
process.env.DEFAULT_DIAGRAM_PATH = utils.joinPath(process.env.DAPP_PATH, 'diagram.svg'); process.env.DEFAULT_DIAGRAM_PATH = utils.joinPath(process.env.DAPP_PATH, 'diagram.svg');
process.env.DEFAULT_CMD_HISTORY_PATH = utils.joinPath(process.env.DAPP_PATH, '.embark', 'cmd_history');
process.env.DEFAULT_CMD_HISTORY_SIZE = 20; process.env.DEFAULT_CMD_HISTORY_SIZE = 20;
class Cmd { class Cmd {

View File

@ -2,8 +2,7 @@ let fs = require('../../lib/core/fs');
class CommandHistory { class CommandHistory {
constructor(options = {}) { constructor(options = {}) {
this.cmdHistoryFile = options.cmdHistoryFile this.cmdHistoryFile = options.cmdHistoryFile || fs.dappPath('.embark', 'cmd_history');
|| process.env.DEFAULT_CMD_HISTORY_PATH;
this.history = []; this.history = [];
this.pointer = -1; this.pointer = -1;
this.loadHistory(); this.loadHistory();

View File

@ -16,7 +16,7 @@ class Console {
this.ipc = options.ipc; this.ipc = options.ipc;
this.config = options.config; this.config = options.config;
this.history = []; this.history = [];
this.cmdHistoryFile = options.cmdHistoryFile || process.env.DEFAULT_CMD_HISTORY_PATH; this.cmdHistoryFile = options.cmdHistoryFile || fs.dappPath('.embark', 'cmd_history');
this.loadHistory(); this.loadHistory();
if (this.ipc.isServer()) { if (this.ipc.isServer()) {