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

                     
                    

                    
                      
                   
                

 

                                     
 
                                   
require_relative "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