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

Remove rake initializers from rake tasks list #33694

Merged
merged 1 commit into from Aug 22, 2018

Conversation

bogdanvlviv
Copy link
Contributor

@rails-bot
Copy link

r? @schneems

(@rails-bot has picked a reviewer for you, use r? to override)

@rafaelfranca rafaelfranca merged commit 4e9ff46 into rails:master Aug 22, 2018
@bogdanvlviv bogdanvlviv deleted the follow-up-33631 branch August 22, 2018 18:05
@bogdanvlviv
Copy link
Contributor Author

Looks like using of decs doesn't work for us.
https://github.com/rails/rails/blob/master/railties/lib/rails/commands/initializers/initializers_command.rb#L6
I guess we should add USAGE file for each command.

@rafaelfranca
Copy link
Member

Ah, I think that is a mistake. We should be using thor helper or USAGE if we need big helps.

@bogdanvlviv
Copy link
Contributor Author

I will try to fix it.

bogdanvlviv added a commit to bogdanvlviv/rails that referenced this pull request Aug 22, 2018
- `rails initializers --help` should show description set by `desc`
  See railties/lib/rails/command/base.rb:27

- Fix `rails dev:cache --help`

 ```
 Traceback (most recent call last):
         10: from bin/rails:4:in `<main>'
          9: from bin/rails:4:in `require'
          8: from /work/rails/railties/lib/rails/commands.rb:18:in `<top (required)>'
          7: from /work/rails/railties/lib/rails/command.rb:46:in `invoke'
          6: from /work/rails/railties/lib/rails/command/base.rb:65:in `perform'
          5: from /home/vagrant/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor.rb:387:in `dispatch'
          4: from /home/vagrant/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor/invocation.rb:126:in `invoke_command'
          3: from /home/vagrant/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor/command.rb:27:in `run'
          2: from /work/rails/railties/lib/rails/command/base.rb:150:in `help'
          1: from /home/vagrant/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor.rb:170:in `command_help'
 /home/vagrant/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor/base.rb:497:in `handle_no_command_error': Could not find command "dev". (Thor::UndefinedCommandError)
  ```

Context rails#33694 (comment)

Would be great to set a description to other commands.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants