Skip to content

Commit

Permalink
added a simple impl
Browse files Browse the repository at this point in the history
  • Loading branch information
SenjeyB committed Dec 9, 2024
1 parent 2679d9b commit a8db897
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/commands/docs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* Command to create docs from .EO sources.
* @param {Hash} opts - All options
*/
module.exports = function(opts) {
console.info('Hello World!');

Check failure on line 6 in src/commands/docs.js

View workflow job for this annotation

GitHub Actions / build (ubuntu-24.04, 17, 16)

Expected indentation of 2 spaces but found 4
};

Check failure on line 7 in src/commands/docs.js

View workflow job for this annotation

GitHub Actions / build (ubuntu-24.04, 17, 16)

Newline required at end of file but not found
7 changes: 7 additions & 0 deletions src/eoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const common = {
sodg: require('./commands/sodg'),
unphi: require('./commands/unphi'),
lint: require('./commands/lint'),
docs: require('./commands/docs'),
jeo_disassemble: require('./commands/jeo/disassemble'),
jeo_assemble: require('./commands/jeo/assemble')
};
Expand Down Expand Up @@ -347,6 +348,12 @@ program.command('test')
}
});

program.command('docs')
.description('Generate documentation from XMIR files')
.action((str, opts) => {
coms().docs(program.opts());
});

program.command('jeo:disassemble')
.description('Disassemble .class files to .xmir files')
.option('--jeo-version <version>', 'Version of JEO to use', '0.6.11')
Expand Down

0 comments on commit a8db897

Please sign in to comment.