Add a command to list available frameworks.

This commit is contained in:
Chris Eppstein 2009-01-01 23:11:52 -08:00
parent b021b77894
commit e93051d239
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,16 @@
module Compass
module Commands
class ListFrameworks
attr_accessor :options
def initialize(working_directory, options)
self.options = options
end
def perform
Compass::Frameworks::ALL.each do |framework|
puts framework.name
end
end
end
end
end

View File

@ -108,6 +108,10 @@ END
self.options[:framework] = framework
end
opts.on('--list-frameworks', "List compass frameworks available to use.") do
self.options[:command] = :list_frameworks
end
opts.on('-e ENV', '--environment ENV', [:development, :production], 'Use sensible defaults for your current environment: development, production (default)') do |env|
self.options[:environment] = env
end