lib/tiny-rails/cli.rb in tiny-rails-0.0.2 vs lib/tiny-rails/cli.rb in tiny-rails-0.1.0
- old
+ new
@@ -1,11 +1,12 @@
require 'thor'
require 'thor/group'
require 'tiny-rails/actions'
-require 'tiny-rails/commands/new'
require 'tiny-rails/commands/add'
+require 'tiny-rails/commands/console'
+require 'tiny-rails/commands/new'
module TinyRails
class CLI < Thor
include Thor::Actions
@@ -18,8 +19,13 @@
desc 'add [addons]', 'Configures addons on a generated tiny Rails application'
def add(addons = [])
addons = Array(addons)
Commands::Add.start(addons)
+ end
+
+ desc 'console', 'Starts the tiny-rails console'
+ def console
+ Commands::Console.start
end
end
end