_pm2: consistent capitalization

This commit is contained in:
Mikael Magnusson 2026-05-03 03:28:20 +02:00
parent 32cff31cca
commit 96420d8c73
1 changed files with 15 additions and 15 deletions

View File

@ -73,7 +73,7 @@ _pm2() {
'--no-color[skip colors]' \ '--no-color[skip colors]' \
'--no-vizion[start an app without vizion feature]' \ '--no-vizion[start an app without vizion feature]' \
'--np-autorestart[start an app without automatic restart]' \ '--np-autorestart[start an app without automatic restart]' \
'--no-treekill[Only kill the main process, not detached children]' \ '--no-treekill[only kill the main process, not detached children]' \
'--no-pmx[start an app without pmx]' \ '--no-pmx[start an app without pmx]' \
'--no-automation[start an app without automation]' \ '--no-automation[start an app without automation]' \
'(--disable-trace --trace)--trace[enable transaction tracing with km]' \ '(--disable-trace --trace)--trace[enable transaction tracing with km]' \
@ -93,9 +93,9 @@ _pm2() {
(start) (start)
_arguments \ _arguments \
'--watch[watch folder for changes]' \ '--watch[watch folder for changes]' \
'--fresh[Rebuild Dockerfile]' \ '--fresh[rebuild Dockerfile]' \
'--daemon[Run container in Daemon mode(debug purposes)]' \ '--daemon[run container in daemon mode(debug purposes)]' \
'--container[Start application in container mode]' \ '--container[start application in container mode]' \
'--dist[--with-container; change local Dockerfile to containerize all files in current directory]' \ '--dist[--with-container; change local Dockerfile to containerize all files in current directory]' \
'--image-name[with --dist; set the exported image name]:name' \ '--image-name[with --dist; set the exported image name]:name' \
'--node-version[with --container, set a specific major Node.js version]:version' \ '--node-version[with --container, set a specific major Node.js version]:version' \
@ -119,7 +119,7 @@ _pm2() {
(stop|restart) (stop|restart)
_arguments \ _arguments \
'(- *)'{-h,--help}'[output usage information]' \ '(- *)'{-h,--help}'[output usage information]' \
'--watch[Stop watching folder for changes]' \ '--watch[stop watching folder for changes]' \
'*: :_pm2_id_namespace_all' \ '*: :_pm2_id_namespace_all' \
&& ret=0 && ret=0
;; ;;
@ -231,8 +231,8 @@ _pm2_subcommands() {
"stop:stop a process" "stop:stop a process"
"restart:restart a process" "restart:restart a process"
"scale:scale up/down a process in cluster mode depending on total_number param" "scale:scale up/down a process in cluster mode depending on total_number param"
"profile\:mem:Sample PM2 heap memory" "profile\:mem:sample PM2 heap memory"
"profile\:cpu:Profile PM2 cpu" "profile\:cpu:profile PM2 cpu"
"reload:reload processes (note that its for app using HTTP/HTTPS)" "reload:reload processes (note that its for app using HTTP/HTTPS)"
"id:get process id by name" "id:get process id by name"
"inspect:inspect a process" "inspect:inspect a process"
@ -244,12 +244,12 @@ _pm2_subcommands() {
"install:install or update a module and run it forever" "install:install or update a module and run it forever"
"module\:install:install or update a module and run it forever" "module\:install:install or update a module and run it forever"
"module\:update:update a module and run it forever" "module\:update:update a module and run it forever"
"module\:generate:Generate a sample module in current folder" "module\:generate:generate a sample module in current folder"
"uninstall:stop and uninstall a module" "uninstall:stop and uninstall a module"
"module\:uninstall:stop and uninstall a module" "module\:uninstall:stop and uninstall a module"
"package:Check & Package TAR type module" "package:check & package TAR type module"
"publish:Publish the module you are currently on" "publish:publish the module you are currently on"
"module\:publish:Publish the module you are currently on" "module\:publish:publish the module you are currently on"
"set:sets the specified config <key> <value>" "set:sets the specified config <key> <value>"
"multiset:multiset eg \"key1 val1 key2 val2\"" "multiset:multiset eg \"key1 val1 key2 val2\""
"get:get value for <key>" "get:get value for <key>"
@ -263,11 +263,11 @@ _pm2_subcommands() {
"unmonitor:unmonitor target process" "unmonitor:unmonitor target process"
"open:open the pm2 monitoring dashboard" "open:open the pm2 monitoring dashboard"
"plus:enable pm2 plus" "plus:enable pm2 plus"
"login:Login to pm2 plus" "login:login to pm2 plus"
"logout:Logout from pm2 plus" "logout:logout from pm2 plus"
"dump:dump all processes for resurrecting them later" "dump:dump all processes for resurrecting them later"
"save:dump all processes for resurrecting them later" "save:dump all processes for resurrecting them later"
"cleardump:Create empty dump file" "cleardump:create empty dump file"
"send:send stdin to <pm_id>" "send:send stdin to <pm_id>"
"attach:attach stdin/stdout to application identified by <pm_id>" "attach:attach stdin/stdout to application identified by <pm_id>"
"resurrect:resurrect previously dumped processes" "resurrect:resurrect previously dumped processes"
@ -297,7 +297,7 @@ _pm2_subcommands() {
"dash:launch dashboard with monitoring and logs" "dash:launch dashboard with monitoring and logs"
"flush:flush logs" "flush:flush logs"
"reloadLogs:reload all logs" "reloadLogs:reload all logs"
"logs:stream logs file. Default stream all logs" "logs:stream logs file (default is to stream all logs)"
"kill:kill daemon" "kill:kill daemon"
"pull:updates repository for a given app" "pull:updates repository for a given app"
"forward:updates repository to the next commit for a given app" "forward:updates repository to the next commit for a given app"