diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2022-06-26 20:57:06 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2022-06-26 20:57:06 -0300 |
commit | 08b700bb14e5e12c1dff283e2eef729816a97f15 (patch) | |
tree | 0494ff87d7ede3e0d7f561063c08c74011204486 /src/repl.js | |
parent | c6e9aba1f6d1239b3d884c2749d1f0d15c7662a1 (diff) |
lots of fixes from eslint
Diffstat (limited to 'src/repl.js')
-rw-r--r-- | src/repl.js | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/repl.js b/src/repl.js index 5a6334a..bd447be 100644 --- a/src/repl.js +++ b/src/repl.js @@ -3,32 +3,23 @@ import * as os from 'os'; import * as path from 'path'; import * as repl from 'repl'; -import {fileURLToPath} from 'url'; -import {promisify} from 'util'; import {quickLoadAllFromYAML} from './data/yaml.js'; import {logError, parseOptions} from './util/cli.js'; import {showAggregate} from './util/sugar.js'; -const __dirname = path.dirname(fileURLToPath(import.meta.url)); - async function main() { const miscOptions = await parseOptions(process.argv.slice(2), { 'data-path': { type: 'value', }, - 'show-traces': { - type: 'flag', - }, - 'no-history': { type: 'flag', }, }); const dataPath = miscOptions['data-path'] || process.env.HSMUSIC_DATA; - const showAggregateTraces = miscOptions['show-traces'] ?? false; const disableHistory = miscOptions['no-history'] ?? false; if (!dataPath) { |