mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-21 12:49:06 +00:00
20 lines
529 B
JavaScript
Executable File
20 lines
529 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
var path = require('path');
|
|
|
|
/*
|
|
* Pass optional path to target directory as command line argument.
|
|
*
|
|
* The directory must include the apis/ folder and service customizations at
|
|
* `lib/services`. Clients will be generated in `clients/`.
|
|
*
|
|
* If parameter is not passed the repository root will be used.
|
|
*/
|
|
|
|
var ClientCreator = require('./client-creator');
|
|
|
|
var cc = new ClientCreator(process.argv[2] || path.join(__dirname, '..'));
|
|
|
|
cc.writeClientServices();
|
|
console.log('Finished updating services.');
|