-
-
Save ywatase/2914741 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#compdef jsx | |
_arguments -C \ | |
'(- 1 *)--help[displays this help and exits]' \ | |
'(- 1 *)--version[displays displays the version and exits]' \ | |
'(--add-search-path)--add-search-path[add a path to library search paths]:Search Path:' \ | |
'(--executable)--executable[compiles as an CLI executable, calling _Main.main(\:string\[\])\:void]' \ | |
'(--run)--run[runs _Main.main(\:string\[\])\:void after compiling]' \ | |
'(--test)--test[runs _Test#test*()\:void after compiling]' \ | |
'(--output)--output[output file (default\:stdout)]:output file:_files' \ | |
'(--mode)--mode[compilation mode (default\:compile)]:compilation mode:(compile parse)' \ | |
'(--target)--target[target language (default:javascript)]:javascript|c++:(javascript c++)' \ | |
'(--release)--release[omits the debugging features from the generated code (run-time type checking, logging, assertion)]' \ | |
'(--optimize)--optimize[list of optimize commands (no-assert, no-log, inline, return-if)]:optimize commands:' \ | |
'(--enable-type-check)--enable-type-check[enables run-time type checking]' \ | |
'(--enable-source-map)--enable-source-map[enables source map debugging info]' \ | |
'(1 *):jsx files:_files -g"*\.jsx"' && return 0 | |
return ret |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment