Skip to content
This repository
Browse code

Added subcommand support for g, destroy, plugin

  • Loading branch information...
commit bdbae8ce200387526f999a099aa4d3b78ff8b621 1 parent a8c5e91
Daniel Luz authored July 30, 2011

Showing 1 changed file with 8 additions and 2 deletions. Show diff stats Hide diff stats

  1. 10  completion-rails
10  completion-rails
@@ -40,8 +40,14 @@ __rails_get_command() {
40 40
         return
41 41
       else
42 42
         rails_command=$arg
43  
-        # only `generate` has a recognized subcommand at the moment
44  
-        [[ $arg != generate ]] && return
  43
+        case $arg in
  44
+          generate | g | destroy | plugin)
  45
+            # continue processing, looking for a subcommand
  46
+            ;;
  47
+          *)
  48
+            # end processing
  49
+            return;;
  50
+        esac
45 51
       fi
46 52
       ;;
47 53
     esac

0 notes on commit bdbae8c

Please sign in to comment.
Something went wrong with that request. Please try again.