mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-07-19 13:19:42 +02:00
15 lines
397 B
JavaScript
15 lines
397 B
JavaScript
|
import { Command } from 'commander';
|
||
|
|
||
|
const program = new Command();
|
||
|
|
||
|
program
|
||
|
.name('db-converter')
|
||
|
.description('Converts data from local database to MongoDB')
|
||
|
.option('--db-path <path>', 'Path to the local database', './db')
|
||
|
.option('--mongodb-uri <uri>', 'URI to the MongoDB database', 'mongodb://localhost:27017/docs')
|
||
|
.parse();
|
||
|
|
||
|
const options = program.opts();
|
||
|
|
||
|
export { options };
|