set isDev as default if there is no blockchain file

This commit is contained in:
Jonathan Rainville 2018-07-09 15:20:47 -04:00 committed by Iuri Matias
parent 5c7b5f9428
commit c264f6520b

View File

@ -108,6 +108,10 @@ class Cmd {
_options.logLevel = _options.loglevel; // fix casing
_options.onlyCompile = _options.contracts;
_options.client = _options.client || 'geth';
embark.initConfig(env || 'development', {
embarkConfig: 'embark.json',
interceptLogs: false
});
embark.build(_options);
});
}
@ -242,6 +246,10 @@ class Cmd {
_options.logFile = _options.logfile; // fix casing
_options.logLevel = _options.loglevel; // fix casing
_options.client = _options.client || 'geth';
embark.initConfig(env || 'development', {
embarkConfig: 'embark.json',
interceptLogs: false
});
embark.upload(_options);
});
}
@ -256,6 +264,10 @@ class Cmd {
.description(__('generates documentation based on the smart contracts configured'))
.action(function (env, options) {
i18n.setOrDetectLocale(options.locale);
embark.initConfig(env || 'development', {
embarkConfig: 'embark.json',
interceptLogs: false
});
embark.graph({
env: env || 'development',
logFile: options.logfile,