Add headings to rake routes table #9318
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Another "get some feedback on this idea" PR. Thanks @burtlo!
It's easy to forget what the order of things are in the routing table, especially if you're new. The HTML view has headings, but the console does not. They're a little different at the moment due to space, but I can change them to be as close to possible once we determine this is a good idea.
One other thing I'd like to implement, but haven't: test if we're running in a shell or not. If we're not, then we shouldn't print the headings. If you're writing scripts that rely on the output of the task, no headings is way better.