2021-02-27 22:17:03 +01:00
|
|
|
#compdef ybcon
|
2021-02-28 22:28:05 +01:00
|
|
|
completeyfile='filename:_path_files -/ -g "*.ybcon"'
|
2021-02-27 22:17:03 +01:00
|
|
|
_ybcon() {
|
2021-02-28 22:28:05 +01:00
|
|
|
_arguments \
|
2021-03-30 17:33:52 +02:00
|
|
|
'( - 0)'{-h,--help}'[Print the help screen]' \
|
|
|
|
'( - 0)'--version'[Print the version]' \
|
2021-12-31 12:51:13 +01:00
|
|
|
'( - 0)'--buildInfo'[Print informations about how the ybcon executable was built]' \
|
2021-07-07 19:07:47 +02:00
|
|
|
--parallel'[Transpile files in parallel mode]' \
|
2021-03-30 17:33:52 +02:00
|
|
|
--target='[Set the transpilation target]:language:(lua js py)' \
|
2021-10-20 17:26:39 +02:00
|
|
|
--newlines='[Enable or disable new lines]:state:(on off)' \
|
2021-03-30 17:33:52 +02:00
|
|
|
{-p,--printresult}'[Enable printing the transpilation result to stdout]' \
|
2022-04-09 22:43:52 +02:00
|
|
|
{-t,--text}'[Transpile text provided after this argument (implies -p)]' \
|
2023-06-12 21:31:46 +02:00
|
|
|
{-o,--output}'[Output the transpiled file(s) to the specified directory]' \
|
2021-02-28 22:28:05 +01:00
|
|
|
"*:$completeyfile"
|
2021-02-27 22:17:03 +01:00
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
_ybcon
|