-
Notifications
You must be signed in to change notification settings - Fork 215
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 --verbose-version (-V) flag #464
Conversation
This addresses the second feature mentioned in standardrb#452. For context, when debugging a RuboCop issue a user is asked to supply the output of `rubocop -V`, and this streamlines this process for standard users.
def call(command) | ||
require_relative "runners/#{command}" | ||
::Standard::Runners.const_get(command.to_s.capitalize).new |
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.
This meta-programming doesn't work with multiple-word command/constants (for example :verbose_version
/VerboseVersion
). Instead of modifying to account for this edge-case, I swapped out the code for a HashTable lookup. Less fun, I know. 😢
Seems fine to me |
@camilopayan merge if LGTU? |
@camilopayan just updated branch from main if you want to take a look! |
@patrickbrown-dev should the |
@saturnflyer nope, that's on me! |
@saturnflyer |
LGTM! Love when I see a PR and don't feel like I need to pull it down to test it locally before merge |
This addresses the second feature mentioned in #452. For context, when debugging a RuboCop issue a user is asked to supply the output of
rubocop -V
, and this streamlines this process for standard users.