Permalink
Browse files

Joy, another pretty-print `devkit:ls` OCD tweak ;)

  • Loading branch information...
1 parent aea67e1 commit 0030c711ecaa4c2501e4f2a88867c0b50c161391 @jonforums jonforums committed Apr 29, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 recipes/devkit/devkit.rake
@@ -77,9 +77,15 @@ namespace(:devkit) do
desc 'List valid DevKit flavors'
task :ls do
+ default = DevKitInstaller::DEFAULT_VERSION
+ current = ENV['DKVER'] || default
+
puts "\n=== Available DevKit's ==="
DevKitInstaller::COMPILERS.keys.sort.each do |k|
- puts " #{DevKitInstaller::DEFAULT_VERSION.downcase == k.downcase ? '=>' : ' ' } #{k}"
+ str = " #{current.downcase == k.downcase ? '=>' : ' ' }"
+ str << " #{k}"
+ str << " #{default.downcase == k.downcase ? '[default]' : ''}"
+ puts str
end
end
end

0 comments on commit 0030c71

Please sign in to comment.