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

Add Filtering Option to the marten routes Command #262

Open
treagod opened this issue Aug 21, 2024 · 0 comments
Open

Add Filtering Option to the marten routes Command #262

treagod opened this issue Aug 21, 2024 · 0 comments
Labels

Comments

@treagod
Copy link
Contributor

treagod commented Aug 21, 2024

Description

Currently, the marten routes command lists all the routes of the application. To enhance usability, especially in larger applications with numerous routes, it would be beneficial to introduce an option that allows users to filter routes based on a substring (or regex). This option would enable developers to quickly locate routes that partially match a specified pattern, either in the URL path or the URL helper method.

Proposition

Add a -g option the marten routes command. For example running marten routes -g admin should output only those routes where “admin” appears in the URL path or the helper method.

Benefits:

  • Improved Usability: Makes it easier for developers to find specific routes in large applications.
  • Efficiency: Reduces the time spent manually searching through routes, especially in complex projects.
@treagod treagod added the CLI label Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant