remove use of initConfig

This commit is contained in:
Jonathan Rainville 2018-07-10 08:49:08 -04:00 committed by Iuri Matias
parent 4ebe7cdeb7
commit e7d70c33fd

View File

@ -107,10 +107,6 @@ 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);
});
}
@ -130,10 +126,6 @@ class Cmd {
.description(__('run dapp (default: %s)', 'development'))
.action(function (env, options) {
i18n.setOrDetectLocale(options.locale);
embark.initConfig(env || 'development', {
embarkConfig: 'embark.json',
interceptLogs: false
});
embark.run({
env: env || 'development',
serverPort: options.port,
@ -245,10 +237,6 @@ 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);
});
}
@ -263,10 +251,6 @@ 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,