console icon indicating copy to clipboard operation
console copied to clipboard

Fix: fixed support for AsCommand aliases

Open MichaelaBlatakova opened this issue 1 year ago • 2 comments

Fixed a bug where an exception was thrown when adding an alias using the AsCommand attribute.

MichaelaBlatakova avatar May 03 '24 21:05 MichaelaBlatakova

Can you show me that exception? Can you also add test case for that? Thank you.

f3l1x avatar May 04 '24 12:05 f3l1x

image exception.zip

Sure, the exception occurs if I use the aliases parameter within the AsCommand attribute and try to list all commands using php ./bin/console.php. Exception does not appear if I call specific commands. Unfortunately, I don't know how to write a test case for this case. (This exception was simullated on clear Nette Web Project with only library - Contributte/Console)

MichaelaBlatakova avatar May 04 '24 13:05 MichaelaBlatakova