Skip to content

Commit

Permalink
remove juliaOnly, --julia-only
Browse files Browse the repository at this point in the history
  • Loading branch information
metelkin committed Sep 6, 2024
1 parent 402b7ab commit f4810d8
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 13 deletions.
2 changes: 0 additions & 2 deletions bin/heta-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ program
.option('--units-check', 'Check all Records for unit consistency.')
.option('-L, --log-mode <never|error|always>', 'When to create log file.')
.option('--debug', 'If set the raw module output will be stored in "meta".')
.option('--julia-only', 'Run in Julia supporting mode: skip declared exports.')
.option('--dist-dir <filepath>', 'Set export directory path, where to store exported files.')
.option('--meta-dir <filepath>', 'Set meta directory path.')
// moduleImport
Expand Down Expand Up @@ -87,7 +86,6 @@ async function main() {
unitsCheck: opts.unitsCheck,
logMode: opts.logMode,
debug: opts.debug,
juliaOnly: opts.juliaOnly,
distDir: opts.distDir,
metaDir: opts.metaDir
},
Expand Down
5 changes: 1 addition & 4 deletions cli-references.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ List of `heta build` options:
| --type | \<string\> | heta | Type of source file. This option allows to select type of module which will be applied for parsing. Available values: heta/xlsx/json/yaml/sbml. |
| --debug | | | Working in debugging mode. All parsed files will be saved in JSON files in **meta** directory. |
| --units-check | | | If set all records will be checked for units consistency. |
| --julia-only | | | Run in Julia supporting mode: skip declared exports, add default export to Julia. |
| --dist-dir | \<string\> | | Set export directory path, where to store exported files. |
| --meta-dir | \<string\> | | Set meta directory path. |
| --log-mode | string | error | The rule in which case the log file should be created. Possible values are: never/error/always |
Expand Down Expand Up @@ -205,7 +204,6 @@ There are properties in declaration file which do not change compilation process
| options.logLevel | string | | info | When parsing the compiler prints the messages to the shell. Here you can set a level of printing messages. Possible values: "info", "warn", "error". For example if you set "warn", only warnings and errors will be printed. |
| options.logFormat | string | | `string` | The format of saving logs to file. The default value is `string` which corresponds the format similar to console. Full list of options is : `string`, `json`.|
| options.unitsCheck | boolean | --units-check | false | If `true` all Record will be checked for units consistency. |
| options.juliaOnly | boolean | --julia-only | false | If `true` the compilation will run Julia supporting mode. |
| options.distDir | string | --dist-dir | dist | At default all export files are created inside **dist** directory. The option can set the another target for storing outputs. |
| options.debug | boolean | --debug | false | Working in debugging mode. All parsed modules will be saved in JSON files in meta directory. |
| options.metaDir | string | --meta-dir | meta | If `options.debug` is set as `true` this option changes the target directory for meta files. |
Expand All @@ -222,8 +220,7 @@ Using neither declaration file nor CLI options is equivalent to the following de
"distDir": "dist",
"metaDir": "meta",
"debug": false,
"unitsCheck": false,
"juliaOnly": false
"unitsCheck": false
},
"importModule": {
"source": "index.heta",
Expand Down
1 change: 0 additions & 1 deletion src/builder/declaration-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"logLevel": {"type": "string", "default": "info", "enum": ["panic", "info", "warn", "error"]},
"logFormat": {"type": "string", "default": "string", "enum": ["string", "json"]},
"unitsCheck": {"type": "boolean", "default": false},
"juliaOnly": {"type": "boolean", "default": false},
"distDir": {"type": "string", "default": "dist" },
"debug": {"type": "boolean", "default": false, "description": "Should we put parsed modules to meta?"},
"metaDir": {"type": "string", "default": "meta" }
Expand Down
7 changes: 1 addition & 6 deletions src/builder/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,7 @@ class Builder {
this.container.checkTerms();

// 9. Exports
if (this.options.juliaOnly) {
this.logger.warn('"Julia only" mode');
this.exportJuliaOnly();
} else {
this.exportMany();
}
this.exportMany();
} else {
this.logger.warn('Units checking and export were skipped because of errors in compilation.');
}
Expand Down

0 comments on commit f4810d8

Please sign in to comment.