dd220152be26163c93ed1c0f9f98e7bad0653941

Author
Dimitri Jorge <jorge.dimitri@gmail.com>
Committer
Dimitri Jorge <jorge.dimitri@gmail.com>
Date

Message

Add autocompletion plugin for meteor command

Diff

 1diff --git a/plugins/meteor/_meteor b/plugins/meteor/_meteor
 2new file mode 100644
 3index 0000000000000000000000000000000000000000..c90ed6caf81a16cf2241f587d86621aecb514898
 4--- /dev/null
 5+++ b/plugins/meteor/_meteor
 6@@ -0,0 +1,32 @@
 7+#compdef meteor
 8+#autoload
 9+
10+# Meteor Autocomplete plugin for Oh-My-Zsh, based on homebrew completion
11+# Original author: Dimitri JORGE (https://github.com/jorge-d)
12+
13+local -a _1st_arguments
14+_1st_arguments=(
15+  'run:[Default] Run this project in local development mode'
16+  'create:Create a new project'
17+  'update:Upgrade this project to the latest version of Meteor'
18+  'add:Add a package to this project'
19+  'remove:Remove a package from this project'
20+  'list:List available packages'
21+  'help:Display Meteor help'
22+  'bundle:Pack this project up into a tarball'
23+  'mongo:Connect to the Mongo database for the specified site'
24+  'deploy:Deploy this project to Meteor'
25+  'logs:Show logs for specified site'
26+  'reset:Reset the project state. Erases the local database.'
27+  'test-packages:Test one or more packages'
28+)
29+
30+if (( CURRENT == 2 )); then
31+  _describe -t commands "meteor subcommand" _1st_arguments
32+  return
33+fi
34+
35+case "$words[2]" in
36+    help)
37+      _describe -t commands "brew subcommand" _1st_arguments
38+esac