Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Dotenv] Variable filter added to debug command#46502
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I like this feature. It's consistent withdebug:container anddebug:router that allows filtering with an optional argument.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
973fee1 tof501856Comparef501856 to89f34a7CompareP.S. added filtering not only by exact value, but by prefix as well. For example if there are more than one variable with same prefix in the name - it will be possible to filter by prefix and get all values with that prefix:) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thanks for the completion and tests.
I tested the command and I think a message should be displayed when none of the variables starts with the given name.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
89f34a7 tobf4036eCompareUh oh!
There was an error while loading.Please reload this page.
bf4036e toc3f09e6CompareUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
af5e53c to6e6cd83Comparermikalkenas commentedJun 3, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@fabpot updated, based on comments. The failing pipeline does not relate with my changes (except for the low-deps of 8.1 which is due to dependency of 5.4 symfony components) |
6e6cd83 tod41e7a1CompareThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I'd be glad if this feature was approved.
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
2 small changes before we can merge.
| <info>php %command.full_name%</info> | ||
| To get specific variable, specify its name: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
So, it can be the env name or part of the name, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Updated with clarification:To get specific variable, specify its full or partial name:
d41e7a1 toa754669CompareThank you@rmikalkenas. |
chalasr commentedJul 20, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@rmikalkenas The |
@chalasr thanks for informing! Sounds weird.. Will take a look! |
…obal state (rmikalkenas)This PR was merged into the 6.2 branch.Discussion----------[Dotenv] Run test in a separate process to have clean global state| Q | A| ------------- | ---| Branch? | 6.2| Bug fix? | no| New feature? | no| Deprecations? | no| Tickets | Fix #...| License | MIT| Doc PR | symfony/symfony-docs#...A fix to comment:#46502 (comment)cc@chalasrCommits-------be3782c [Dotenv] Run test in a separate process to have clean global state
Uh oh!
There was an error while loading.Please reload this page.
For applications that use many environment variables there is no way to efficiently filter a single variable. Of course there is always a
grepcommand, but with it you are loosing part of the information that symfony debug command provides.Added a new
nameargument to the command, to be able to filter debug output by variable's name