Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI debug commands #202

Closed
xepozz opened this issue Mar 5, 2023 · 6 comments
Closed

CLI debug commands #202

xepozz opened this issue Mar 5, 2023 · 6 comments

Comments

@xepozz
Copy link
Contributor

xepozz commented Mar 5, 2023

The following console command to debug should be present:

  • Router
    • Dump router settings
    • Dump all routes
    • Dump specific routes group
    • Test an URL to match a route
  • Container
    • Dump definition
    • Test container if it has specific service
    • Dump web / cli entries
  • Config
    • Dump config files and their content
  • Config Params
    • Dump config params
    • Test if specific parameter exist
  • Translations
    • Dump all translations
    • Dump specific languages
    • Translate a string from CLI

All of these commands should be present, but I think it's better to place them into respective packages

@xepozz xepozz changed the title CLI debug command CLI debug commands Mar 5, 2023
@xepozz
Copy link
Contributor Author

xepozz commented Mar 5, 2023

As a reference to sniff some things you may look at https://github.com/yiisoft/yii-debug-api/blob/master/src/Controller/InspectController.php

@samdark
Copy link
Member

samdark commented Mar 5, 2023

Can we, instead, provide a CLI interface for debug panels?

@xepozz
Copy link
Contributor Author

xepozz commented Mar 5, 2023

I mean not debug collected things. It's more about inspector.
Like yii list shows list of available commands yii router:list will show all registered routes.

@samdark
Copy link
Member

samdark commented Mar 6, 2023

Should we abstract out inspections as well? i.e. separate classes that could run from both web and cli?

@xepozz
Copy link
Contributor Author

xepozz commented Mar 26, 2023

Make sense

@vjik
Copy link
Member

vjik commented Aug 13, 2023

Closed in favor issues in respective packages

@vjik vjik closed this as completed Aug 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants