V5 - How to print a table in an ace command, like list:routes #1717
-
I looked into the list:routes command source code and copied the code to print a data table, but VSCODE shows that "Property 'ui' does not exist on type 'Greet'." ('Greet' is my command name, modified by me in order to understand the concepts).
What I'm doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The code you are looking at is not released and hence property |
Beta Was this translation helpful? Give feedback.
-
Thanks for the help! Below, my new code:
|
Beta Was this translation helpful? Give feedback.
The code you are looking at is not released and hence property
ui
is not available. Checkout the code for the master branch instead https://github.com/adonisjs/core/blob/master/commands/ListRoutes.ts#L10