LoginSignup
0
0

More than 1 year has passed since last update.

#Rails + rake で複数行のDescriptionを設定する、表示する ( display multiple lines description / describe with heredoc newlines )

Last updated at Posted at 2020-04-14

rake

lib/tasks/some_job.rake

desc <<~DESC
  This job
  is so
  Great job
DESC

task some_job: :environment do
  # do something
end

describe

descript オプションで全行表示される

bin/rails --describe some_job

rails some_job
    This job
    is so
    Great job

tasks

一覧だと一行だけ表示される

bin/rails --tasks

...
rails some_job                           # This job
...

Original by Github issue

チャットメンバー募集

何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。

Twitter

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0