Sha256: c99fac4e56254316b6da472c19f3a0a99ed1930ce50ce370d07be0147705c0d8

Contents?: true

Size: 311 Bytes

Versions: 205

Compression:

Stored size: 311 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

205 entries across 191 versions & 15 rubygems

Version Path
railties-7.0.8.5 lib/rails/commands.rb
railties-8.0.0.beta1 lib/rails/commands.rb
omg-railties-8.0.0.alpha9 lib/rails/commands.rb
omg-railties-8.0.0.alpha8 lib/rails/commands.rb
omg-railties-8.0.0.alpha7 lib/rails/commands.rb
omg-railties-8.0.0.alpha4 lib/rails/commands.rb
omg-railties-8.0.0.alpha3 lib/rails/commands.rb
railties-7.1.4 lib/rails/commands.rb
railties-7.2.1 lib/rails/commands.rb
railties-7.2.0 lib/rails/commands.rb
railties-7.2.0.rc1 lib/rails/commands.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/railties-7.0.8.4/lib/rails/commands.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/railties-7.1.3.4/lib/rails/commands.rb
railties-7.2.0.beta3 lib/rails/commands.rb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/railties-7.0.5.1/lib/rails/commands.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/railties-7.0.5.1/lib/rails/commands.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/railties-7.0.5.1/lib/rails/commands.rb
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/railties-7.1.3.4/lib/rails/commands.rb
railties-7.2.0.beta2 lib/rails/commands.rb
railties-7.1.3.4 lib/rails/commands.rb