LoginSignup
0

More than 5 years have passed since last update.

Rake 12.1.0で導入された did you mean 対応を試す

Last updated at Posted at 2017-09-14

Rake 12.1.0で導入された did you mean 対応を試します。

  • Rakefile
desc "hoge"
task "hoge" do
  puts "hoge"
end

desc "hige"
task "hige" do
  puts "hige"
end

desc "foo"
task "foo" do
  puts "foo"
end
  • 実行結果
$ rake -T
rake foo   # foo
rake hige  # hige
rake hoge  # hoge
$ rake foo
foo
$ rake fooa
rake aborted!
Don't know how to build task 'fooa' (see --tasks)
Did you mean?  foo

(See full trace by running task with --trace)
$ rake hege
rake aborted!
Don't know how to build task 'hege' (see --tasks)
Did you mean?  hige
              hoge

(See full trace by running task with --trace)

雑感

べんり

外部資料

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