typescriptifying

This commit is contained in:
Wolfgang Hottgenroth
2018-01-09 16:36:14 +01:00
parent 9e39d74084
commit 8d85314fc9
21 changed files with 372 additions and 182 deletions

View File

@ -1,6 +1,5 @@
import * as fs from 'fs'
import * as cmdargs from 'command-line-args'
import * as logger from './log'
@ -15,5 +14,6 @@ export let dict : any
export function readConfig() {
let options = cmdargs(OPTION_DEFINITIONS)
dict = JSON.parse(fs.readFileSync(options.config, "utf8"))
logger.info(JSON.stringify(dict))
}
readConfig()