pepe-http 0.43.1 → 0.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +225 -0
- package/completions/_pepe +582 -0
- package/completions/_pepe.ps1 +428 -0
- package/completions/pepe.bash +1458 -15
- package/completions/pepe.fish +314 -15
- package/man/pepe-slack.1 +32 -0
- package/man/pepe.1 +16 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -2
package/completions/_pepe
CHANGED
|
@@ -33,6 +33,10 @@ _pepe() {
|
|
|
33
33
|
'-p+[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
|
|
34
34
|
'--proxy=[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
|
|
35
35
|
'--trace-header=[Response header holding the request id to show for the slowest requests and in the inspector, so they can be found in the server'\''s logs; without it, X-Request-Id, traceparent, CF-Ray, X-Amzn-Trace-Id and other common ones are looked for]:NAME:_default' \
|
|
36
|
+
'--vars=[Fill the {{holes}} in the URL, headers and body from this CSV file, whose first line names them\: each request takes the next row, and the rows go round again. In a flow, each chain starts with the next row'\''s values]:FILE:_files' \
|
|
37
|
+
'*--webhook=[Send the run'\''s verdict to this URL when it ends\: a Slack, Discord, Teams or Google Chat webhook gets a message laid out for it, anything else the JSON report; repeat for more. \${NAME} is taken from the environment. A \[\[webhook\]\] table in pepe.toml says more]:URL:_default' \
|
|
38
|
+
'--webhook-on=[When the --webhook URLs are sent\: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default]:EVENTS:_default' \
|
|
39
|
+
'--slack=[Keep a Slack message up to date as the run goes\: posted at the start, edited with the numbers, anomalies in its thread, the verdict at the end. --slack alone posts in the channel \`pepe slack connect\` kept; --slack=#channel elsewhere]::CHANNEL:_default' \
|
|
36
40
|
'--snapshot=[Write the JSON report so far to this file every minute while the run goes, and once more when it ends, so a long run'\''s numbers survive a crash or a lost terminal; it has a minute-by-minute timeline of the whole run]:FILE:_files' \
|
|
37
41
|
'*--allow-host=[Refuse to send anywhere but these hosts\: api.example.com exactly, or .example.com for it and its subdomains; repeat for more. Every target is checked before anything is sent]:HOST:_default' \
|
|
38
42
|
'--max-requests=[Refuse a run that would send more requests than this\: -n above it, or -z without a --rate that bounds it]:N:_default' \
|
|
@@ -108,6 +112,10 @@ fail\:"A failure"))' \
|
|
|
108
112
|
'-p+[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
|
|
109
113
|
'--proxy=[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
|
|
110
114
|
'--trace-header=[Response header holding the request id to show for the slowest requests and in the inspector, so they can be found in the server'\''s logs; without it, X-Request-Id, traceparent, CF-Ray, X-Amzn-Trace-Id and other common ones are looked for]:NAME:_default' \
|
|
115
|
+
'--vars=[Fill the {{holes}} in the URL, headers and body from this CSV file, whose first line names them\: each request takes the next row, and the rows go round again. In a flow, each chain starts with the next row'\''s values]:FILE:_files' \
|
|
116
|
+
'*--webhook=[Send the run'\''s verdict to this URL when it ends\: a Slack, Discord, Teams or Google Chat webhook gets a message laid out for it, anything else the JSON report; repeat for more. \${NAME} is taken from the environment. A \[\[webhook\]\] table in pepe.toml says more]:URL:_default' \
|
|
117
|
+
'--webhook-on=[When the --webhook URLs are sent\: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default]:EVENTS:_default' \
|
|
118
|
+
'--slack=[Keep a Slack message up to date as the run goes\: posted at the start, edited with the numbers, anomalies in its thread, the verdict at the end. --slack alone posts in the channel \`pepe slack connect\` kept; --slack=#channel elsewhere]::CHANNEL:_default' \
|
|
111
119
|
'--snapshot=[Write the JSON report so far to this file every minute while the run goes, and once more when it ends, so a long run'\''s numbers survive a crash or a lost terminal; it has a minute-by-minute timeline of the whole run]:FILE:_files' \
|
|
112
120
|
'*--allow-host=[Refuse to send anywhere but these hosts\: api.example.com exactly, or .example.com for it and its subdomains; repeat for more. Every target is checked before anything is sent]:HOST:_default' \
|
|
113
121
|
'--max-requests=[Refuse a run that would send more requests than this\: -n above it, or -z without a --rate that bounds it]:N:_default' \
|
|
@@ -178,6 +186,10 @@ _arguments "${_arguments_options[@]}" : \
|
|
|
178
186
|
'-p+[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
|
|
179
187
|
'--proxy=[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
|
|
180
188
|
'--trace-header=[Response header holding the request id to show for the slowest requests and in the inspector, so they can be found in the server'\''s logs; without it, X-Request-Id, traceparent, CF-Ray, X-Amzn-Trace-Id and other common ones are looked for]:NAME:_default' \
|
|
189
|
+
'--vars=[Fill the {{holes}} in the URL, headers and body from this CSV file, whose first line names them\: each request takes the next row, and the rows go round again. In a flow, each chain starts with the next row'\''s values]:FILE:_files' \
|
|
190
|
+
'*--webhook=[Send the run'\''s verdict to this URL when it ends\: a Slack, Discord, Teams or Google Chat webhook gets a message laid out for it, anything else the JSON report; repeat for more. \${NAME} is taken from the environment. A \[\[webhook\]\] table in pepe.toml says more]:URL:_default' \
|
|
191
|
+
'--webhook-on=[When the --webhook URLs are sent\: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default]:EVENTS:_default' \
|
|
192
|
+
'--slack=[Keep a Slack message up to date as the run goes\: posted at the start, edited with the numbers, anomalies in its thread, the verdict at the end. --slack alone posts in the channel \`pepe slack connect\` kept; --slack=#channel elsewhere]::CHANNEL:_default' \
|
|
181
193
|
'--snapshot=[Write the JSON report so far to this file every minute while the run goes, and once more when it ends, so a long run'\''s numbers survive a crash or a lost terminal; it has a minute-by-minute timeline of the whole run]:FILE:_files' \
|
|
182
194
|
'*--allow-host=[Refuse to send anywhere but these hosts\: api.example.com exactly, or .example.com for it and its subdomains; repeat for more. Every target is checked before anything is sent]:HOST:_default' \
|
|
183
195
|
'--max-requests=[Refuse a run that would send more requests than this\: -n above it, or -z without a --rate that bounds it]:N:_default' \
|
|
@@ -229,6 +241,10 @@ _arguments "${_arguments_options[@]}" : \
|
|
|
229
241
|
'-p+[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
|
|
230
242
|
'--proxy=[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
|
|
231
243
|
'--trace-header=[Response header holding the request id to show for the slowest requests and in the inspector, so they can be found in the server'\''s logs; without it, X-Request-Id, traceparent, CF-Ray, X-Amzn-Trace-Id and other common ones are looked for]:NAME:_default' \
|
|
244
|
+
'--vars=[Fill the {{holes}} in the URL, headers and body from this CSV file, whose first line names them\: each request takes the next row, and the rows go round again. In a flow, each chain starts with the next row'\''s values]:FILE:_files' \
|
|
245
|
+
'*--webhook=[Send the run'\''s verdict to this URL when it ends\: a Slack, Discord, Teams or Google Chat webhook gets a message laid out for it, anything else the JSON report; repeat for more. \${NAME} is taken from the environment. A \[\[webhook\]\] table in pepe.toml says more]:URL:_default' \
|
|
246
|
+
'--webhook-on=[When the --webhook URLs are sent\: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default]:EVENTS:_default' \
|
|
247
|
+
'--slack=[Keep a Slack message up to date as the run goes\: posted at the start, edited with the numbers, anomalies in its thread, the verdict at the end. --slack alone posts in the channel \`pepe slack connect\` kept; --slack=#channel elsewhere]::CHANNEL:_default' \
|
|
232
248
|
'--snapshot=[Write the JSON report so far to this file every minute while the run goes, and once more when it ends, so a long run'\''s numbers survive a crash or a lost terminal; it has a minute-by-minute timeline of the whole run]:FILE:_files' \
|
|
233
249
|
'*--allow-host=[Refuse to send anywhere but these hosts\: api.example.com exactly, or .example.com for it and its subdomains; repeat for more. Every target is checked before anything is sent]:HOST:_default' \
|
|
234
250
|
'--max-requests=[Refuse a run that would send more requests than this\: -n above it, or -z without a --rate that bounds it]:N:_default' \
|
|
@@ -281,6 +297,10 @@ _arguments "${_arguments_options[@]}" : \
|
|
|
281
297
|
'-p+[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
|
|
282
298
|
'--proxy=[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
|
|
283
299
|
'--trace-header=[Response header holding the request id to show for the slowest requests and in the inspector, so they can be found in the server'\''s logs; without it, X-Request-Id, traceparent, CF-Ray, X-Amzn-Trace-Id and other common ones are looked for]:NAME:_default' \
|
|
300
|
+
'--vars=[Fill the {{holes}} in the URL, headers and body from this CSV file, whose first line names them\: each request takes the next row, and the rows go round again. In a flow, each chain starts with the next row'\''s values]:FILE:_files' \
|
|
301
|
+
'*--webhook=[Send the run'\''s verdict to this URL when it ends\: a Slack, Discord, Teams or Google Chat webhook gets a message laid out for it, anything else the JSON report; repeat for more. \${NAME} is taken from the environment. A \[\[webhook\]\] table in pepe.toml says more]:URL:_default' \
|
|
302
|
+
'--webhook-on=[When the --webhook URLs are sent\: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default]:EVENTS:_default' \
|
|
303
|
+
'--slack=[Keep a Slack message up to date as the run goes\: posted at the start, edited with the numbers, anomalies in its thread, the verdict at the end. --slack alone posts in the channel \`pepe slack connect\` kept; --slack=#channel elsewhere]::CHANNEL:_default' \
|
|
284
304
|
'--snapshot=[Write the JSON report so far to this file every minute while the run goes, and once more when it ends, so a long run'\''s numbers survive a crash or a lost terminal; it has a minute-by-minute timeline of the whole run]:FILE:_files' \
|
|
285
305
|
'*--allow-host=[Refuse to send anywhere but these hosts\: api.example.com exactly, or .example.com for it and its subdomains; repeat for more. Every target is checked before anything is sent]:HOST:_default' \
|
|
286
306
|
'--max-requests=[Refuse a run that would send more requests than this\: -n above it, or -z without a --rate that bounds it]:N:_default' \
|
|
@@ -332,6 +352,10 @@ _arguments "${_arguments_options[@]}" : \
|
|
|
332
352
|
'-p+[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
|
|
333
353
|
'--proxy=[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
|
|
334
354
|
'--trace-header=[Response header holding the request id to show for the slowest requests and in the inspector, so they can be found in the server'\''s logs; without it, X-Request-Id, traceparent, CF-Ray, X-Amzn-Trace-Id and other common ones are looked for]:NAME:_default' \
|
|
355
|
+
'--vars=[Fill the {{holes}} in the URL, headers and body from this CSV file, whose first line names them\: each request takes the next row, and the rows go round again. In a flow, each chain starts with the next row'\''s values]:FILE:_files' \
|
|
356
|
+
'*--webhook=[Send the run'\''s verdict to this URL when it ends\: a Slack, Discord, Teams or Google Chat webhook gets a message laid out for it, anything else the JSON report; repeat for more. \${NAME} is taken from the environment. A \[\[webhook\]\] table in pepe.toml says more]:URL:_default' \
|
|
357
|
+
'--webhook-on=[When the --webhook URLs are sent\: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default]:EVENTS:_default' \
|
|
358
|
+
'--slack=[Keep a Slack message up to date as the run goes\: posted at the start, edited with the numbers, anomalies in its thread, the verdict at the end. --slack alone posts in the channel \`pepe slack connect\` kept; --slack=#channel elsewhere]::CHANNEL:_default' \
|
|
335
359
|
'--snapshot=[Write the JSON report so far to this file every minute while the run goes, and once more when it ends, so a long run'\''s numbers survive a crash or a lost terminal; it has a minute-by-minute timeline of the whole run]:FILE:_files' \
|
|
336
360
|
'*--allow-host=[Refuse to send anywhere but these hosts\: api.example.com exactly, or .example.com for it and its subdomains; repeat for more. Every target is checked before anything is sent]:HOST:_default' \
|
|
337
361
|
'--max-requests=[Refuse a run that would send more requests than this\: -n above it, or -z without a --rate that bounds it]:N:_default' \
|
|
@@ -388,6 +412,10 @@ _arguments "${_arguments_options[@]}" : \
|
|
|
388
412
|
'-p+[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
|
|
389
413
|
'--proxy=[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
|
|
390
414
|
'--trace-header=[Response header holding the request id to show for the slowest requests and in the inspector, so they can be found in the server'\''s logs; without it, X-Request-Id, traceparent, CF-Ray, X-Amzn-Trace-Id and other common ones are looked for]:NAME:_default' \
|
|
415
|
+
'--vars=[Fill the {{holes}} in the URL, headers and body from this CSV file, whose first line names them\: each request takes the next row, and the rows go round again. In a flow, each chain starts with the next row'\''s values]:FILE:_files' \
|
|
416
|
+
'*--webhook=[Send the run'\''s verdict to this URL when it ends\: a Slack, Discord, Teams or Google Chat webhook gets a message laid out for it, anything else the JSON report; repeat for more. \${NAME} is taken from the environment. A \[\[webhook\]\] table in pepe.toml says more]:URL:_default' \
|
|
417
|
+
'--webhook-on=[When the --webhook URLs are sent\: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default]:EVENTS:_default' \
|
|
418
|
+
'--slack=[Keep a Slack message up to date as the run goes\: posted at the start, edited with the numbers, anomalies in its thread, the verdict at the end. --slack alone posts in the channel \`pepe slack connect\` kept; --slack=#channel elsewhere]::CHANNEL:_default' \
|
|
391
419
|
'--snapshot=[Write the JSON report so far to this file every minute while the run goes, and once more when it ends, so a long run'\''s numbers survive a crash or a lost terminal; it has a minute-by-minute timeline of the whole run]:FILE:_files' \
|
|
392
420
|
'*--allow-host=[Refuse to send anywhere but these hosts\: api.example.com exactly, or .example.com for it and its subdomains; repeat for more. Every target is checked before anything is sent]:HOST:_default' \
|
|
393
421
|
'--max-requests=[Refuse a run that would send more requests than this\: -n above it, or -z without a --rate that bounds it]:N:_default' \
|
|
@@ -440,6 +468,10 @@ _arguments "${_arguments_options[@]}" : \
|
|
|
440
468
|
'-p+[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
|
|
441
469
|
'--proxy=[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
|
|
442
470
|
'--trace-header=[Response header holding the request id to show for the slowest requests and in the inspector, so they can be found in the server'\''s logs; without it, X-Request-Id, traceparent, CF-Ray, X-Amzn-Trace-Id and other common ones are looked for]:NAME:_default' \
|
|
471
|
+
'--vars=[Fill the {{holes}} in the URL, headers and body from this CSV file, whose first line names them\: each request takes the next row, and the rows go round again. In a flow, each chain starts with the next row'\''s values]:FILE:_files' \
|
|
472
|
+
'*--webhook=[Send the run'\''s verdict to this URL when it ends\: a Slack, Discord, Teams or Google Chat webhook gets a message laid out for it, anything else the JSON report; repeat for more. \${NAME} is taken from the environment. A \[\[webhook\]\] table in pepe.toml says more]:URL:_default' \
|
|
473
|
+
'--webhook-on=[When the --webhook URLs are sent\: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default]:EVENTS:_default' \
|
|
474
|
+
'--slack=[Keep a Slack message up to date as the run goes\: posted at the start, edited with the numbers, anomalies in its thread, the verdict at the end. --slack alone posts in the channel \`pepe slack connect\` kept; --slack=#channel elsewhere]::CHANNEL:_default' \
|
|
443
475
|
'--snapshot=[Write the JSON report so far to this file every minute while the run goes, and once more when it ends, so a long run'\''s numbers survive a crash or a lost terminal; it has a minute-by-minute timeline of the whole run]:FILE:_files' \
|
|
444
476
|
'*--allow-host=[Refuse to send anywhere but these hosts\: api.example.com exactly, or .example.com for it and its subdomains; repeat for more. Every target is checked before anything is sent]:HOST:_default' \
|
|
445
477
|
'--max-requests=[Refuse a run that would send more requests than this\: -n above it, or -z without a --rate that bounds it]:N:_default' \
|
|
@@ -492,6 +524,10 @@ _arguments "${_arguments_options[@]}" : \
|
|
|
492
524
|
'-p+[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
|
|
493
525
|
'--proxy=[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
|
|
494
526
|
'--trace-header=[Response header holding the request id to show for the slowest requests and in the inspector, so they can be found in the server'\''s logs; without it, X-Request-Id, traceparent, CF-Ray, X-Amzn-Trace-Id and other common ones are looked for]:NAME:_default' \
|
|
527
|
+
'--vars=[Fill the {{holes}} in the URL, headers and body from this CSV file, whose first line names them\: each request takes the next row, and the rows go round again. In a flow, each chain starts with the next row'\''s values]:FILE:_files' \
|
|
528
|
+
'*--webhook=[Send the run'\''s verdict to this URL when it ends\: a Slack, Discord, Teams or Google Chat webhook gets a message laid out for it, anything else the JSON report; repeat for more. \${NAME} is taken from the environment. A \[\[webhook\]\] table in pepe.toml says more]:URL:_default' \
|
|
529
|
+
'--webhook-on=[When the --webhook URLs are sent\: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default]:EVENTS:_default' \
|
|
530
|
+
'--slack=[Keep a Slack message up to date as the run goes\: posted at the start, edited with the numbers, anomalies in its thread, the verdict at the end. --slack alone posts in the channel \`pepe slack connect\` kept; --slack=#channel elsewhere]::CHANNEL:_default' \
|
|
495
531
|
'--snapshot=[Write the JSON report so far to this file every minute while the run goes, and once more when it ends, so a long run'\''s numbers survive a crash or a lost terminal; it has a minute-by-minute timeline of the whole run]:FILE:_files' \
|
|
496
532
|
'*--allow-host=[Refuse to send anywhere but these hosts\: api.example.com exactly, or .example.com for it and its subdomains; repeat for more. Every target is checked before anything is sent]:HOST:_default' \
|
|
497
533
|
'--max-requests=[Refuse a run that would send more requests than this\: -n above it, or -z without a --rate that bounds it]:N:_default' \
|
|
@@ -547,6 +583,10 @@ _arguments "${_arguments_options[@]}" : \
|
|
|
547
583
|
'-p+[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
|
|
548
584
|
'--proxy=[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
|
|
549
585
|
'--trace-header=[Response header holding the request id to show for the slowest requests and in the inspector, so they can be found in the server'\''s logs; without it, X-Request-Id, traceparent, CF-Ray, X-Amzn-Trace-Id and other common ones are looked for]:NAME:_default' \
|
|
586
|
+
'--vars=[Fill the {{holes}} in the URL, headers and body from this CSV file, whose first line names them\: each request takes the next row, and the rows go round again. In a flow, each chain starts with the next row'\''s values]:FILE:_files' \
|
|
587
|
+
'*--webhook=[Send the run'\''s verdict to this URL when it ends\: a Slack, Discord, Teams or Google Chat webhook gets a message laid out for it, anything else the JSON report; repeat for more. \${NAME} is taken from the environment. A \[\[webhook\]\] table in pepe.toml says more]:URL:_default' \
|
|
588
|
+
'--webhook-on=[When the --webhook URLs are sent\: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default]:EVENTS:_default' \
|
|
589
|
+
'--slack=[Keep a Slack message up to date as the run goes\: posted at the start, edited with the numbers, anomalies in its thread, the verdict at the end. --slack alone posts in the channel \`pepe slack connect\` kept; --slack=#channel elsewhere]::CHANNEL:_default' \
|
|
550
590
|
'--snapshot=[Write the JSON report so far to this file every minute while the run goes, and once more when it ends, so a long run'\''s numbers survive a crash or a lost terminal; it has a minute-by-minute timeline of the whole run]:FILE:_files' \
|
|
551
591
|
'*--allow-host=[Refuse to send anywhere but these hosts\: api.example.com exactly, or .example.com for it and its subdomains; repeat for more. Every target is checked before anything is sent]:HOST:_default' \
|
|
552
592
|
'--max-requests=[Refuse a run that would send more requests than this\: -n above it, or -z without a --rate that bounds it]:N:_default' \
|
|
@@ -599,6 +639,10 @@ _arguments "${_arguments_options[@]}" : \
|
|
|
599
639
|
'-p+[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
|
|
600
640
|
'--proxy=[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
|
|
601
641
|
'--trace-header=[Response header holding the request id to show for the slowest requests and in the inspector, so they can be found in the server'\''s logs; without it, X-Request-Id, traceparent, CF-Ray, X-Amzn-Trace-Id and other common ones are looked for]:NAME:_default' \
|
|
642
|
+
'--vars=[Fill the {{holes}} in the URL, headers and body from this CSV file, whose first line names them\: each request takes the next row, and the rows go round again. In a flow, each chain starts with the next row'\''s values]:FILE:_files' \
|
|
643
|
+
'*--webhook=[Send the run'\''s verdict to this URL when it ends\: a Slack, Discord, Teams or Google Chat webhook gets a message laid out for it, anything else the JSON report; repeat for more. \${NAME} is taken from the environment. A \[\[webhook\]\] table in pepe.toml says more]:URL:_default' \
|
|
644
|
+
'--webhook-on=[When the --webhook URLs are sent\: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default]:EVENTS:_default' \
|
|
645
|
+
'--slack=[Keep a Slack message up to date as the run goes\: posted at the start, edited with the numbers, anomalies in its thread, the verdict at the end. --slack alone posts in the channel \`pepe slack connect\` kept; --slack=#channel elsewhere]::CHANNEL:_default' \
|
|
602
646
|
'--snapshot=[Write the JSON report so far to this file every minute while the run goes, and once more when it ends, so a long run'\''s numbers survive a crash or a lost terminal; it has a minute-by-minute timeline of the whole run]:FILE:_files' \
|
|
603
647
|
'*--allow-host=[Refuse to send anywhere but these hosts\: api.example.com exactly, or .example.com for it and its subdomains; repeat for more. Every target is checked before anything is sent]:HOST:_default' \
|
|
604
648
|
'--max-requests=[Refuse a run that would send more requests than this\: -n above it, or -z without a --rate that bounds it]:N:_default' \
|
|
@@ -649,6 +693,10 @@ _arguments "${_arguments_options[@]}" : \
|
|
|
649
693
|
'-p+[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
|
|
650
694
|
'--proxy=[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
|
|
651
695
|
'--trace-header=[Response header holding the request id to show for the slowest requests and in the inspector, so they can be found in the server'\''s logs; without it, X-Request-Id, traceparent, CF-Ray, X-Amzn-Trace-Id and other common ones are looked for]:NAME:_default' \
|
|
696
|
+
'--vars=[Fill the {{holes}} in the URL, headers and body from this CSV file, whose first line names them\: each request takes the next row, and the rows go round again. In a flow, each chain starts with the next row'\''s values]:FILE:_files' \
|
|
697
|
+
'*--webhook=[Send the run'\''s verdict to this URL when it ends\: a Slack, Discord, Teams or Google Chat webhook gets a message laid out for it, anything else the JSON report; repeat for more. \${NAME} is taken from the environment. A \[\[webhook\]\] table in pepe.toml says more]:URL:_default' \
|
|
698
|
+
'--webhook-on=[When the --webhook URLs are sent\: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default]:EVENTS:_default' \
|
|
699
|
+
'--slack=[Keep a Slack message up to date as the run goes\: posted at the start, edited with the numbers, anomalies in its thread, the verdict at the end. --slack alone posts in the channel \`pepe slack connect\` kept; --slack=#channel elsewhere]::CHANNEL:_default' \
|
|
652
700
|
'--snapshot=[Write the JSON report so far to this file every minute while the run goes, and once more when it ends, so a long run'\''s numbers survive a crash or a lost terminal; it has a minute-by-minute timeline of the whole run]:FILE:_files' \
|
|
653
701
|
'*--allow-host=[Refuse to send anywhere but these hosts\: api.example.com exactly, or .example.com for it and its subdomains; repeat for more. Every target is checked before anything is sent]:HOST:_default' \
|
|
654
702
|
'--max-requests=[Refuse a run that would send more requests than this\: -n above it, or -z without a --rate that bounds it]:N:_default' \
|
|
@@ -698,6 +746,10 @@ _arguments "${_arguments_options[@]}" : \
|
|
|
698
746
|
'-p+[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
|
|
699
747
|
'--proxy=[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
|
|
700
748
|
'--trace-header=[Response header holding the request id to show for the slowest requests and in the inspector, so they can be found in the server'\''s logs; without it, X-Request-Id, traceparent, CF-Ray, X-Amzn-Trace-Id and other common ones are looked for]:NAME:_default' \
|
|
749
|
+
'--vars=[Fill the {{holes}} in the URL, headers and body from this CSV file, whose first line names them\: each request takes the next row, and the rows go round again. In a flow, each chain starts with the next row'\''s values]:FILE:_files' \
|
|
750
|
+
'*--webhook=[Send the run'\''s verdict to this URL when it ends\: a Slack, Discord, Teams or Google Chat webhook gets a message laid out for it, anything else the JSON report; repeat for more. \${NAME} is taken from the environment. A \[\[webhook\]\] table in pepe.toml says more]:URL:_default' \
|
|
751
|
+
'--webhook-on=[When the --webhook URLs are sent\: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default]:EVENTS:_default' \
|
|
752
|
+
'--slack=[Keep a Slack message up to date as the run goes\: posted at the start, edited with the numbers, anomalies in its thread, the verdict at the end. --slack alone posts in the channel \`pepe slack connect\` kept; --slack=#channel elsewhere]::CHANNEL:_default' \
|
|
701
753
|
'--snapshot=[Write the JSON report so far to this file every minute while the run goes, and once more when it ends, so a long run'\''s numbers survive a crash or a lost terminal; it has a minute-by-minute timeline of the whole run]:FILE:_files' \
|
|
702
754
|
'*--allow-host=[Refuse to send anywhere but these hosts\: api.example.com exactly, or .example.com for it and its subdomains; repeat for more. Every target is checked before anything is sent]:HOST:_default' \
|
|
703
755
|
'--max-requests=[Refuse a run that would send more requests than this\: -n above it, or -z without a --rate that bounds it]:N:_default' \
|
|
@@ -749,6 +801,10 @@ _arguments "${_arguments_options[@]}" : \
|
|
|
749
801
|
'-p+[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
|
|
750
802
|
'--proxy=[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
|
|
751
803
|
'--trace-header=[Response header holding the request id to show for the slowest requests and in the inspector, so they can be found in the server'\''s logs; without it, X-Request-Id, traceparent, CF-Ray, X-Amzn-Trace-Id and other common ones are looked for]:NAME:_default' \
|
|
804
|
+
'--vars=[Fill the {{holes}} in the URL, headers and body from this CSV file, whose first line names them\: each request takes the next row, and the rows go round again. In a flow, each chain starts with the next row'\''s values]:FILE:_files' \
|
|
805
|
+
'*--webhook=[Send the run'\''s verdict to this URL when it ends\: a Slack, Discord, Teams or Google Chat webhook gets a message laid out for it, anything else the JSON report; repeat for more. \${NAME} is taken from the environment. A \[\[webhook\]\] table in pepe.toml says more]:URL:_default' \
|
|
806
|
+
'--webhook-on=[When the --webhook URLs are sent\: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default]:EVENTS:_default' \
|
|
807
|
+
'--slack=[Keep a Slack message up to date as the run goes\: posted at the start, edited with the numbers, anomalies in its thread, the verdict at the end. --slack alone posts in the channel \`pepe slack connect\` kept; --slack=#channel elsewhere]::CHANNEL:_default' \
|
|
752
808
|
'--snapshot=[Write the JSON report so far to this file every minute while the run goes, and once more when it ends, so a long run'\''s numbers survive a crash or a lost terminal; it has a minute-by-minute timeline of the whole run]:FILE:_files' \
|
|
753
809
|
'*--allow-host=[Refuse to send anywhere but these hosts\: api.example.com exactly, or .example.com for it and its subdomains; repeat for more. Every target is checked before anything is sent]:HOST:_default' \
|
|
754
810
|
'--max-requests=[Refuse a run that would send more requests than this\: -n above it, or -z without a --rate that bounds it]:N:_default' \
|
|
@@ -780,6 +836,379 @@ _arguments "${_arguments_options[@]}" : \
|
|
|
780
836
|
'::shell -- bash, zsh, fish or powershell; the current shell when left out:(bash zsh fish powershell)' \
|
|
781
837
|
&& ret=0
|
|
782
838
|
;;
|
|
839
|
+
(slack)
|
|
840
|
+
_arguments "${_arguments_options[@]}" : \
|
|
841
|
+
'-n+[Number of requests to perform]:NUMBER:_default' \
|
|
842
|
+
'--number=[Number of requests to perform]:NUMBER:_default' \
|
|
843
|
+
'-z+[Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)]:DURATION:_default' \
|
|
844
|
+
'--duration=[Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)]:DURATION:_default' \
|
|
845
|
+
'-m+[HTTP method, e.g. GET, POST, PUT, DELETE]:METHOD:_default' \
|
|
846
|
+
'--method=[HTTP method, e.g. GET, POST, PUT, DELETE]:METHOD:_default' \
|
|
847
|
+
'*-H+[HTTP headers, e.g. -H '\''Accept\: application/json'\'']:HEADERS:_default' \
|
|
848
|
+
'*--headers=[HTTP headers, e.g. -H '\''Accept\: application/json'\'']:HEADERS:_default' \
|
|
849
|
+
'-t+[Time in seconds to wait for a response]:TIMEOUT:_default' \
|
|
850
|
+
'--timeout=[Time in seconds to wait for a response]:TIMEOUT:_default' \
|
|
851
|
+
'--warmup=[Send for this long before measuring, e.g. 5s\: connections open, caches fill and JITs settle without counting against the run]:TIME:_default' \
|
|
852
|
+
'--threads=[Threads sending requests (default 1), or "auto" to add one whenever those sending are all busy. One sends 100k requests a second or more; the dashboard says when it is the limit]:N|auto:_default' \
|
|
853
|
+
'--rate=[Start this many requests a second, spread evenly, instead of as many as the concurrency allows; -c is then the most in flight at once, and pepe says when it holds the rate back]:PER_SECOND:_default' \
|
|
854
|
+
'-d+[HTTP request body]:BODY:_default' \
|
|
855
|
+
'--body=[HTTP request body]:BODY:_default' \
|
|
856
|
+
'-p+[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
|
|
857
|
+
'--proxy=[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
|
|
858
|
+
'--trace-header=[Response header holding the request id to show for the slowest requests and in the inspector, so they can be found in the server'\''s logs; without it, X-Request-Id, traceparent, CF-Ray, X-Amzn-Trace-Id and other common ones are looked for]:NAME:_default' \
|
|
859
|
+
'--vars=[Fill the {{holes}} in the URL, headers and body from this CSV file, whose first line names them\: each request takes the next row, and the rows go round again. In a flow, each chain starts with the next row'\''s values]:FILE:_files' \
|
|
860
|
+
'*--webhook=[Send the run'\''s verdict to this URL when it ends\: a Slack, Discord, Teams or Google Chat webhook gets a message laid out for it, anything else the JSON report; repeat for more. \${NAME} is taken from the environment. A \[\[webhook\]\] table in pepe.toml says more]:URL:_default' \
|
|
861
|
+
'--webhook-on=[When the --webhook URLs are sent\: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default]:EVENTS:_default' \
|
|
862
|
+
'--slack=[Keep a Slack message up to date as the run goes\: posted at the start, edited with the numbers, anomalies in its thread, the verdict at the end. --slack alone posts in the channel \`pepe slack connect\` kept; --slack=#channel elsewhere]::CHANNEL:_default' \
|
|
863
|
+
'--snapshot=[Write the JSON report so far to this file every minute while the run goes, and once more when it ends, so a long run'\''s numbers survive a crash or a lost terminal; it has a minute-by-minute timeline of the whole run]:FILE:_files' \
|
|
864
|
+
'*--allow-host=[Refuse to send anywhere but these hosts\: api.example.com exactly, or .example.com for it and its subdomains; repeat for more. Every target is checked before anything is sent]:HOST:_default' \
|
|
865
|
+
'--max-requests=[Refuse a run that would send more requests than this\: -n above it, or -z without a --rate that bounds it]:N:_default' \
|
|
866
|
+
'--max-rate=[Refuse a --rate above this, and a run with no --rate at all, which sends as fast as the target answers]:PER_SECOND:_default' \
|
|
867
|
+
'--max-concurrency=[Refuse a concurrency above this]:N:_default' \
|
|
868
|
+
'*--fail-if=[End with exit code 4 when the run crosses this, for CI and scripts\: '\''p99 > 300ms'\'', '\''errors > 1%'\''; repeat for more. The report is still printed. (pepe ping has --slo for the same.)]:CONDITION:_default' \
|
|
869
|
+
'--metrics=[Serve the live numbers for Prometheus at http\://ADDR/metrics while the run goes, e.g. \:9100 or 127.0.0.1\:9100, so a soak run or a long ping shows up in Grafana next to the server'\''s own]:ADDR:_default' \
|
|
870
|
+
'--config=[Read settings from this file instead of ./pepe.toml; flags on the command line win over it]:FILE:_files' \
|
|
871
|
+
'--write-config=[Write the settings as they stand to this file, as a pepe.toml, and exit]:FILE:_files' \
|
|
872
|
+
'(--config)--load=[Run a test saved on the setup screen (ctrl-s)\: ./.pepe/tests/NAME.toml; flags on the command line win over it]:NAME:_default' \
|
|
873
|
+
'--keep=[Keep the settings as they stand as a saved test, ./.pepe/tests/NAME.toml, then run. With --load and no NAME, the loaded test is updated in place; with another NAME, it'\''s copied]::NAME:_default' \
|
|
874
|
+
'-c+[Number of concurrent requests at a time]:CONCURRENCY:_default' \
|
|
875
|
+
'--concurrency=[Number of concurrent requests at a time]:CONCURRENCY:_default' \
|
|
876
|
+
'-u+[User-Agent string, default is pepe/{version}]:USER_AGENT:_default' \
|
|
877
|
+
'--user-agent=[User-Agent string, default is pepe/{version}]:USER_AGENT:_default' \
|
|
878
|
+
'-h[Print help]' \
|
|
879
|
+
'--help[Print help]' \
|
|
880
|
+
'-k[Accept invalid TLS certificates (self-signed, expired, wrong host)]' \
|
|
881
|
+
'--insecure[Accept invalid TLS certificates (self-signed, expired, wrong host)]' \
|
|
882
|
+
'--disable-compression[Disable HTTP compression, e.g. gzip]' \
|
|
883
|
+
'--disable-keepalive[Disable HTTP keepalive, e.g. Connection\: close]' \
|
|
884
|
+
'--disable-redirects[Prevent http redirects]' \
|
|
885
|
+
'--json[Output results in JSON format]' \
|
|
886
|
+
'--dry-run[Say what would be sent, to where and how much, and send nothing; as JSON with --json]' \
|
|
887
|
+
'-i[Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)]' \
|
|
888
|
+
'--setup[Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)]' \
|
|
889
|
+
'--record[Keep the run'\''s report under its saved test when it ends, as ./.pepe/runs/NAME/<moment>.json; the run has to be a saved test (--load NAME, or --keep NAME)]' \
|
|
890
|
+
":: :_pepe__subcmd__slack_commands" \
|
|
891
|
+
"*::: :->slack" \
|
|
892
|
+
&& ret=0
|
|
893
|
+
|
|
894
|
+
case $state in
|
|
895
|
+
(slack)
|
|
896
|
+
words=($line[1] "${words[@]}")
|
|
897
|
+
(( CURRENT += 1 ))
|
|
898
|
+
curcontext="${curcontext%:*:*}:pepe-slack-command-$line[1]:"
|
|
899
|
+
case $line[1] in
|
|
900
|
+
(connect)
|
|
901
|
+
_arguments "${_arguments_options[@]}" : \
|
|
902
|
+
'--token=[The bot token (xoxb-…), instead of asking for it]:TOKEN:_default' \
|
|
903
|
+
'--channel=[The channel, instead of asking which]:CHANNEL:_default' \
|
|
904
|
+
'-n+[Number of requests to perform]:NUMBER:_default' \
|
|
905
|
+
'--number=[Number of requests to perform]:NUMBER:_default' \
|
|
906
|
+
'-z+[Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)]:DURATION:_default' \
|
|
907
|
+
'--duration=[Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)]:DURATION:_default' \
|
|
908
|
+
'-m+[HTTP method, e.g. GET, POST, PUT, DELETE]:METHOD:_default' \
|
|
909
|
+
'--method=[HTTP method, e.g. GET, POST, PUT, DELETE]:METHOD:_default' \
|
|
910
|
+
'*-H+[HTTP headers, e.g. -H '\''Accept\: application/json'\'']:HEADERS:_default' \
|
|
911
|
+
'*--headers=[HTTP headers, e.g. -H '\''Accept\: application/json'\'']:HEADERS:_default' \
|
|
912
|
+
'-t+[Time in seconds to wait for a response]:TIMEOUT:_default' \
|
|
913
|
+
'--timeout=[Time in seconds to wait for a response]:TIMEOUT:_default' \
|
|
914
|
+
'--warmup=[Send for this long before measuring, e.g. 5s\: connections open, caches fill and JITs settle without counting against the run]:TIME:_default' \
|
|
915
|
+
'--threads=[Threads sending requests (default 1), or "auto" to add one whenever those sending are all busy. One sends 100k requests a second or more; the dashboard says when it is the limit]:N|auto:_default' \
|
|
916
|
+
'--rate=[Start this many requests a second, spread evenly, instead of as many as the concurrency allows; -c is then the most in flight at once, and pepe says when it holds the rate back]:PER_SECOND:_default' \
|
|
917
|
+
'-d+[HTTP request body]:BODY:_default' \
|
|
918
|
+
'--body=[HTTP request body]:BODY:_default' \
|
|
919
|
+
'-p+[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
|
|
920
|
+
'--proxy=[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
|
|
921
|
+
'--trace-header=[Response header holding the request id to show for the slowest requests and in the inspector, so they can be found in the server'\''s logs; without it, X-Request-Id, traceparent, CF-Ray, X-Amzn-Trace-Id and other common ones are looked for]:NAME:_default' \
|
|
922
|
+
'--vars=[Fill the {{holes}} in the URL, headers and body from this CSV file, whose first line names them\: each request takes the next row, and the rows go round again. In a flow, each chain starts with the next row'\''s values]:FILE:_files' \
|
|
923
|
+
'*--webhook=[Send the run'\''s verdict to this URL when it ends\: a Slack, Discord, Teams or Google Chat webhook gets a message laid out for it, anything else the JSON report; repeat for more. \${NAME} is taken from the environment. A \[\[webhook\]\] table in pepe.toml says more]:URL:_default' \
|
|
924
|
+
'--webhook-on=[When the --webhook URLs are sent\: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default]:EVENTS:_default' \
|
|
925
|
+
'--slack=[Keep a Slack message up to date as the run goes\: posted at the start, edited with the numbers, anomalies in its thread, the verdict at the end. --slack alone posts in the channel \`pepe slack connect\` kept; --slack=#channel elsewhere]::CHANNEL:_default' \
|
|
926
|
+
'--snapshot=[Write the JSON report so far to this file every minute while the run goes, and once more when it ends, so a long run'\''s numbers survive a crash or a lost terminal; it has a minute-by-minute timeline of the whole run]:FILE:_files' \
|
|
927
|
+
'*--allow-host=[Refuse to send anywhere but these hosts\: api.example.com exactly, or .example.com for it and its subdomains; repeat for more. Every target is checked before anything is sent]:HOST:_default' \
|
|
928
|
+
'--max-requests=[Refuse a run that would send more requests than this\: -n above it, or -z without a --rate that bounds it]:N:_default' \
|
|
929
|
+
'--max-rate=[Refuse a --rate above this, and a run with no --rate at all, which sends as fast as the target answers]:PER_SECOND:_default' \
|
|
930
|
+
'--max-concurrency=[Refuse a concurrency above this]:N:_default' \
|
|
931
|
+
'*--fail-if=[End with exit code 4 when the run crosses this, for CI and scripts\: '\''p99 > 300ms'\'', '\''errors > 1%'\''; repeat for more. The report is still printed. (pepe ping has --slo for the same.)]:CONDITION:_default' \
|
|
932
|
+
'--metrics=[Serve the live numbers for Prometheus at http\://ADDR/metrics while the run goes, e.g. \:9100 or 127.0.0.1\:9100, so a soak run or a long ping shows up in Grafana next to the server'\''s own]:ADDR:_default' \
|
|
933
|
+
'--config=[Read settings from this file instead of ./pepe.toml; flags on the command line win over it]:FILE:_files' \
|
|
934
|
+
'--write-config=[Write the settings as they stand to this file, as a pepe.toml, and exit]:FILE:_files' \
|
|
935
|
+
'(--config)--load=[Run a test saved on the setup screen (ctrl-s)\: ./.pepe/tests/NAME.toml; flags on the command line win over it]:NAME:_default' \
|
|
936
|
+
'--keep=[Keep the settings as they stand as a saved test, ./.pepe/tests/NAME.toml, then run. With --load and no NAME, the loaded test is updated in place; with another NAME, it'\''s copied]::NAME:_default' \
|
|
937
|
+
'-c+[Number of concurrent requests at a time]:CONCURRENCY:_default' \
|
|
938
|
+
'--concurrency=[Number of concurrent requests at a time]:CONCURRENCY:_default' \
|
|
939
|
+
'-u+[User-Agent string, default is pepe/{version}]:USER_AGENT:_default' \
|
|
940
|
+
'--user-agent=[User-Agent string, default is pepe/{version}]:USER_AGENT:_default' \
|
|
941
|
+
'-h[Print help]' \
|
|
942
|
+
'--help[Print help]' \
|
|
943
|
+
'-k[Accept invalid TLS certificates (self-signed, expired, wrong host)]' \
|
|
944
|
+
'--insecure[Accept invalid TLS certificates (self-signed, expired, wrong host)]' \
|
|
945
|
+
'--disable-compression[Disable HTTP compression, e.g. gzip]' \
|
|
946
|
+
'--disable-keepalive[Disable HTTP keepalive, e.g. Connection\: close]' \
|
|
947
|
+
'--disable-redirects[Prevent http redirects]' \
|
|
948
|
+
'--json[Output results in JSON format]' \
|
|
949
|
+
'--dry-run[Say what would be sent, to where and how much, and send nothing; as JSON with --json]' \
|
|
950
|
+
'-i[Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)]' \
|
|
951
|
+
'--setup[Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)]' \
|
|
952
|
+
'--record[Keep the run'\''s report under its saved test when it ends, as ./.pepe/runs/NAME/<moment>.json; the run has to be a saved test (--load NAME, or --keep NAME)]' \
|
|
953
|
+
&& ret=0
|
|
954
|
+
;;
|
|
955
|
+
(status)
|
|
956
|
+
_arguments "${_arguments_options[@]}" : \
|
|
957
|
+
'-n+[Number of requests to perform]:NUMBER:_default' \
|
|
958
|
+
'--number=[Number of requests to perform]:NUMBER:_default' \
|
|
959
|
+
'-z+[Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)]:DURATION:_default' \
|
|
960
|
+
'--duration=[Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)]:DURATION:_default' \
|
|
961
|
+
'-m+[HTTP method, e.g. GET, POST, PUT, DELETE]:METHOD:_default' \
|
|
962
|
+
'--method=[HTTP method, e.g. GET, POST, PUT, DELETE]:METHOD:_default' \
|
|
963
|
+
'*-H+[HTTP headers, e.g. -H '\''Accept\: application/json'\'']:HEADERS:_default' \
|
|
964
|
+
'*--headers=[HTTP headers, e.g. -H '\''Accept\: application/json'\'']:HEADERS:_default' \
|
|
965
|
+
'-t+[Time in seconds to wait for a response]:TIMEOUT:_default' \
|
|
966
|
+
'--timeout=[Time in seconds to wait for a response]:TIMEOUT:_default' \
|
|
967
|
+
'--warmup=[Send for this long before measuring, e.g. 5s\: connections open, caches fill and JITs settle without counting against the run]:TIME:_default' \
|
|
968
|
+
'--threads=[Threads sending requests (default 1), or "auto" to add one whenever those sending are all busy. One sends 100k requests a second or more; the dashboard says when it is the limit]:N|auto:_default' \
|
|
969
|
+
'--rate=[Start this many requests a second, spread evenly, instead of as many as the concurrency allows; -c is then the most in flight at once, and pepe says when it holds the rate back]:PER_SECOND:_default' \
|
|
970
|
+
'-d+[HTTP request body]:BODY:_default' \
|
|
971
|
+
'--body=[HTTP request body]:BODY:_default' \
|
|
972
|
+
'-p+[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
|
|
973
|
+
'--proxy=[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
|
|
974
|
+
'--trace-header=[Response header holding the request id to show for the slowest requests and in the inspector, so they can be found in the server'\''s logs; without it, X-Request-Id, traceparent, CF-Ray, X-Amzn-Trace-Id and other common ones are looked for]:NAME:_default' \
|
|
975
|
+
'--vars=[Fill the {{holes}} in the URL, headers and body from this CSV file, whose first line names them\: each request takes the next row, and the rows go round again. In a flow, each chain starts with the next row'\''s values]:FILE:_files' \
|
|
976
|
+
'*--webhook=[Send the run'\''s verdict to this URL when it ends\: a Slack, Discord, Teams or Google Chat webhook gets a message laid out for it, anything else the JSON report; repeat for more. \${NAME} is taken from the environment. A \[\[webhook\]\] table in pepe.toml says more]:URL:_default' \
|
|
977
|
+
'--webhook-on=[When the --webhook URLs are sent\: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default]:EVENTS:_default' \
|
|
978
|
+
'--slack=[Keep a Slack message up to date as the run goes\: posted at the start, edited with the numbers, anomalies in its thread, the verdict at the end. --slack alone posts in the channel \`pepe slack connect\` kept; --slack=#channel elsewhere]::CHANNEL:_default' \
|
|
979
|
+
'--snapshot=[Write the JSON report so far to this file every minute while the run goes, and once more when it ends, so a long run'\''s numbers survive a crash or a lost terminal; it has a minute-by-minute timeline of the whole run]:FILE:_files' \
|
|
980
|
+
'*--allow-host=[Refuse to send anywhere but these hosts\: api.example.com exactly, or .example.com for it and its subdomains; repeat for more. Every target is checked before anything is sent]:HOST:_default' \
|
|
981
|
+
'--max-requests=[Refuse a run that would send more requests than this\: -n above it, or -z without a --rate that bounds it]:N:_default' \
|
|
982
|
+
'--max-rate=[Refuse a --rate above this, and a run with no --rate at all, which sends as fast as the target answers]:PER_SECOND:_default' \
|
|
983
|
+
'--max-concurrency=[Refuse a concurrency above this]:N:_default' \
|
|
984
|
+
'*--fail-if=[End with exit code 4 when the run crosses this, for CI and scripts\: '\''p99 > 300ms'\'', '\''errors > 1%'\''; repeat for more. The report is still printed. (pepe ping has --slo for the same.)]:CONDITION:_default' \
|
|
985
|
+
'--metrics=[Serve the live numbers for Prometheus at http\://ADDR/metrics while the run goes, e.g. \:9100 or 127.0.0.1\:9100, so a soak run or a long ping shows up in Grafana next to the server'\''s own]:ADDR:_default' \
|
|
986
|
+
'--config=[Read settings from this file instead of ./pepe.toml; flags on the command line win over it]:FILE:_files' \
|
|
987
|
+
'--write-config=[Write the settings as they stand to this file, as a pepe.toml, and exit]:FILE:_files' \
|
|
988
|
+
'(--config)--load=[Run a test saved on the setup screen (ctrl-s)\: ./.pepe/tests/NAME.toml; flags on the command line win over it]:NAME:_default' \
|
|
989
|
+
'--keep=[Keep the settings as they stand as a saved test, ./.pepe/tests/NAME.toml, then run. With --load and no NAME, the loaded test is updated in place; with another NAME, it'\''s copied]::NAME:_default' \
|
|
990
|
+
'-c+[Number of concurrent requests at a time]:CONCURRENCY:_default' \
|
|
991
|
+
'--concurrency=[Number of concurrent requests at a time]:CONCURRENCY:_default' \
|
|
992
|
+
'-u+[User-Agent string, default is pepe/{version}]:USER_AGENT:_default' \
|
|
993
|
+
'--user-agent=[User-Agent string, default is pepe/{version}]:USER_AGENT:_default' \
|
|
994
|
+
'-h[Print help]' \
|
|
995
|
+
'--help[Print help]' \
|
|
996
|
+
'-k[Accept invalid TLS certificates (self-signed, expired, wrong host)]' \
|
|
997
|
+
'--insecure[Accept invalid TLS certificates (self-signed, expired, wrong host)]' \
|
|
998
|
+
'--disable-compression[Disable HTTP compression, e.g. gzip]' \
|
|
999
|
+
'--disable-keepalive[Disable HTTP keepalive, e.g. Connection\: close]' \
|
|
1000
|
+
'--disable-redirects[Prevent http redirects]' \
|
|
1001
|
+
'--json[Output results in JSON format]' \
|
|
1002
|
+
'--dry-run[Say what would be sent, to where and how much, and send nothing; as JSON with --json]' \
|
|
1003
|
+
'-i[Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)]' \
|
|
1004
|
+
'--setup[Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)]' \
|
|
1005
|
+
'--record[Keep the run'\''s report under its saved test when it ends, as ./.pepe/runs/NAME/<moment>.json; the run has to be a saved test (--load NAME, or --keep NAME)]' \
|
|
1006
|
+
&& ret=0
|
|
1007
|
+
;;
|
|
1008
|
+
(test)
|
|
1009
|
+
_arguments "${_arguments_options[@]}" : \
|
|
1010
|
+
'-n+[Number of requests to perform]:NUMBER:_default' \
|
|
1011
|
+
'--number=[Number of requests to perform]:NUMBER:_default' \
|
|
1012
|
+
'-z+[Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)]:DURATION:_default' \
|
|
1013
|
+
'--duration=[Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)]:DURATION:_default' \
|
|
1014
|
+
'-m+[HTTP method, e.g. GET, POST, PUT, DELETE]:METHOD:_default' \
|
|
1015
|
+
'--method=[HTTP method, e.g. GET, POST, PUT, DELETE]:METHOD:_default' \
|
|
1016
|
+
'*-H+[HTTP headers, e.g. -H '\''Accept\: application/json'\'']:HEADERS:_default' \
|
|
1017
|
+
'*--headers=[HTTP headers, e.g. -H '\''Accept\: application/json'\'']:HEADERS:_default' \
|
|
1018
|
+
'-t+[Time in seconds to wait for a response]:TIMEOUT:_default' \
|
|
1019
|
+
'--timeout=[Time in seconds to wait for a response]:TIMEOUT:_default' \
|
|
1020
|
+
'--warmup=[Send for this long before measuring, e.g. 5s\: connections open, caches fill and JITs settle without counting against the run]:TIME:_default' \
|
|
1021
|
+
'--threads=[Threads sending requests (default 1), or "auto" to add one whenever those sending are all busy. One sends 100k requests a second or more; the dashboard says when it is the limit]:N|auto:_default' \
|
|
1022
|
+
'--rate=[Start this many requests a second, spread evenly, instead of as many as the concurrency allows; -c is then the most in flight at once, and pepe says when it holds the rate back]:PER_SECOND:_default' \
|
|
1023
|
+
'-d+[HTTP request body]:BODY:_default' \
|
|
1024
|
+
'--body=[HTTP request body]:BODY:_default' \
|
|
1025
|
+
'-p+[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
|
|
1026
|
+
'--proxy=[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
|
|
1027
|
+
'--trace-header=[Response header holding the request id to show for the slowest requests and in the inspector, so they can be found in the server'\''s logs; without it, X-Request-Id, traceparent, CF-Ray, X-Amzn-Trace-Id and other common ones are looked for]:NAME:_default' \
|
|
1028
|
+
'--vars=[Fill the {{holes}} in the URL, headers and body from this CSV file, whose first line names them\: each request takes the next row, and the rows go round again. In a flow, each chain starts with the next row'\''s values]:FILE:_files' \
|
|
1029
|
+
'*--webhook=[Send the run'\''s verdict to this URL when it ends\: a Slack, Discord, Teams or Google Chat webhook gets a message laid out for it, anything else the JSON report; repeat for more. \${NAME} is taken from the environment. A \[\[webhook\]\] table in pepe.toml says more]:URL:_default' \
|
|
1030
|
+
'--webhook-on=[When the --webhook URLs are sent\: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default]:EVENTS:_default' \
|
|
1031
|
+
'--slack=[Keep a Slack message up to date as the run goes\: posted at the start, edited with the numbers, anomalies in its thread, the verdict at the end. --slack alone posts in the channel \`pepe slack connect\` kept; --slack=#channel elsewhere]::CHANNEL:_default' \
|
|
1032
|
+
'--snapshot=[Write the JSON report so far to this file every minute while the run goes, and once more when it ends, so a long run'\''s numbers survive a crash or a lost terminal; it has a minute-by-minute timeline of the whole run]:FILE:_files' \
|
|
1033
|
+
'*--allow-host=[Refuse to send anywhere but these hosts\: api.example.com exactly, or .example.com for it and its subdomains; repeat for more. Every target is checked before anything is sent]:HOST:_default' \
|
|
1034
|
+
'--max-requests=[Refuse a run that would send more requests than this\: -n above it, or -z without a --rate that bounds it]:N:_default' \
|
|
1035
|
+
'--max-rate=[Refuse a --rate above this, and a run with no --rate at all, which sends as fast as the target answers]:PER_SECOND:_default' \
|
|
1036
|
+
'--max-concurrency=[Refuse a concurrency above this]:N:_default' \
|
|
1037
|
+
'*--fail-if=[End with exit code 4 when the run crosses this, for CI and scripts\: '\''p99 > 300ms'\'', '\''errors > 1%'\''; repeat for more. The report is still printed. (pepe ping has --slo for the same.)]:CONDITION:_default' \
|
|
1038
|
+
'--metrics=[Serve the live numbers for Prometheus at http\://ADDR/metrics while the run goes, e.g. \:9100 or 127.0.0.1\:9100, so a soak run or a long ping shows up in Grafana next to the server'\''s own]:ADDR:_default' \
|
|
1039
|
+
'--config=[Read settings from this file instead of ./pepe.toml; flags on the command line win over it]:FILE:_files' \
|
|
1040
|
+
'--write-config=[Write the settings as they stand to this file, as a pepe.toml, and exit]:FILE:_files' \
|
|
1041
|
+
'(--config)--load=[Run a test saved on the setup screen (ctrl-s)\: ./.pepe/tests/NAME.toml; flags on the command line win over it]:NAME:_default' \
|
|
1042
|
+
'--keep=[Keep the settings as they stand as a saved test, ./.pepe/tests/NAME.toml, then run. With --load and no NAME, the loaded test is updated in place; with another NAME, it'\''s copied]::NAME:_default' \
|
|
1043
|
+
'-c+[Number of concurrent requests at a time]:CONCURRENCY:_default' \
|
|
1044
|
+
'--concurrency=[Number of concurrent requests at a time]:CONCURRENCY:_default' \
|
|
1045
|
+
'-u+[User-Agent string, default is pepe/{version}]:USER_AGENT:_default' \
|
|
1046
|
+
'--user-agent=[User-Agent string, default is pepe/{version}]:USER_AGENT:_default' \
|
|
1047
|
+
'-h[Print help]' \
|
|
1048
|
+
'--help[Print help]' \
|
|
1049
|
+
'-k[Accept invalid TLS certificates (self-signed, expired, wrong host)]' \
|
|
1050
|
+
'--insecure[Accept invalid TLS certificates (self-signed, expired, wrong host)]' \
|
|
1051
|
+
'--disable-compression[Disable HTTP compression, e.g. gzip]' \
|
|
1052
|
+
'--disable-keepalive[Disable HTTP keepalive, e.g. Connection\: close]' \
|
|
1053
|
+
'--disable-redirects[Prevent http redirects]' \
|
|
1054
|
+
'--json[Output results in JSON format]' \
|
|
1055
|
+
'--dry-run[Say what would be sent, to where and how much, and send nothing; as JSON with --json]' \
|
|
1056
|
+
'-i[Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)]' \
|
|
1057
|
+
'--setup[Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)]' \
|
|
1058
|
+
'--record[Keep the run'\''s report under its saved test when it ends, as ./.pepe/runs/NAME/<moment>.json; the run has to be a saved test (--load NAME, or --keep NAME)]' \
|
|
1059
|
+
'::channel -- Where, if not the connected channel:_default' \
|
|
1060
|
+
&& ret=0
|
|
1061
|
+
;;
|
|
1062
|
+
(forget)
|
|
1063
|
+
_arguments "${_arguments_options[@]}" : \
|
|
1064
|
+
'-n+[Number of requests to perform]:NUMBER:_default' \
|
|
1065
|
+
'--number=[Number of requests to perform]:NUMBER:_default' \
|
|
1066
|
+
'-z+[Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)]:DURATION:_default' \
|
|
1067
|
+
'--duration=[Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)]:DURATION:_default' \
|
|
1068
|
+
'-m+[HTTP method, e.g. GET, POST, PUT, DELETE]:METHOD:_default' \
|
|
1069
|
+
'--method=[HTTP method, e.g. GET, POST, PUT, DELETE]:METHOD:_default' \
|
|
1070
|
+
'*-H+[HTTP headers, e.g. -H '\''Accept\: application/json'\'']:HEADERS:_default' \
|
|
1071
|
+
'*--headers=[HTTP headers, e.g. -H '\''Accept\: application/json'\'']:HEADERS:_default' \
|
|
1072
|
+
'-t+[Time in seconds to wait for a response]:TIMEOUT:_default' \
|
|
1073
|
+
'--timeout=[Time in seconds to wait for a response]:TIMEOUT:_default' \
|
|
1074
|
+
'--warmup=[Send for this long before measuring, e.g. 5s\: connections open, caches fill and JITs settle without counting against the run]:TIME:_default' \
|
|
1075
|
+
'--threads=[Threads sending requests (default 1), or "auto" to add one whenever those sending are all busy. One sends 100k requests a second or more; the dashboard says when it is the limit]:N|auto:_default' \
|
|
1076
|
+
'--rate=[Start this many requests a second, spread evenly, instead of as many as the concurrency allows; -c is then the most in flight at once, and pepe says when it holds the rate back]:PER_SECOND:_default' \
|
|
1077
|
+
'-d+[HTTP request body]:BODY:_default' \
|
|
1078
|
+
'--body=[HTTP request body]:BODY:_default' \
|
|
1079
|
+
'-p+[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
|
|
1080
|
+
'--proxy=[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
|
|
1081
|
+
'--trace-header=[Response header holding the request id to show for the slowest requests and in the inspector, so they can be found in the server'\''s logs; without it, X-Request-Id, traceparent, CF-Ray, X-Amzn-Trace-Id and other common ones are looked for]:NAME:_default' \
|
|
1082
|
+
'--vars=[Fill the {{holes}} in the URL, headers and body from this CSV file, whose first line names them\: each request takes the next row, and the rows go round again. In a flow, each chain starts with the next row'\''s values]:FILE:_files' \
|
|
1083
|
+
'*--webhook=[Send the run'\''s verdict to this URL when it ends\: a Slack, Discord, Teams or Google Chat webhook gets a message laid out for it, anything else the JSON report; repeat for more. \${NAME} is taken from the environment. A \[\[webhook\]\] table in pepe.toml says more]:URL:_default' \
|
|
1084
|
+
'--webhook-on=[When the --webhook URLs are sent\: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default]:EVENTS:_default' \
|
|
1085
|
+
'--slack=[Keep a Slack message up to date as the run goes\: posted at the start, edited with the numbers, anomalies in its thread, the verdict at the end. --slack alone posts in the channel \`pepe slack connect\` kept; --slack=#channel elsewhere]::CHANNEL:_default' \
|
|
1086
|
+
'--snapshot=[Write the JSON report so far to this file every minute while the run goes, and once more when it ends, so a long run'\''s numbers survive a crash or a lost terminal; it has a minute-by-minute timeline of the whole run]:FILE:_files' \
|
|
1087
|
+
'*--allow-host=[Refuse to send anywhere but these hosts\: api.example.com exactly, or .example.com for it and its subdomains; repeat for more. Every target is checked before anything is sent]:HOST:_default' \
|
|
1088
|
+
'--max-requests=[Refuse a run that would send more requests than this\: -n above it, or -z without a --rate that bounds it]:N:_default' \
|
|
1089
|
+
'--max-rate=[Refuse a --rate above this, and a run with no --rate at all, which sends as fast as the target answers]:PER_SECOND:_default' \
|
|
1090
|
+
'--max-concurrency=[Refuse a concurrency above this]:N:_default' \
|
|
1091
|
+
'*--fail-if=[End with exit code 4 when the run crosses this, for CI and scripts\: '\''p99 > 300ms'\'', '\''errors > 1%'\''; repeat for more. The report is still printed. (pepe ping has --slo for the same.)]:CONDITION:_default' \
|
|
1092
|
+
'--metrics=[Serve the live numbers for Prometheus at http\://ADDR/metrics while the run goes, e.g. \:9100 or 127.0.0.1\:9100, so a soak run or a long ping shows up in Grafana next to the server'\''s own]:ADDR:_default' \
|
|
1093
|
+
'--config=[Read settings from this file instead of ./pepe.toml; flags on the command line win over it]:FILE:_files' \
|
|
1094
|
+
'--write-config=[Write the settings as they stand to this file, as a pepe.toml, and exit]:FILE:_files' \
|
|
1095
|
+
'(--config)--load=[Run a test saved on the setup screen (ctrl-s)\: ./.pepe/tests/NAME.toml; flags on the command line win over it]:NAME:_default' \
|
|
1096
|
+
'--keep=[Keep the settings as they stand as a saved test, ./.pepe/tests/NAME.toml, then run. With --load and no NAME, the loaded test is updated in place; with another NAME, it'\''s copied]::NAME:_default' \
|
|
1097
|
+
'-c+[Number of concurrent requests at a time]:CONCURRENCY:_default' \
|
|
1098
|
+
'--concurrency=[Number of concurrent requests at a time]:CONCURRENCY:_default' \
|
|
1099
|
+
'-u+[User-Agent string, default is pepe/{version}]:USER_AGENT:_default' \
|
|
1100
|
+
'--user-agent=[User-Agent string, default is pepe/{version}]:USER_AGENT:_default' \
|
|
1101
|
+
'-h[Print help]' \
|
|
1102
|
+
'--help[Print help]' \
|
|
1103
|
+
'-k[Accept invalid TLS certificates (self-signed, expired, wrong host)]' \
|
|
1104
|
+
'--insecure[Accept invalid TLS certificates (self-signed, expired, wrong host)]' \
|
|
1105
|
+
'--disable-compression[Disable HTTP compression, e.g. gzip]' \
|
|
1106
|
+
'--disable-keepalive[Disable HTTP keepalive, e.g. Connection\: close]' \
|
|
1107
|
+
'--disable-redirects[Prevent http redirects]' \
|
|
1108
|
+
'--json[Output results in JSON format]' \
|
|
1109
|
+
'--dry-run[Say what would be sent, to where and how much, and send nothing; as JSON with --json]' \
|
|
1110
|
+
'-i[Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)]' \
|
|
1111
|
+
'--setup[Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)]' \
|
|
1112
|
+
'--record[Keep the run'\''s report under its saved test when it ends, as ./.pepe/runs/NAME/<moment>.json; the run has to be a saved test (--load NAME, or --keep NAME)]' \
|
|
1113
|
+
&& ret=0
|
|
1114
|
+
;;
|
|
1115
|
+
(manifest)
|
|
1116
|
+
_arguments "${_arguments_options[@]}" : \
|
|
1117
|
+
'-n+[Number of requests to perform]:NUMBER:_default' \
|
|
1118
|
+
'--number=[Number of requests to perform]:NUMBER:_default' \
|
|
1119
|
+
'-z+[Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)]:DURATION:_default' \
|
|
1120
|
+
'--duration=[Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)]:DURATION:_default' \
|
|
1121
|
+
'-m+[HTTP method, e.g. GET, POST, PUT, DELETE]:METHOD:_default' \
|
|
1122
|
+
'--method=[HTTP method, e.g. GET, POST, PUT, DELETE]:METHOD:_default' \
|
|
1123
|
+
'*-H+[HTTP headers, e.g. -H '\''Accept\: application/json'\'']:HEADERS:_default' \
|
|
1124
|
+
'*--headers=[HTTP headers, e.g. -H '\''Accept\: application/json'\'']:HEADERS:_default' \
|
|
1125
|
+
'-t+[Time in seconds to wait for a response]:TIMEOUT:_default' \
|
|
1126
|
+
'--timeout=[Time in seconds to wait for a response]:TIMEOUT:_default' \
|
|
1127
|
+
'--warmup=[Send for this long before measuring, e.g. 5s\: connections open, caches fill and JITs settle without counting against the run]:TIME:_default' \
|
|
1128
|
+
'--threads=[Threads sending requests (default 1), or "auto" to add one whenever those sending are all busy. One sends 100k requests a second or more; the dashboard says when it is the limit]:N|auto:_default' \
|
|
1129
|
+
'--rate=[Start this many requests a second, spread evenly, instead of as many as the concurrency allows; -c is then the most in flight at once, and pepe says when it holds the rate back]:PER_SECOND:_default' \
|
|
1130
|
+
'-d+[HTTP request body]:BODY:_default' \
|
|
1131
|
+
'--body=[HTTP request body]:BODY:_default' \
|
|
1132
|
+
'-p+[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
|
|
1133
|
+
'--proxy=[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
|
|
1134
|
+
'--trace-header=[Response header holding the request id to show for the slowest requests and in the inspector, so they can be found in the server'\''s logs; without it, X-Request-Id, traceparent, CF-Ray, X-Amzn-Trace-Id and other common ones are looked for]:NAME:_default' \
|
|
1135
|
+
'--vars=[Fill the {{holes}} in the URL, headers and body from this CSV file, whose first line names them\: each request takes the next row, and the rows go round again. In a flow, each chain starts with the next row'\''s values]:FILE:_files' \
|
|
1136
|
+
'*--webhook=[Send the run'\''s verdict to this URL when it ends\: a Slack, Discord, Teams or Google Chat webhook gets a message laid out for it, anything else the JSON report; repeat for more. \${NAME} is taken from the environment. A \[\[webhook\]\] table in pepe.toml says more]:URL:_default' \
|
|
1137
|
+
'--webhook-on=[When the --webhook URLs are sent\: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default]:EVENTS:_default' \
|
|
1138
|
+
'--slack=[Keep a Slack message up to date as the run goes\: posted at the start, edited with the numbers, anomalies in its thread, the verdict at the end. --slack alone posts in the channel \`pepe slack connect\` kept; --slack=#channel elsewhere]::CHANNEL:_default' \
|
|
1139
|
+
'--snapshot=[Write the JSON report so far to this file every minute while the run goes, and once more when it ends, so a long run'\''s numbers survive a crash or a lost terminal; it has a minute-by-minute timeline of the whole run]:FILE:_files' \
|
|
1140
|
+
'*--allow-host=[Refuse to send anywhere but these hosts\: api.example.com exactly, or .example.com for it and its subdomains; repeat for more. Every target is checked before anything is sent]:HOST:_default' \
|
|
1141
|
+
'--max-requests=[Refuse a run that would send more requests than this\: -n above it, or -z without a --rate that bounds it]:N:_default' \
|
|
1142
|
+
'--max-rate=[Refuse a --rate above this, and a run with no --rate at all, which sends as fast as the target answers]:PER_SECOND:_default' \
|
|
1143
|
+
'--max-concurrency=[Refuse a concurrency above this]:N:_default' \
|
|
1144
|
+
'*--fail-if=[End with exit code 4 when the run crosses this, for CI and scripts\: '\''p99 > 300ms'\'', '\''errors > 1%'\''; repeat for more. The report is still printed. (pepe ping has --slo for the same.)]:CONDITION:_default' \
|
|
1145
|
+
'--metrics=[Serve the live numbers for Prometheus at http\://ADDR/metrics while the run goes, e.g. \:9100 or 127.0.0.1\:9100, so a soak run or a long ping shows up in Grafana next to the server'\''s own]:ADDR:_default' \
|
|
1146
|
+
'--config=[Read settings from this file instead of ./pepe.toml; flags on the command line win over it]:FILE:_files' \
|
|
1147
|
+
'--write-config=[Write the settings as they stand to this file, as a pepe.toml, and exit]:FILE:_files' \
|
|
1148
|
+
'(--config)--load=[Run a test saved on the setup screen (ctrl-s)\: ./.pepe/tests/NAME.toml; flags on the command line win over it]:NAME:_default' \
|
|
1149
|
+
'--keep=[Keep the settings as they stand as a saved test, ./.pepe/tests/NAME.toml, then run. With --load and no NAME, the loaded test is updated in place; with another NAME, it'\''s copied]::NAME:_default' \
|
|
1150
|
+
'-c+[Number of concurrent requests at a time]:CONCURRENCY:_default' \
|
|
1151
|
+
'--concurrency=[Number of concurrent requests at a time]:CONCURRENCY:_default' \
|
|
1152
|
+
'-u+[User-Agent string, default is pepe/{version}]:USER_AGENT:_default' \
|
|
1153
|
+
'--user-agent=[User-Agent string, default is pepe/{version}]:USER_AGENT:_default' \
|
|
1154
|
+
'-h[Print help]' \
|
|
1155
|
+
'--help[Print help]' \
|
|
1156
|
+
'-k[Accept invalid TLS certificates (self-signed, expired, wrong host)]' \
|
|
1157
|
+
'--insecure[Accept invalid TLS certificates (self-signed, expired, wrong host)]' \
|
|
1158
|
+
'--disable-compression[Disable HTTP compression, e.g. gzip]' \
|
|
1159
|
+
'--disable-keepalive[Disable HTTP keepalive, e.g. Connection\: close]' \
|
|
1160
|
+
'--disable-redirects[Prevent http redirects]' \
|
|
1161
|
+
'--json[Output results in JSON format]' \
|
|
1162
|
+
'--dry-run[Say what would be sent, to where and how much, and send nothing; as JSON with --json]' \
|
|
1163
|
+
'-i[Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)]' \
|
|
1164
|
+
'--setup[Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)]' \
|
|
1165
|
+
'--record[Keep the run'\''s report under its saved test when it ends, as ./.pepe/runs/NAME/<moment>.json; the run has to be a saved test (--load NAME, or --keep NAME)]' \
|
|
1166
|
+
&& ret=0
|
|
1167
|
+
;;
|
|
1168
|
+
(help)
|
|
1169
|
+
_arguments "${_arguments_options[@]}" : \
|
|
1170
|
+
":: :_pepe__subcmd__slack__subcmd__help_commands" \
|
|
1171
|
+
"*::: :->help" \
|
|
1172
|
+
&& ret=0
|
|
1173
|
+
|
|
1174
|
+
case $state in
|
|
1175
|
+
(help)
|
|
1176
|
+
words=($line[1] "${words[@]}")
|
|
1177
|
+
(( CURRENT += 1 ))
|
|
1178
|
+
curcontext="${curcontext%:*:*}:pepe-slack-help-command-$line[1]:"
|
|
1179
|
+
case $line[1] in
|
|
1180
|
+
(connect)
|
|
1181
|
+
_arguments "${_arguments_options[@]}" : \
|
|
1182
|
+
&& ret=0
|
|
1183
|
+
;;
|
|
1184
|
+
(status)
|
|
1185
|
+
_arguments "${_arguments_options[@]}" : \
|
|
1186
|
+
&& ret=0
|
|
1187
|
+
;;
|
|
1188
|
+
(test)
|
|
1189
|
+
_arguments "${_arguments_options[@]}" : \
|
|
1190
|
+
&& ret=0
|
|
1191
|
+
;;
|
|
1192
|
+
(forget)
|
|
1193
|
+
_arguments "${_arguments_options[@]}" : \
|
|
1194
|
+
&& ret=0
|
|
1195
|
+
;;
|
|
1196
|
+
(manifest)
|
|
1197
|
+
_arguments "${_arguments_options[@]}" : \
|
|
1198
|
+
&& ret=0
|
|
1199
|
+
;;
|
|
1200
|
+
(help)
|
|
1201
|
+
_arguments "${_arguments_options[@]}" : \
|
|
1202
|
+
&& ret=0
|
|
1203
|
+
;;
|
|
1204
|
+
esac
|
|
1205
|
+
;;
|
|
1206
|
+
esac
|
|
1207
|
+
;;
|
|
1208
|
+
esac
|
|
1209
|
+
;;
|
|
1210
|
+
esac
|
|
1211
|
+
;;
|
|
783
1212
|
(help)
|
|
784
1213
|
_arguments "${_arguments_options[@]}" : \
|
|
785
1214
|
":: :_pepe__subcmd__help_commands" \
|
|
@@ -844,6 +1273,42 @@ _arguments "${_arguments_options[@]}" : \
|
|
|
844
1273
|
_arguments "${_arguments_options[@]}" : \
|
|
845
1274
|
&& ret=0
|
|
846
1275
|
;;
|
|
1276
|
+
(slack)
|
|
1277
|
+
_arguments "${_arguments_options[@]}" : \
|
|
1278
|
+
":: :_pepe__subcmd__help__subcmd__slack_commands" \
|
|
1279
|
+
"*::: :->slack" \
|
|
1280
|
+
&& ret=0
|
|
1281
|
+
|
|
1282
|
+
case $state in
|
|
1283
|
+
(slack)
|
|
1284
|
+
words=($line[1] "${words[@]}")
|
|
1285
|
+
(( CURRENT += 1 ))
|
|
1286
|
+
curcontext="${curcontext%:*:*}:pepe-help-slack-command-$line[1]:"
|
|
1287
|
+
case $line[1] in
|
|
1288
|
+
(connect)
|
|
1289
|
+
_arguments "${_arguments_options[@]}" : \
|
|
1290
|
+
&& ret=0
|
|
1291
|
+
;;
|
|
1292
|
+
(status)
|
|
1293
|
+
_arguments "${_arguments_options[@]}" : \
|
|
1294
|
+
&& ret=0
|
|
1295
|
+
;;
|
|
1296
|
+
(test)
|
|
1297
|
+
_arguments "${_arguments_options[@]}" : \
|
|
1298
|
+
&& ret=0
|
|
1299
|
+
;;
|
|
1300
|
+
(forget)
|
|
1301
|
+
_arguments "${_arguments_options[@]}" : \
|
|
1302
|
+
&& ret=0
|
|
1303
|
+
;;
|
|
1304
|
+
(manifest)
|
|
1305
|
+
_arguments "${_arguments_options[@]}" : \
|
|
1306
|
+
&& ret=0
|
|
1307
|
+
;;
|
|
1308
|
+
esac
|
|
1309
|
+
;;
|
|
1310
|
+
esac
|
|
1311
|
+
;;
|
|
847
1312
|
(help)
|
|
848
1313
|
_arguments "${_arguments_options[@]}" : \
|
|
849
1314
|
&& ret=0
|
|
@@ -873,6 +1338,7 @@ _pepe_commands() {
|
|
|
873
1338
|
'mcp:Serve pepe'\''s modes as tools for an agent over stdio (the Model Context Protocol); the guardrail flags given here hold for every call' \
|
|
874
1339
|
'self-update:Update pepe to the latest release, or say what'\''s new in it' \
|
|
875
1340
|
'completions:Tab completion for your shell\: print the script, or --install it' \
|
|
1341
|
+
'slack:Connect pepe to Slack from here, so --slack keeps a message there up to date as a run goes' \
|
|
876
1342
|
'help:Print this message or the help of the given subcommand(s)' \
|
|
877
1343
|
)
|
|
878
1344
|
_describe -t commands 'pepe commands' commands "$@"
|
|
@@ -913,6 +1379,7 @@ _pepe__subcmd__help_commands() {
|
|
|
913
1379
|
'mcp:Serve pepe'\''s modes as tools for an agent over stdio (the Model Context Protocol); the guardrail flags given here hold for every call' \
|
|
914
1380
|
'self-update:Update pepe to the latest release, or say what'\''s new in it' \
|
|
915
1381
|
'completions:Tab completion for your shell\: print the script, or --install it' \
|
|
1382
|
+
'slack:Connect pepe to Slack from here, so --slack keeps a message there up to date as a run goes' \
|
|
916
1383
|
'help:Print this message or the help of the given subcommand(s)' \
|
|
917
1384
|
)
|
|
918
1385
|
_describe -t commands 'pepe help commands' commands "$@"
|
|
@@ -987,6 +1454,42 @@ _pepe__subcmd__help__subcmd__self-update_commands() {
|
|
|
987
1454
|
local commands; commands=()
|
|
988
1455
|
_describe -t commands 'pepe help self-update commands' commands "$@"
|
|
989
1456
|
}
|
|
1457
|
+
(( $+functions[_pepe__subcmd__help__subcmd__slack_commands] )) ||
|
|
1458
|
+
_pepe__subcmd__help__subcmd__slack_commands() {
|
|
1459
|
+
local commands; commands=(
|
|
1460
|
+
'connect:Make pepe'\''s Slack app, take its token, pick a channel, post a test (the default)' \
|
|
1461
|
+
'status:What is connected, checked with Slack' \
|
|
1462
|
+
'test:Post a test message' \
|
|
1463
|
+
'forget:Remove the kept token' \
|
|
1464
|
+
'manifest:Print the app'\''s manifest, for Slack'\''s "From a manifest"' \
|
|
1465
|
+
)
|
|
1466
|
+
_describe -t commands 'pepe help slack commands' commands "$@"
|
|
1467
|
+
}
|
|
1468
|
+
(( $+functions[_pepe__subcmd__help__subcmd__slack__subcmd__connect_commands] )) ||
|
|
1469
|
+
_pepe__subcmd__help__subcmd__slack__subcmd__connect_commands() {
|
|
1470
|
+
local commands; commands=()
|
|
1471
|
+
_describe -t commands 'pepe help slack connect commands' commands "$@"
|
|
1472
|
+
}
|
|
1473
|
+
(( $+functions[_pepe__subcmd__help__subcmd__slack__subcmd__forget_commands] )) ||
|
|
1474
|
+
_pepe__subcmd__help__subcmd__slack__subcmd__forget_commands() {
|
|
1475
|
+
local commands; commands=()
|
|
1476
|
+
_describe -t commands 'pepe help slack forget commands' commands "$@"
|
|
1477
|
+
}
|
|
1478
|
+
(( $+functions[_pepe__subcmd__help__subcmd__slack__subcmd__manifest_commands] )) ||
|
|
1479
|
+
_pepe__subcmd__help__subcmd__slack__subcmd__manifest_commands() {
|
|
1480
|
+
local commands; commands=()
|
|
1481
|
+
_describe -t commands 'pepe help slack manifest commands' commands "$@"
|
|
1482
|
+
}
|
|
1483
|
+
(( $+functions[_pepe__subcmd__help__subcmd__slack__subcmd__status_commands] )) ||
|
|
1484
|
+
_pepe__subcmd__help__subcmd__slack__subcmd__status_commands() {
|
|
1485
|
+
local commands; commands=()
|
|
1486
|
+
_describe -t commands 'pepe help slack status commands' commands "$@"
|
|
1487
|
+
}
|
|
1488
|
+
(( $+functions[_pepe__subcmd__help__subcmd__slack__subcmd__test_commands] )) ||
|
|
1489
|
+
_pepe__subcmd__help__subcmd__slack__subcmd__test_commands() {
|
|
1490
|
+
local commands; commands=()
|
|
1491
|
+
_describe -t commands 'pepe help slack test commands' commands "$@"
|
|
1492
|
+
}
|
|
990
1493
|
(( $+functions[_pepe__subcmd__history_commands] )) ||
|
|
991
1494
|
_pepe__subcmd__history_commands() {
|
|
992
1495
|
local commands; commands=()
|
|
@@ -1032,6 +1535,85 @@ _pepe__subcmd__self-update_commands() {
|
|
|
1032
1535
|
local commands; commands=()
|
|
1033
1536
|
_describe -t commands 'pepe self-update commands' commands "$@"
|
|
1034
1537
|
}
|
|
1538
|
+
(( $+functions[_pepe__subcmd__slack_commands] )) ||
|
|
1539
|
+
_pepe__subcmd__slack_commands() {
|
|
1540
|
+
local commands; commands=(
|
|
1541
|
+
'connect:Make pepe'\''s Slack app, take its token, pick a channel, post a test (the default)' \
|
|
1542
|
+
'status:What is connected, checked with Slack' \
|
|
1543
|
+
'test:Post a test message' \
|
|
1544
|
+
'forget:Remove the kept token' \
|
|
1545
|
+
'manifest:Print the app'\''s manifest, for Slack'\''s "From a manifest"' \
|
|
1546
|
+
'help:Print this message or the help of the given subcommand(s)' \
|
|
1547
|
+
)
|
|
1548
|
+
_describe -t commands 'pepe slack commands' commands "$@"
|
|
1549
|
+
}
|
|
1550
|
+
(( $+functions[_pepe__subcmd__slack__subcmd__connect_commands] )) ||
|
|
1551
|
+
_pepe__subcmd__slack__subcmd__connect_commands() {
|
|
1552
|
+
local commands; commands=()
|
|
1553
|
+
_describe -t commands 'pepe slack connect commands' commands "$@"
|
|
1554
|
+
}
|
|
1555
|
+
(( $+functions[_pepe__subcmd__slack__subcmd__forget_commands] )) ||
|
|
1556
|
+
_pepe__subcmd__slack__subcmd__forget_commands() {
|
|
1557
|
+
local commands; commands=()
|
|
1558
|
+
_describe -t commands 'pepe slack forget commands' commands "$@"
|
|
1559
|
+
}
|
|
1560
|
+
(( $+functions[_pepe__subcmd__slack__subcmd__help_commands] )) ||
|
|
1561
|
+
_pepe__subcmd__slack__subcmd__help_commands() {
|
|
1562
|
+
local commands; commands=(
|
|
1563
|
+
'connect:Make pepe'\''s Slack app, take its token, pick a channel, post a test (the default)' \
|
|
1564
|
+
'status:What is connected, checked with Slack' \
|
|
1565
|
+
'test:Post a test message' \
|
|
1566
|
+
'forget:Remove the kept token' \
|
|
1567
|
+
'manifest:Print the app'\''s manifest, for Slack'\''s "From a manifest"' \
|
|
1568
|
+
'help:Print this message or the help of the given subcommand(s)' \
|
|
1569
|
+
)
|
|
1570
|
+
_describe -t commands 'pepe slack help commands' commands "$@"
|
|
1571
|
+
}
|
|
1572
|
+
(( $+functions[_pepe__subcmd__slack__subcmd__help__subcmd__connect_commands] )) ||
|
|
1573
|
+
_pepe__subcmd__slack__subcmd__help__subcmd__connect_commands() {
|
|
1574
|
+
local commands; commands=()
|
|
1575
|
+
_describe -t commands 'pepe slack help connect commands' commands "$@"
|
|
1576
|
+
}
|
|
1577
|
+
(( $+functions[_pepe__subcmd__slack__subcmd__help__subcmd__forget_commands] )) ||
|
|
1578
|
+
_pepe__subcmd__slack__subcmd__help__subcmd__forget_commands() {
|
|
1579
|
+
local commands; commands=()
|
|
1580
|
+
_describe -t commands 'pepe slack help forget commands' commands "$@"
|
|
1581
|
+
}
|
|
1582
|
+
(( $+functions[_pepe__subcmd__slack__subcmd__help__subcmd__help_commands] )) ||
|
|
1583
|
+
_pepe__subcmd__slack__subcmd__help__subcmd__help_commands() {
|
|
1584
|
+
local commands; commands=()
|
|
1585
|
+
_describe -t commands 'pepe slack help help commands' commands "$@"
|
|
1586
|
+
}
|
|
1587
|
+
(( $+functions[_pepe__subcmd__slack__subcmd__help__subcmd__manifest_commands] )) ||
|
|
1588
|
+
_pepe__subcmd__slack__subcmd__help__subcmd__manifest_commands() {
|
|
1589
|
+
local commands; commands=()
|
|
1590
|
+
_describe -t commands 'pepe slack help manifest commands' commands "$@"
|
|
1591
|
+
}
|
|
1592
|
+
(( $+functions[_pepe__subcmd__slack__subcmd__help__subcmd__status_commands] )) ||
|
|
1593
|
+
_pepe__subcmd__slack__subcmd__help__subcmd__status_commands() {
|
|
1594
|
+
local commands; commands=()
|
|
1595
|
+
_describe -t commands 'pepe slack help status commands' commands "$@"
|
|
1596
|
+
}
|
|
1597
|
+
(( $+functions[_pepe__subcmd__slack__subcmd__help__subcmd__test_commands] )) ||
|
|
1598
|
+
_pepe__subcmd__slack__subcmd__help__subcmd__test_commands() {
|
|
1599
|
+
local commands; commands=()
|
|
1600
|
+
_describe -t commands 'pepe slack help test commands' commands "$@"
|
|
1601
|
+
}
|
|
1602
|
+
(( $+functions[_pepe__subcmd__slack__subcmd__manifest_commands] )) ||
|
|
1603
|
+
_pepe__subcmd__slack__subcmd__manifest_commands() {
|
|
1604
|
+
local commands; commands=()
|
|
1605
|
+
_describe -t commands 'pepe slack manifest commands' commands "$@"
|
|
1606
|
+
}
|
|
1607
|
+
(( $+functions[_pepe__subcmd__slack__subcmd__status_commands] )) ||
|
|
1608
|
+
_pepe__subcmd__slack__subcmd__status_commands() {
|
|
1609
|
+
local commands; commands=()
|
|
1610
|
+
_describe -t commands 'pepe slack status commands' commands "$@"
|
|
1611
|
+
}
|
|
1612
|
+
(( $+functions[_pepe__subcmd__slack__subcmd__test_commands] )) ||
|
|
1613
|
+
_pepe__subcmd__slack__subcmd__test_commands() {
|
|
1614
|
+
local commands; commands=()
|
|
1615
|
+
_describe -t commands 'pepe slack test commands' commands "$@"
|
|
1616
|
+
}
|
|
1035
1617
|
|
|
1036
1618
|
if [ "$funcstack[1]" = "_pepe" ]; then
|
|
1037
1619
|
_pepe "$@"
|