add new meteor commands
remove 'add' since there's more than 3000 packages, we cannot display tham
This commit is contained in:
parent
175b4a8073
commit
3238eea0f9
@ -3,29 +3,44 @@
|
|||||||
|
|
||||||
# Meteor Autocomplete plugin for Oh-My-Zsh, based on homebrew completion
|
# Meteor Autocomplete plugin for Oh-My-Zsh, based on homebrew completion
|
||||||
# Original author: Dimitri JORGE (https://github.com/jorge-d)
|
# Original author: Dimitri JORGE (https://github.com/jorge-d)
|
||||||
|
# Maintainer: Vianney Lecroart (https://github.com/acemtp)
|
||||||
|
|
||||||
_meteor_all_packages() {
|
|
||||||
packages=(`meteor list | cut -d" " -f1`)
|
|
||||||
}
|
|
||||||
_meteor_installed_packages() {
|
_meteor_installed_packages() {
|
||||||
installed_packages=(`meteor list --using`)
|
installed_packages=(`meteor list | cut -d" " -f1`)
|
||||||
}
|
}
|
||||||
|
|
||||||
local -a _1st_arguments
|
local -a _1st_arguments
|
||||||
_1st_arguments=(
|
_1st_arguments=(
|
||||||
'run:[Default] Run this project in local development mode'
|
'run:[default] Run this project in local development mode.'
|
||||||
'create:Create a new project'
|
'debug:Run the project, but suspend the server process for debugging.'
|
||||||
'update:Upgrade this project to the latest version of Meteor'
|
'create:Create a new project.'
|
||||||
'add:Add a package to this project'
|
'update:Upgrade this project's dependencies to their latest versions.'
|
||||||
'remove:Remove a package from this project'
|
'add:Add a package to this project.'
|
||||||
'list:List available packages'
|
'remove:Remove a package from this project.'
|
||||||
'help:Display Meteor help'
|
'list:List the packages explicitly used by your project.'
|
||||||
'bundle:Pack this project up into a tarball'
|
'add-platform:Add a platform to this project.'
|
||||||
'mongo:Connect to the Mongo database for the specified site'
|
'install-sdk:Installs SDKs for a platform.'
|
||||||
'deploy:Deploy this project to Meteor'
|
'remove-platform:Remove a platform from this project.'
|
||||||
'logs:Show logs for specified site'
|
'list-platforms:List the platforms added to your project.'
|
||||||
|
'configure-android:Run the Android configuration tool from Meteor's ADK environment.'
|
||||||
|
'build:Build this project for all platforms.'
|
||||||
|
'shell:Launch a Node REPL for interactively evaluating server-side code.'
|
||||||
|
'mongo:Connect to the Mongo database for the specified site.'
|
||||||
'reset:Reset the project state. Erases the local database.'
|
'reset:Reset the project state. Erases the local database.'
|
||||||
'test-packages:Test one or more packages'
|
'deploy:Deploy this project to Meteor.'
|
||||||
|
'logs:Show logs for specified site.'
|
||||||
|
'authorized:View or change authorized users and organizations for a site.'
|
||||||
|
'claim:Claim a site deployed with an old Meteor version.'
|
||||||
|
'login:Log in to your Meteor developer account.'
|
||||||
|
'logout:Log out of your Meteor developer account.'
|
||||||
|
'whoami:Prints the username of your Meteor developer account.
|
||||||
|
'test-packages:Test one or more packages.'
|
||||||
|
'list-sites:List sites for which you are authorized.'
|
||||||
|
'publish-release:Publish a new meteor release to the package server.'
|
||||||
|
'publish:Publish a new version of a package to the package server.'
|
||||||
|
'publish-for-arch:Builds an already-published package for a new platform.'
|
||||||
|
'search:Search through the package server database.'
|
||||||
|
'show:Show detailed information about a release or package.'
|
||||||
)
|
)
|
||||||
|
|
||||||
local expl
|
local expl
|
||||||
@ -42,7 +57,4 @@ case "$words[2]" in
|
|||||||
remove)
|
remove)
|
||||||
_meteor_installed_packages
|
_meteor_installed_packages
|
||||||
_wanted installed_packages expl 'installed packages' compadd -a installed_packages ;;
|
_wanted installed_packages expl 'installed packages' compadd -a installed_packages ;;
|
||||||
add)
|
|
||||||
_meteor_all_packages
|
|
||||||
_wanted packages expl 'all packages' compadd -a packages ;;
|
|
||||||
esac
|
esac
|
Loading…
Reference in New Issue
Block a user