@lerna-dockerize/cli
Advanced tools
Comparing version 0.9.0-build.a1ba0a0.0 to 0.9.0-build.c762010.0
import { CommandModule } from 'yargs'; | ||
export declare function cli(commands: CommandModule<{}, any>[]): Promise<void>; | ||
export { CommandModule } from 'yargs'; | ||
export type { CommandModule } from 'yargs'; | ||
export declare function cli(commands: CommandModule<{}, any>[], defaultCommand: string): Promise<void>; |
@@ -10,3 +10,3 @@ "use strict"; | ||
const yargs_1 = __importDefault(require("yargs")); | ||
async function cli(commands) { | ||
async function cli(commands, defaultCommand) { | ||
var _a; | ||
@@ -33,3 +33,12 @@ let config = {}; | ||
for (const command of commands) { | ||
builder = builder.command(command); | ||
let yargsCommand = command; | ||
if (command.command) { | ||
if (typeof command.command === 'string' && command.command === defaultCommand) { | ||
yargsCommand.command = [command.command, '$0']; | ||
} | ||
if (Array.isArray(command.command) && command.command[0] === defaultCommand) { | ||
yargsCommand.command = [...command.command, '$0']; | ||
} | ||
} | ||
builder = builder.command(yargsCommand); | ||
} | ||
@@ -36,0 +45,0 @@ builder |
{ | ||
"name": "@lerna-dockerize/cli", | ||
"version": "0.9.0-build.a1ba0a0.0", | ||
"version": "0.9.0-build.c762010.0", | ||
"description": "A dockerfile generator for lerna projects", | ||
@@ -26,3 +26,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@lerna-dockerize/logger": "0.9.0-build.a1ba0a0.0", | ||
"@lerna-dockerize/logger": "0.9.0-build.c762010.0", | ||
"yargs": "^17.0.1" | ||
@@ -29,0 +29,0 @@ }, |
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
16400
6
50
1
3
+ Added@lerna-dockerize/logger@0.9.0-build.c762010.0(transitive)
- Removed@lerna-dockerize/logger@0.9.0-build.a1ba0a0.0(transitive)