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

Consistently format commands in help messages #45716

Merged

Conversation

jonathanhefner
Copy link
Member

This commit enhances the Rails::Command::Base.executable method to integrate a new bin class attribute and optional subcommand arg. So, for example, CredentialsCommand.executable(:edit) will now return "bin/rails credentials:edit".

Additionally, this commit replaces occurrences of "bin/rails COMMAND", "rails COMMAND", and "COMMAND" in help messages with calls to executable, for improved consistency.

This commit enhances the `Rails::Command::Base.executable` method to
integrate a new `bin` class attribute and optional `subcommand` arg.
So, for example, `CredentialsCommand.executable(:edit)` will now return
"bin/rails credentials:edit".

Additionally, this commit replaces occurrences of "bin/rails COMMAND",
"rails COMMAND", and "COMMAND" in help messages with calls to
`executable`, for improved consistency.
@rails-bot rails-bot bot added the railties label Jul 31, 2022
@jonathanhefner jonathanhefner merged commit 887dc9a into rails:main Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant