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

  • 3
    いいね
  • 0
    コメント

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)

雑感

べんり

外部資料