Skip to content

Commit

Permalink
#350 doc
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Oct 25, 2024
1 parent 7889552 commit bd7ed32
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 5 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ You can also do many other things with `eoc` commands
* `link` puts all binaries together into a single executable binary
* `dataize` dataizes a single object from the executable binary
* `test` dataizes all visible unit tests
* `jeo:disassemble` convert Java `.class` files to `.xmir`
(via [jeo](https://github.com/objectionary/jeo-maven-plugin))
* `jeo:assemble` convert `.xmir` files to Java `.class` files
(via [jeo](https://github.com/objectionary/jeo-maven-plugin))

There are also commands that help manipulate with XMIR and EO sources
(the list is not completed, while some of them are not implemented as of yet):
Expand Down
5 changes: 4 additions & 1 deletion src/commands/jeo/assemble.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ module.exports = function(opts) {
),
opts.target, opts.batch
).then((r) => {
console.info('EO .xmir files from %s assembled to .class to %s', rel(opts.xmirs), rel(opts.classes));
console.info(
'EO .xmir files from %s assembled to .class to %s',
rel(opts.xmirs), rel(opts.classes)
);
return r;
});
};
5 changes: 4 additions & 1 deletion src/commands/jeo/disassemble.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ module.exports = function(opts) {
),
opts.target, opts.batch
).then((r) => {
console.info('Bytecode .class files from %s disassembled to .xmir to %s', rel(opts.classes), rel(opts.xmirs));
console.info(
'Bytecode .class files from %s disassembled to .xmir to %s',
rel(opts.classes), rel(opts.xmirs)
);
return r;
});
};
2 changes: 1 addition & 1 deletion src/eoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ program.command('jeo:assemble')
.description('Assemble .xmir files to .class files')
.option('--jeo-version <version>', 'Version of JEO to use', '0.6.11')
.option('--xmirs <dir>', 'Directory with .xmir files (reading from it)', 'target/xmir')
.option('--unrolled <dir>', 'Directory with unrolled .xmir files (writing into it)', 'target/unrolled')
.option('--unrolled <dir>', 'Directory with unrolled .xmir files', 'target/unrolled')
.option('--classes <dir>', 'Directory with .class files (writing into it)', 'target/classes')
.action((str, opts) => {
coms().jeo_assemble({...program.opts(), ...str});
Expand Down
2 changes: 1 addition & 1 deletion test/commands/jeo/test_assemble.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
const fs = require('fs');
const path = require('path');
const execSync = require('child_process').execSync;
const {runSync, assertFilesExist, parserVersion, homeTag, weAreOnline} = require('../../helpers');
const {runSync, assertFilesExist, weAreOnline} = require('../../helpers');

describe('jeo:assemble', function() {
before(weAreOnline);
Expand Down
2 changes: 1 addition & 1 deletion test/commands/jeo/test_disassemble.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
const fs = require('fs');
const path = require('path');
const execSync = require('child_process').execSync;
const {runSync, assertFilesExist, parserVersion, homeTag, weAreOnline} = require('../../helpers');
const {runSync, assertFilesExist, weAreOnline} = require('../../helpers');

describe('jeo:disassemble', function() {
before(weAreOnline);
Expand Down

0 comments on commit bd7ed32

Please sign in to comment.