Skip to content

Improve the output log for route action with many lines:#38387

Closed
roramirez wants to merge 1 commit into
rails:masterfrom
roramirez:better-output-log-routes
Closed

Improve the output log for route action with many lines:#38387
roramirez wants to merge 1 commit into
rails:masterfrom
roramirez:better-output-log-routes

Conversation

@roramirez

Copy link
Copy Markdown
Contributor

Sumary

This change add indent the lines to improve the read in route section in the console log.

Output before this change


$ rails g controller myspace/other index show
      create  app/controllers/myspace/other_controller.rb
       route  namespace :myspace do
  get 'other/index'
  get 'other/show'
end
      invoke  erb
       exist    app/views/myspace/other
   identical    app/views/myspace/other/index.html.erb
   identical    app/views/myspace/other/show.html.erb
      invoke  test_unit
      create    test/controllers/myspace/other_controller_test.rb
      invoke  helper
      create    app/helpers/myspace/other_helper.rb
      invoke    test_unit
      invoke  assets
      invoke    scss
   identical      app/assets/stylesheets/myspace/other.scss

After this change

$ rails g controller myspace/other index show
      create  app/controllers/myspace/other_controller.rb
       route  namespace :myspace do
                get 'other/index'
                get 'other/show'
              end
      invoke  erb
      create    app/views/myspace/other
      create    app/views/myspace/other/index.html.erb
      create    app/views/myspace/other/show.html.erb
      invoke  test_unit
      create    test/controllers/myspace/other_controller_test.rb
      invoke  helper
      create    app/helpers/myspace/other_helper.rb
      invoke    test_unit
      invoke  assets
      invoke    scss
      create      app/assets/stylesheets/myspace/other.scss

This change add indent the lines to improve the read in route section
in the console log.
@jonathanhefner

Copy link
Copy Markdown
Member

Thank you for submitting this PR! I felt like this change should be upstreamed to Thor though, so I submitted rails/thor#714. If it is merged, it will fix this issue.

@roramirez

Copy link
Copy Markdown
Contributor Author

Nice @jonathanhefner . That's is better solution!. I think we'll need to keep this PR open until you change is merge into the Thor to help to reminder us match the version of thor in railties/railties.gemspec

@rails-bot

rails-bot Bot commented May 22, 2020

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Thank you for your contributions.

@rails-bot rails-bot Bot added the stale label May 22, 2020
@roramirez

Copy link
Copy Markdown
Contributor Author

Hey, until moment think we'll need to keep open this PR. The PR into Thor isn't merge get so the issue still present, what do you think @jonathanhefner ?

@rails-bot rails-bot Bot removed the stale label May 22, 2020
@rails-bot

rails-bot Bot commented Aug 20, 2020

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Thank you for your contributions.

@rails-bot rails-bot Bot added the stale label Aug 20, 2020
@roramirez

Copy link
Copy Markdown
Contributor Author

Keep it opens ;)

@rails-bot

rails-bot Bot commented Nov 18, 2020

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Thank you for your contributions.

@rails-bot rails-bot Bot added the stale label Nov 18, 2020
@rails-bot rails-bot Bot closed this Nov 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants