aboutsummaryrefslogblamecommitdiffstats
path: root/railties/lib/rails/commands.rb
blob: fff0119c65665141e18475a45b6a9bf31f2a85d8 (plain) (tree)
1
2
3
4
5
6
7
8
9
                       
 

                     
                    

                    
                      
                   
                

 

                                     
 
                                   
require "rails/command"

aliases = {
  "g"  => "generate",
  "d"  => "destroy",
  "c"  => "console",
  "s"  => "server",
  "db" => "dbconsole",
  "r"  => "runner",
  "t"  => "test"
}

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

Rails::Command.invoke command, ARGV