mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-28 07:50:09 +08:00
Add autocompletion plugin for meteor command
This commit is contained in:
parent
434f3bc05c
commit
dd220152be
32
plugins/meteor/_meteor
Normal file
32
plugins/meteor/_meteor
Normal file
@ -0,0 +1,32 @@
|
||||
#compdef meteor
|
||||
#autoload
|
||||
|
||||
# Meteor Autocomplete plugin for Oh-My-Zsh, based on homebrew completion
|
||||
# Original author: Dimitri JORGE (https://github.com/jorge-d)
|
||||
|
||||
local -a _1st_arguments
|
||||
_1st_arguments=(
|
||||
'run:[Default] Run this project in local development mode'
|
||||
'create:Create a new project'
|
||||
'update:Upgrade this project to the latest version of Meteor'
|
||||
'add:Add a package to this project'
|
||||
'remove:Remove a package from this project'
|
||||
'list:List available packages'
|
||||
'help:Display Meteor help'
|
||||
'bundle:Pack this project up into a tarball'
|
||||
'mongo:Connect to the Mongo database for the specified site'
|
||||
'deploy:Deploy this project to Meteor'
|
||||
'logs:Show logs for specified site'
|
||||
'reset:Reset the project state. Erases the local database.'
|
||||
'test-packages:Test one or more packages'
|
||||
)
|
||||
|
||||
if (( CURRENT == 2 )); then
|
||||
_describe -t commands "meteor subcommand" _1st_arguments
|
||||
return
|
||||
fi
|
||||
|
||||
case "$words[2]" in
|
||||
help)
|
||||
_describe -t commands "brew subcommand" _1st_arguments
|
||||
esac
|
Loading…
Reference in New Issue
Block a user