@nexssp/language
Advanced tools
Comparing version 1.1.14 to 1.1.15
{ | ||
"name": "@nexssp/language", | ||
"description": "All about programming languages - history, founders, how to install, package managers, logo..", | ||
"version": "1.1.14", | ||
"version": "1.1.15", | ||
"homepage": "https://nexss.com", | ||
@@ -6,0 +6,0 @@ "main": "src/language.js", |
@@ -18,4 +18,6 @@ /** | ||
const { perLanguage } = require('../../../lib/perLanguage') | ||
perLanguage(languageExtension, cmd, args, languageSelected) | ||
const argsCopy = [...args] | ||
perLanguage(languageExtension, cmd, argsCopy, languageSelected) | ||
const _log = require('@nexssp/logdebug') | ||
@@ -25,7 +27,7 @@ _log.dc(`@language @cli/default @default:`, { cmd, args }) | ||
const params = process.argv.includes('--force') || process.argv.includes('-f') ? ` -f` : '' | ||
const dry = process.argv.includes('--dry') | ||
const dry = args.includes('--dry') | ||
const { remove } = require('@nexssp/extend/array') | ||
args = remove(args, '-f') | ||
args = remove(args, '--force') | ||
// args = remove(args, '--force') | ||
args = remove(args, '--progress') | ||
@@ -57,2 +59,3 @@ args = remove(args, '--debug') | ||
} | ||
const compilerOrBuilder = languageSelected.getCompilerOrBuilder().command | ||
@@ -63,4 +66,2 @@ if (!commandToRun) { | ||
const compilerOrBuilder = languageSelected.getCompilerOrBuilder().command | ||
if (existCommand) { | ||
@@ -96,2 +97,6 @@ if (existCommand.indexOf('<currentCommand>') !== -1) { | ||
if (commandToRun.indexOf('<currentCommand>') !== -1) { | ||
commandToRun = commandToRun.replace('<currentCommand>', compilerOrBuilder) | ||
} | ||
if (dry) { | ||
@@ -98,0 +103,0 @@ console.log(commandToRun) |
@@ -160,3 +160,3 @@ | ||
// SET default compilers, builders for each language | ||
switch (cmd) { | ||
@@ -486,5 +486,8 @@ case "default": | ||
default: | ||
break; | ||
return | ||
} | ||
// To check the code below. | ||
log.di(`Language selected: ${bold(languageSelected.title)}`); | ||
@@ -491,0 +494,0 @@ |
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
89455
52
2088