This commit is contained in:
Iuri Matias 2018-06-18 11:37:23 -04:00
parent b34ddf32cf
commit 231e48cecb
1 changed files with 1 additions and 0 deletions

View File

@ -32,6 +32,7 @@ var Config = function(options) {
cb(self.contractsFiles);
});
// TODO: refactor this so reading the file can be done with a normal resolver or something that takes advantage of the plugin api
self.events.setCommandHandler("config:contractsFiles:add", (filename) => {
self.contractsFiles.push(new File({filename: filename, type: File.types.custom, path: filename, resolver: function(callback) {
callback(fs.readFileSync(filename).toString());