Skip to content

Commit

Permalink
feat(#93): use chain for gmi phase
Browse files Browse the repository at this point in the history
  • Loading branch information
volodya-lombrozo committed Nov 30, 2022
1 parent 9d68e5b commit eb610f8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/eoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ program.command('assemble')
}
});

//todo: logger
program.command('gmi')
.description('generate GMI files from XMIR')
.option('--xml', 'generate .gmi.xml files')
Expand All @@ -106,10 +105,12 @@ program.command('gmi')
.option('--exclude <names>', 'don\'t generate GMI for these objects')
.action((str, opts) => {
if (program.opts().alone == undefined) {
register(program.opts());
assemble(program.opts());
register(program.opts())
.then(r => assemble(program.opts()))
.then(r => gmi({...program.opts(), ...str}));
} else {
gmi({...program.opts(), ...str});
}
gmi({...program.opts(), ...str});
});

//todo: logger
Expand Down

0 comments on commit eb610f8

Please sign in to comment.