Skip to content

Commit

Permalink
tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
fergiemcdowall committed Aug 27, 2024
1 parent 59d5a6e commit dae6d6c
Show file tree
Hide file tree
Showing 6 changed files with 123 additions and 769 deletions.
15 changes: 9 additions & 6 deletions bin/norch
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
#!/usr/bin/env node

const norch = require('../src/main.js')
const { Command } = require('commander')
import { Norch } from '../src/Norch.js'
import { Command } from 'commander'
import { readFileSync } from 'fs'

const program = new Command()

const version = JSON.parse(readFileSync('package.json', 'utf8')).version

program
.version(require('../package.json').version)
.version(version)
.option('-p, --port <port>', 'specify the port', Number, 3030)
.option(
'-i, --index <index>',
'specify the location of the index',
'-n, --name <name>',
'specify the name/location of the index',
String,
'norch-data'
)
.parse(process.argv)

norch(program.opts())
const n = new Norch(program.opts())
22 changes: 0 additions & 22 deletions bin/norch2

This file was deleted.

Loading

0 comments on commit dae6d6c

Please sign in to comment.