mirror of https://github.com/embarklabs/embark.git
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:
commit
0cca992fca
|
@ -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_CMD_HISTORY_PATH = utils.joinPath(process.env.DAPP_PATH, '.embark', 'cmd_history');
|
||||
process.env.DEFAULT_CMD_HISTORY_SIZE = 20;
|
||||
|
||||
class Cmd {
|
||||
|
|
|
@ -2,8 +2,7 @@ let fs = require('../../lib/core/fs');
|
|||
|
||||
class CommandHistory {
|
||||
constructor(options = {}) {
|
||||
this.cmdHistoryFile = options.cmdHistoryFile
|
||||
|| process.env.DEFAULT_CMD_HISTORY_PATH;
|
||||
this.cmdHistoryFile = options.cmdHistoryFile || fs.dappPath('.embark', 'cmd_history');
|
||||
this.history = [];
|
||||
this.pointer = -1;
|
||||
this.loadHistory();
|
||||
|
|
|
@ -16,7 +16,7 @@ class Console {
|
|||
this.ipc = options.ipc;
|
||||
this.config = options.config;
|
||||
this.history = [];
|
||||
this.cmdHistoryFile = options.cmdHistoryFile || process.env.DEFAULT_CMD_HISTORY_PATH;
|
||||
this.cmdHistoryFile = options.cmdHistoryFile || fs.dappPath('.embark', 'cmd_history');
|
||||
this.loadHistory();
|
||||
|
||||
if (this.ipc.isServer()) {
|
||||
|
|
Loading…
Reference in New Issue