middleman/fixtures/3rd-party-command/config.rb

10 lines
194 B
Ruby
Raw Normal View History

2011-12-21 20:11:38 +01:00
class HelloWorld < Thor
default_task :say_hi
desc "hello", "Say hello"
def say_hi
puts "Hello World"
end
end
2011-12-21 21:13:28 +01:00
Middleman::Cli::Base.register(HelloWorld, :hello, "hello", "Say hello")