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

                             
                          
 

                     
                    

                    
                      
                   
                

 

                                     
 
                                   
# frozen_string_literal: true

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