From 480e9809f24a330a6d15418f614205a49c142a17 Mon Sep 17 00:00:00 2001 From: AsukaMinato Date: Mon, 10 Apr 2023 02:13:57 +0900 Subject: [PATCH] add qjs completion (cherry picked from commit 8a0510a2f20684ceb76221541e81eb5cca0f8571) --- share/completions/qjs.fish | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 share/completions/qjs.fish diff --git a/share/completions/qjs.fish b/share/completions/qjs.fish new file mode 100644 index 000000000..3f25f7305 --- /dev/null +++ b/share/completions/qjs.fish @@ -0,0 +1,17 @@ +# from qjs --help + +complete -c qjs -l help -s h -d "list options" +complete -c qjs -l eval -s e -r -d "evaluate EXPR" +complete -c qjs -l interactive -s i -d "go to interactive mode" +complete -c qjs -l module -s m -d "load as ES6 module (default=autodetect)" +complete -c qjs -l script -d "load as ES6 module (default=autodetect)" +complete -c qjs -l include -s I -r -d "include an additional file" +complete -c qjs -l std -d "make 'std' and 'os' available to the loaded script" +complete -c qjs -l bignum -d "enable the bignum extensions (BigFloat, BigDecimal)" +complete -c qjs -l qjscalc -d "load the QJSCalc runtime (default if invoked as qjscalc)" +complete -c qjs -l trace -s T -d "trace memory allocation" +complete -c qjs -l dump -d "dump the memory usage stats" +complete -c qjs -l memory-limit -r -d "limit the memory usage to 'n' bytes" +complete -c qjs -l stack-size -r -d "limit the stack size to 'n' bytes" +complete -c qjs -l unhandled-rejection -d "dump unhandled promise rejections" +complete -c qjs -l quit -s q -d "just instantiate the interpreter and quit"