1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-18 03:40:08 +00:00
ohmyzsh/plugins/react-native/_react-native

33 lines
1.3 KiB
Text
Raw Normal View History

2016-05-31 10:41:45 +00:00
#compdef react-native
#autoload
local -a _1st_arguments
_1st_arguments=(
'init:<ProjectName> generates a new project and installs its dependencies'
'android:creates an empty android project'
2016-05-31 10:41:45 +00:00
'start:starts the webserver'
'run-ios:builds your app and starts it on iOS simulator'
2016-05-31 10:41:45 +00:00
'run-android:builds your app and starts it on a connected Android emulator or device'
'new-library:generates a native library bridge'
'bundle:builds the javascript bundle for offline use'
'unbundle:builds javascript as "unbundle" for offline use'
'link:[options] <packageName> links all native dependencies'
'unlink:[options] <packageName> unlink native dependency'
'install:[options] <packageName> install and link native dependencies'
'uninstall:[options] <packageName> uninstall and unlink native dependencies'
"upgrade:upgrade your app's template files to the latest version; run this after updating the react-native version in your package.json and running npm install"
'log-android:starts adb logcat'
'log-ios:starts iOS device syslog tail'
2016-05-31 10:41:45 +00:00
)
_arguments \
'(--version)--version[show version]' \
'(--help)--help[show help]' \
'*:: :->subcmds' && return 0
if (( CURRENT == 1 )); then
_describe -t commands "react-native subcommand" _1st_arguments
return
fi