mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
264222bc44
If we're gonna do this right, it will look mighty different from this anyway. (Looking at you, Rails 5.1). It isn't being used in any code as of now, so yanking is the best option.
18 lines
346 B
Ruby
18 lines
346 B
Ruby
ARGV << '--help' if ARGV.empty?
|
|
|
|
aliases = {
|
|
"g" => "generate",
|
|
"d" => "destroy",
|
|
"c" => "console",
|
|
"s" => "server",
|
|
"db" => "dbconsole",
|
|
"r" => "runner",
|
|
"t" => "test"
|
|
}
|
|
|
|
command = ARGV.shift
|
|
command = aliases[command] || command
|
|
|
|
require 'rails/commands/commands_tasks'
|
|
|
|
Rails::CommandsTasks.new(ARGV).run_command!(command)
|