@spinajs/cli
Advanced tools
Comparing version 2.0.253 to 2.0.254
@@ -41,2 +41,3 @@ "use strict"; | ||
} | ||
const program = new commander_1.Command(); | ||
for (const cmd of commands) { | ||
@@ -51,3 +52,4 @@ this.Log.trace(`Found command ${cmd.name}`); | ||
} | ||
const c = commander_1.program.command(cMeta.nameAndArgs, cMeta.description, cMeta.opts); | ||
const c = new commander_1.Command(cMeta.nameAndArgs); | ||
c.description(cMeta.description); | ||
oMeta?.forEach((o) => { | ||
@@ -69,5 +71,6 @@ if (o.required) { | ||
}); | ||
program.addCommand(c); | ||
} | ||
const argv = di_1.DI.resolve('__cli_argv_provider__'); | ||
commander_1.program.parse(argv); | ||
program.parse(argv); | ||
} | ||
@@ -74,0 +77,0 @@ } |
@@ -13,3 +13,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
import { Logger, Log } from '@spinajs/log-common'; | ||
import { program } from 'commander'; | ||
import { Command } from 'commander'; | ||
import { ResolveFromFiles } from '@spinajs/reflection'; | ||
@@ -25,2 +25,3 @@ export * from './interfaces.js'; | ||
} | ||
const program = new Command(); | ||
for (const cmd of commands) { | ||
@@ -35,3 +36,4 @@ this.Log.trace(`Found command ${cmd.name}`); | ||
} | ||
const c = program.command(cMeta.nameAndArgs, cMeta.description, cMeta.opts); | ||
const c = new Command(cMeta.nameAndArgs); | ||
c.description(cMeta.description); | ||
oMeta?.forEach((o) => { | ||
@@ -53,2 +55,3 @@ if (o.required) { | ||
}); | ||
program.addCommand(c); | ||
} | ||
@@ -55,0 +58,0 @@ const argv = DI.resolve('__cli_argv_provider__'); |
{ | ||
"name": "@spinajs/cli", | ||
"version": "2.0.253", | ||
"version": "2.0.254", | ||
"description": "SpinaJS command line module", | ||
@@ -45,7 +45,7 @@ "main": "lib/cjs/index.js", | ||
"dependencies": { | ||
"@spinajs/configuration": "^2.0.253", | ||
"@spinajs/di": "^2.0.253", | ||
"@spinajs/exceptions": "^2.0.253", | ||
"@spinajs/log": "^2.0.253", | ||
"@spinajs/reflection": "^2.0.253", | ||
"@spinajs/configuration": "^2.0.254", | ||
"@spinajs/di": "^2.0.254", | ||
"@spinajs/exceptions": "^2.0.254", | ||
"@spinajs/log": "^2.0.254", | ||
"@spinajs/reflection": "^2.0.254", | ||
"commander": "10.0.0", | ||
@@ -52,0 +52,0 @@ "reflect-metadata": "^0.1.13" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
176259
602
Updated@spinajs/di@^2.0.254
Updated@spinajs/exceptions@^2.0.254
Updated@spinajs/log@^2.0.254
Updated@spinajs/reflection@^2.0.254