From: Robert Dober Date: 2010-04-20T07:59:45+09:00 Subject: Re: Documenting Rakefile using rdoc On Mon, Apr 19, 2010 at 9:59 PM, Joel VanderWerf wrote: > task "top-tasks" do >  `rake --tasks`.split("\n").each do |t| >    if t !~ /^rake \w+:/ and t =~ /^rake/ >      puts t >    end >  end > end > > Maybe you can even use Rake's API to get the task list without shelling out. > > task ":top-tasks" do Rake::Task.tasks.each do | tsk | next if tsk.name =~ /:/ # this could be more elaborate I guess puts "#{tsk.name} #{tsk.full_comment}" end end use with rake :top-tasks ( just to distinguish from "normal" tasks ) I am too lazy to tweak the rake script to allow rake --top-tasks. HTH Robert -- The best way to predict the future is to invent it. -- Alan Kay