Compare commits

..

2 Commits

Author SHA1 Message Date
5f027430bf 4.0.6 2022-08-07 11:40:46 +02:00
d3385782ed fix(core): update 2022-08-07 11:40:45 +02:00
4 changed files with 5 additions and 6 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "@pushrocks/smartcli", "name": "@pushrocks/smartcli",
"version": "4.0.5", "version": "4.0.6",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@pushrocks/smartcli", "name": "@pushrocks/smartcli",
"version": "4.0.5", "version": "4.0.6",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@pushrocks/lik": "^6.0.0", "@pushrocks/lik": "^6.0.0",

View File

@ -1,7 +1,7 @@
{ {
"name": "@pushrocks/smartcli", "name": "@pushrocks/smartcli",
"private": false, "private": false,
"version": "4.0.5", "version": "4.0.6",
"description": "easy observable cli tasks", "description": "easy observable cli tasks",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",
"typings": "dist_ts/index.d.ts", "typings": "dist_ts/index.d.ts",

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@pushrocks/smartcli', name: '@pushrocks/smartcli',
version: '4.0.5', version: '4.0.6',
description: 'easy observable cli tasks' description: 'easy observable cli tasks'
} }

View File

@ -134,7 +134,7 @@ export class Smartcli {
console.log(this.version || 'unknown version'); console.log(this.version || 'unknown version');
return; return;
} }
console.log(`Wanted command: ${wantedCommand}`);
for (const command of this.commandObservableMap.getArray()) { for (const command of this.commandObservableMap.getArray()) {
if (!wantedCommand) { if (!wantedCommand) {
const standardCommand = this.commandObservableMap.findSync((commandArg) => { const standardCommand = this.commandObservableMap.findSync((commandArg) => {
@ -147,7 +147,6 @@ export class Smartcli {
} }
break; break;
} }
console.log(`Wanted command: ${wantedCommand}`);
if (command.commandName === parsedYArgs._[0]) { if (command.commandName === parsedYArgs._[0]) {
command.subject.next(parsedYArgs); command.subject.next(parsedYArgs);
break; break;