Skip to content

Commit

Permalink
merge from RBQL
Browse files Browse the repository at this point in the history
  • Loading branch information
mechatroner committed Sep 16, 2020
1 parent 0533ffb commit a132e04
Show file tree
Hide file tree
Showing 8 changed files with 673 additions and 703 deletions.
Empty file modified rbql-js/.eslintrc.json
100644 → 100755
Empty file.
Empty file modified rbql-js/cli_parser.js
100644 → 100755
Empty file.
15 changes: 2 additions & 13 deletions rbql-js/cli_rbql.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
const fs = require('fs');
const readline = require('readline');

var rbql = null;
var rbql_csv = null;
const rbql = require('./rbql.js');
const rbql_csv = require('./rbql_csv.js');
const csv_utils = require('./csv_utils.js');
const cli_parser = require('./cli_parser.js');

Expand Down Expand Up @@ -217,8 +217,6 @@ async function run_with_js(args) {
[output_delim, output_policy] = output_format == 'input' ? [delim, policy] : rbql_csv.interpret_named_csv_format(output_format);
}

if (args['debug-mode'])
rbql_csv.set_debug_mode();
let user_init_code = '';
if (init_source_file !== null)
user_init_code = rbql_csv.read_user_init_code(init_source_file);
Expand Down Expand Up @@ -319,13 +317,6 @@ Description of the available CSV split policies:


async function do_main(args) {
if (args['auto-rebuild-engine']) {
let build_engine = require('./build_engine.js');
build_engine.build_engine();
}

rbql = require('./rbql.js');
rbql_csv = require('./rbql_csv.js');

if (args['version']) {
console.log(rbql.version);
Expand Down Expand Up @@ -373,8 +364,6 @@ function main() {
'--out-policy': {'help': 'Output policy. Use with "out-delim". Overrides out-format', 'metavar': 'POLICY'},
'--error-format': {'default': 'hr', 'help': 'Errors and warnings format. [hr|json]', 'hidden': true},
'--version': {'boolean': true, 'help': 'Print RBQL version and exit'},
'--auto-rebuild-engine': {'boolean': true, 'help': 'Auto rebuild engine', 'hidden': true},
'--debug-mode': {'boolean': true, 'help': 'Run in debug mode', 'hidden': true},
'--init-source-file': {'help': 'Path to init source file to use instead of ~/.rbql_init_source.js', 'hidden': true}
};
let args = cli_parser.parse_cmd_args(process.argv, scheme, tool_description, epilog);
Expand Down
Empty file modified rbql-js/csv_utils.js
100644 → 100755
Empty file.
Loading

0 comments on commit a132e04

Please sign in to comment.