Merge pull request #1086 from zsh-users/update-node

Update node.js completion to version 22.3
This commit is contained in:
Shohei YOSHIDA 2024-06-26 11:32:54 +09:00 committed by GitHub
commit 7a884c75b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 5 deletions

View File

@ -28,7 +28,7 @@
# Description
# -----------
#
# Completion script for Node.js v22.2.0 (https://nodejs.org)
# Completion script for Node.js v22.3.0 (https://nodejs.org)
#
# ------------------------------------------------------------------------------
# Authors
@ -76,15 +76,20 @@ _arguments -C \
'-[script read from stdin (default; interactive mode if a tty)]' \
'--[indicate the end of node options]' \
'--abort-on-uncaught-exception[aborting instead of exiting causes a core file to be generated for analysis]' \
'--allow-addons[allow use of addons when any permissions are set]' \
'--allow-child-process[allow use of child process when any permissions are set]' \
'--allow-fs-read=[allow permissions to read the filesystem]: :_files' \
'--allow-fs-write=[allow permissions to write in the filesystem]:_files' \
'--allow-wasi[allow wasi when any permissions are set]' \
'--allow-worker[allow worker threads thwn any permissions are set]' \
'--build-snapshot[generate a snapshot blob when the process exits]' \
'--build-snapshot-config=[generate a snapshot blob when the process exits using a JSON configuration in the specified path]:path:_files' \
'--completion-bash[print source-able bash completion script]' \
'*'{-C,--conditions=}'[additional user conditions for conditional exports and imports]:condition' \
'--cpu-prof[Start the V8 CPU profiler on start up]' \
'--cpu-prof-dir=[directory where the V8 profiles generated by --cpu-prof]: :_files -/' \
'--cpu-prof-name=[file name of the V8 profile generated with --cpu-prof]: :_files' \
'--cpu-prof-interval=[sampling interval in microseconds for the V8 CPU profiler]:number' \
'--cpu-prof-name=[file name of the V8 profile generated with --cpu-prof]: :_files' \
'--diagnostic-dir=[set dir for all output files(default: current working directory)]:dir:_files -/' \
'--disable-proto=[disable Object.prototype.__proto__]:mode:(delete throw)' \
'*--disable-warning=[silence specific process warnings]:warn type' \
@ -107,6 +112,7 @@ _arguments -C \
'--experimental-test-coverage[enable code coverage in the test runner]' \
'--experimental-vm-modules[experimental ES Module support in vm module]' \
'--experimental-wasm-modules[experimental ES module support for webassembly modules]' \
'--expose-gc[expose gc extension]' \
'--force-context-aware[disable loading non-context-aware addons]' \
'--force-fips[force FIPS crypto]' \
'--frozen-intrinsics[experimental frozen intrinsics support]' \
@ -118,6 +124,7 @@ _arguments -C \
'--heapsnapshot-signal=[Generate heap snapshot on specified signal]:signals:_signals -s' \
'--huge-max-old-generation-size[increase default maximum heap size with 16GB or more]' \
'--icu-data-dir=[set ICU data load path to dir (overrides NODE_ICU_DATA) note: linked-in ICU data is present]: :_directories' \
'--import=[ES module to preload]:module:_node_files' \
'--input-type=[set module type for string input]:module type :(commonjs module)' \
'--insecure-http-parser[Use an insecure HTTP parser that accepts invalid HTTP headers]' \
'--inspect-brk=-[activate inspector on host:port and break at start of user script]:host_port' \
@ -128,7 +135,7 @@ _arguments -C \
'--interpreted-frames-native-stack[help system profilers to translate JavaScript interpreted frames]' \
'--jitless[Disable runtime allocation of executable memory]' \
'--max-http-header-size=[set the maximum size of HTTP headers]: :number' \
'--napi-modules[load N-API modules (no-op - option kept for compatibility)]' \
'--network-family-autoselection-attempt-timeout=[sets the default value for the network family autoselection attemp timeout]:timeout' \
'--no-addons[disable loading native addons]' \
'--no-deprecation[silence deprecation warnings]' \
'--no-experimental-fetch[disable experimental Fetch API]' \
@ -146,7 +153,6 @@ _arguments -C \
'--openssl-legacy-provider[enable OpenSSL 3.0 legacy provider]' \
'--openssl-shared-config[enable OpenSSL shared configuration]' \
'--pending-deprecation[emit pending deprecation warnings]' \
'--policy-integrity=[ensure the security policy contents match the specified integrity]' \
'--preserve-symlinks[preserve symbolic links when resolving]' \
'--preserve-symlinks-main[preserve symbolic links when resolving the main module]' \
'--prof[generate V8 profiler output]' \
@ -174,6 +180,7 @@ _arguments -C \
'--test-shard=[run test at specific shard]:shard' \
'--test-skip-pattern=[run tests whose name do not match this regular expression]' \
'--test-timeout=[specify test runner timeout]' \
'--test-update-snapshots[regenerate test snapshots]' \
'--throw-deprecation[throw an exception on deprecations]' \
'--title=[the process title to use on startup]:process title' \
'--tls-cipher-list=[use an alternative default TLS cipher list]:cipher list string' \
@ -189,6 +196,7 @@ _arguments -C \
'--trace-event-categories[comma separated list of trace event categories to record]: :{_values -s , categories node node.async_hooks node.bootstrap node.perf node.perf.usertiming node.perf.timerify node.fs.sync node.vm.script v8}' \
'--trace-event-file-pattern[Template string specifying the filepath for the trace-events data, it supports ${rotation} and ${pid} log-rotation id. %2$u is the pid.]:template string' \
'--trace-exit[show stack trace when an environment exits]' \
'--trace-promises[show stack traces on promise initialization and resolution]' \
'--trace-sigint[prints a stack trace on SIGINT]' \
'--trace-sync-io[show stack trace when use of sync IO is detected after the first tick]' \
'--trace-tls[prints TLS packet trace information to stderr]' \
@ -196,7 +204,6 @@ _arguments -C \
'--trace-warnings[show stack traces on process warnings]' \
'--track-heap-objects[track heap object allocations for heap snapshots]' \
'--unhandled-rejections=[define unhandled rejections behavior]:rejection behavior:(strict warn none)' \
'--update-assert-snapshot[update assert snapshot files]' \
'--use-bundled-ca[use bundled CA store (default)]' \
'--use-largepages=[re-map the Node.js static code to large memory pages at startup]:mode:(off on silent)' \
"--use-openssl-ca[use OpenSSL's default CA store]" \