-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
59d5a6e
commit dae6d6c
Showing
6 changed files
with
123 additions
and
769 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.