aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/engine/commands.rb
blob: dfbeea36b85178e3669872c469f7ca25ca78a15a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require "rails/engine/commands_tasks"

ARGV << "--help" if ARGV.empty?

aliases = {
  "g" => "generate",
  "d" => "destroy",
  "t" => "test"
}

command = ARGV.shift
command = aliases[command] || command

Rails::Engine::CommandsTasks.new(ARGV).run_command!(command)