mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
69ab3eb57e
The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
14 lines
265 B
Ruby
14 lines
265 B
Ruby
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)
|