UNPKG

@plastichub/osr-cad

Version:

This is a CLI(CommandLineInterface) toolset to convert 3D files, using Solidworks and other software.

28 lines 987 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.register = void 0; const osr_commons_1 = require("@plastichub/osr-commons"); const __1 = require("../"); const defaultOptions = (yargs) => { return yargs.option('debug', { default: 'false', describe: 'debug messages' }).option('env_key', { default: 'OSR-CONFIG', describe: 'Environment key to the config path' }); }; let options = (yargs) => defaultOptions(yargs); const register = (cli) => { return cli.command('info', 'info', options, async (argv) => { if (argv.help) { return; } const args = argv; const src = (0, osr_commons_1.CONFIG_DEFAULT)(args.env_key); __1.logger.debug(`Reading OSR Config with key "${argv.env_key}"`, src); __1.logger.debug(`OSR Paths:`, osr_commons_1.DEFAULT_ROOTS); }); }; exports.register = register; //# sourceMappingURL=info.js.map