Sha256: 412fa3a92c45d84a6debd29db4032d7328dddbd54972df788212de1d80a5d6ca

Contents?: true

Size: 288 Bytes

Versions: 15

Compression:

Stored size: 288 Bytes

Contents

# frozen_string_literal: true

require "jets/command"

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

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

Jets::Command.invoke command, ARGV

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
jets-5.0.13 lib/jets/commands.rb
jets-5.0.12 lib/jets/commands.rb
jets-5.0.11 lib/jets/commands.rb
jets-5.0.10 lib/jets/commands.rb
jets-5.0.9 lib/jets/commands.rb
jets-5.0.8 lib/jets/commands.rb
jets-5.0.7 lib/jets/commands.rb
jets-5.0.6 lib/jets/commands.rb
jets-5.0.5 lib/jets/commands.rb
jets-5.0.4 lib/jets/commands.rb
jets-5.0.3 lib/jets/commands.rb
jets-5.0.2 lib/jets/commands.rb
jets-5.0.1 lib/jets/commands.rb
jets-5.0.0 lib/jets/commands.rb
jets-5.0.0.beta1 lib/jets/commands.rb