fix(core): update

This commit is contained in:
Philipp Kunz 2022-08-07 11:40:45 +02:00
parent 7384b54e09
commit d3385782ed
2 changed files with 2 additions and 3 deletions

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;