pepe-http 0.39.1 → 0.41.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.
@@ -66,11 +66,14 @@ Register-ArgumentCompleter -Native -CommandName 'pepe' -ScriptBlock {
66
66
  [CompletionResult]::new('--dry-run', '--dry-run', [CompletionResultType]::ParameterName, 'Say what would be sent, to where and how much, and send nothing; as JSON with --json')
67
67
  [CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)')
68
68
  [CompletionResult]::new('--setup', '--setup', [CompletionResultType]::ParameterName, 'Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)')
69
+ [CompletionResult]::new('--record', '--record', [CompletionResultType]::ParameterName, '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)')
69
70
  [CompletionResult]::new('-V', '-V ', [CompletionResultType]::ParameterName, 'Print version')
70
71
  [CompletionResult]::new('--version', '--version', [CompletionResultType]::ParameterName, 'Print version')
71
72
  [CompletionResult]::new('ping', 'ping', [CompletionResultType]::ParameterValue, 'Ping a URL: a request a second, each split into DNS, connect, TLS, first byte and download, on a graph')
72
73
  [CompletionResult]::new('ramp', 'ramp', [CompletionResultType]::ParameterValue, 'Raise the load step by step to find where the target stops keeping up')
73
74
  [CompletionResult]::new('compare', 'compare', [CompletionResultType]::ParameterValue, 'Hold a run''s JSON report against an earlier one and say what moved')
75
+ [CompletionResult]::new('rerun', 'rerun', [CompletionResultType]::ParameterValue, 'Run a saved test again, record the run, and say what moved since the run before')
76
+ [CompletionResult]::new('history', 'history', [CompletionResultType]::ParameterValue, 'The saved tests and their recorded runs')
74
77
  [CompletionResult]::new('api', 'api', [CompletionResultType]::ParameterValue, 'Load-test every endpoint of an OpenAPI spec')
75
78
  [CompletionResult]::new('flow', 'flow', [CompletionResultType]::ParameterValue, 'Run a sequence of requests from a flow file, each step fed by the last')
76
79
  [CompletionResult]::new('replay', 'replay', [CompletionResultType]::ParameterValue, 'Send the URLs of an access log in their real proportions')
@@ -154,6 +157,7 @@ Register-ArgumentCompleter -Native -CommandName 'pepe' -ScriptBlock {
154
157
  [CompletionResult]::new('--dry-run', '--dry-run', [CompletionResultType]::ParameterName, 'Say what would be sent, to where and how much, and send nothing; as JSON with --json')
155
158
  [CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)')
156
159
  [CompletionResult]::new('--setup', '--setup', [CompletionResultType]::ParameterName, 'Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)')
160
+ [CompletionResult]::new('--record', '--record', [CompletionResultType]::ParameterName, '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)')
157
161
  break
158
162
  }
159
163
  'pepe;ramp' {
@@ -206,6 +210,7 @@ Register-ArgumentCompleter -Native -CommandName 'pepe' -ScriptBlock {
206
210
  [CompletionResult]::new('--dry-run', '--dry-run', [CompletionResultType]::ParameterName, 'Say what would be sent, to where and how much, and send nothing; as JSON with --json')
207
211
  [CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)')
208
212
  [CompletionResult]::new('--setup', '--setup', [CompletionResultType]::ParameterName, 'Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)')
213
+ [CompletionResult]::new('--record', '--record', [CompletionResultType]::ParameterName, '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)')
209
214
  break
210
215
  }
211
216
  'pepe;compare' {
@@ -255,6 +260,104 @@ Register-ArgumentCompleter -Native -CommandName 'pepe' -ScriptBlock {
255
260
  [CompletionResult]::new('--dry-run', '--dry-run', [CompletionResultType]::ParameterName, 'Say what would be sent, to where and how much, and send nothing; as JSON with --json')
256
261
  [CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)')
257
262
  [CompletionResult]::new('--setup', '--setup', [CompletionResultType]::ParameterName, 'Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)')
263
+ [CompletionResult]::new('--record', '--record', [CompletionResultType]::ParameterName, '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)')
264
+ break
265
+ }
266
+ 'pepe;rerun' {
267
+ [CompletionResult]::new('-n', '-n', [CompletionResultType]::ParameterName, 'Number of requests to perform')
268
+ [CompletionResult]::new('--number', '--number', [CompletionResultType]::ParameterName, 'Number of requests to perform')
269
+ [CompletionResult]::new('-z', '-z', [CompletionResultType]::ParameterName, 'Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)')
270
+ [CompletionResult]::new('--duration', '--duration', [CompletionResultType]::ParameterName, 'Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)')
271
+ [CompletionResult]::new('-m', '-m', [CompletionResultType]::ParameterName, 'HTTP method, e.g. GET, POST, PUT, DELETE')
272
+ [CompletionResult]::new('--method', '--method', [CompletionResultType]::ParameterName, 'HTTP method, e.g. GET, POST, PUT, DELETE')
273
+ [CompletionResult]::new('-H', '-H ', [CompletionResultType]::ParameterName, 'HTTP headers, e.g. -H ''Accept: application/json''')
274
+ [CompletionResult]::new('--headers', '--headers', [CompletionResultType]::ParameterName, 'HTTP headers, e.g. -H ''Accept: application/json''')
275
+ [CompletionResult]::new('-t', '-t', [CompletionResultType]::ParameterName, 'Time in seconds to wait for a response')
276
+ [CompletionResult]::new('--timeout', '--timeout', [CompletionResultType]::ParameterName, 'Time in seconds to wait for a response')
277
+ [CompletionResult]::new('--warmup', '--warmup', [CompletionResultType]::ParameterName, 'Send for this long before measuring, e.g. 5s: connections open, caches fill and JITs settle without counting against the run')
278
+ [CompletionResult]::new('--threads', '--threads', [CompletionResultType]::ParameterName, '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')
279
+ [CompletionResult]::new('--rate', '--rate', [CompletionResultType]::ParameterName, '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')
280
+ [CompletionResult]::new('-d', '-d', [CompletionResultType]::ParameterName, 'HTTP request body')
281
+ [CompletionResult]::new('--body', '--body', [CompletionResultType]::ParameterName, 'HTTP request body')
282
+ [CompletionResult]::new('-p', '-p', [CompletionResultType]::ParameterName, 'Proxy server URL: http://user:pass@host:port or socks5://host:port')
283
+ [CompletionResult]::new('--proxy', '--proxy', [CompletionResultType]::ParameterName, 'Proxy server URL: http://user:pass@host:port or socks5://host:port')
284
+ [CompletionResult]::new('--trace-header', '--trace-header', [CompletionResultType]::ParameterName, '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')
285
+ [CompletionResult]::new('--snapshot', '--snapshot', [CompletionResultType]::ParameterName, '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')
286
+ [CompletionResult]::new('--allow-host', '--allow-host', [CompletionResultType]::ParameterName, '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')
287
+ [CompletionResult]::new('--max-requests', '--max-requests', [CompletionResultType]::ParameterName, 'Refuse a run that would send more requests than this: -n above it, or -z without a --rate that bounds it')
288
+ [CompletionResult]::new('--max-rate', '--max-rate', [CompletionResultType]::ParameterName, 'Refuse a --rate above this, and a run with no --rate at all, which sends as fast as the target answers')
289
+ [CompletionResult]::new('--max-concurrency', '--max-concurrency', [CompletionResultType]::ParameterName, 'Refuse a concurrency above this')
290
+ [CompletionResult]::new('--fail-if', '--fail-if', [CompletionResultType]::ParameterName, '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.)')
291
+ [CompletionResult]::new('--metrics', '--metrics', [CompletionResultType]::ParameterName, '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')
292
+ [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'Read settings from this file instead of ./pepe.toml; flags on the command line win over it')
293
+ [CompletionResult]::new('--write-config', '--write-config', [CompletionResultType]::ParameterName, 'Write the settings as they stand to this file, as a pepe.toml, and exit')
294
+ [CompletionResult]::new('--load', '--load', [CompletionResultType]::ParameterName, 'Run a test saved on the setup screen (ctrl-s): ./.pepe/tests/NAME.toml; flags on the command line win over it')
295
+ [CompletionResult]::new('--keep', '--keep', [CompletionResultType]::ParameterName, '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')
296
+ [CompletionResult]::new('-c', '-c', [CompletionResultType]::ParameterName, 'Number of concurrent requests at a time')
297
+ [CompletionResult]::new('--concurrency', '--concurrency', [CompletionResultType]::ParameterName, 'Number of concurrent requests at a time')
298
+ [CompletionResult]::new('-u', '-u', [CompletionResultType]::ParameterName, 'User-Agent string, default is pepe/{version}')
299
+ [CompletionResult]::new('--user-agent', '--user-agent', [CompletionResultType]::ParameterName, 'User-Agent string, default is pepe/{version}')
300
+ [CompletionResult]::new('--gate', '--gate', [CompletionResultType]::ParameterName, 'Exit 1 when the verdict is Slower or Worse, for CI')
301
+ [CompletionResult]::new('-h', '-h', [CompletionResultType]::ParameterName, 'Print help')
302
+ [CompletionResult]::new('--help', '--help', [CompletionResultType]::ParameterName, 'Print help')
303
+ [CompletionResult]::new('-k', '-k', [CompletionResultType]::ParameterName, 'Accept invalid TLS certificates (self-signed, expired, wrong host)')
304
+ [CompletionResult]::new('--insecure', '--insecure', [CompletionResultType]::ParameterName, 'Accept invalid TLS certificates (self-signed, expired, wrong host)')
305
+ [CompletionResult]::new('--disable-compression', '--disable-compression', [CompletionResultType]::ParameterName, 'Disable HTTP compression, e.g. gzip')
306
+ [CompletionResult]::new('--disable-keepalive', '--disable-keepalive', [CompletionResultType]::ParameterName, 'Disable HTTP keepalive, e.g. Connection: close')
307
+ [CompletionResult]::new('--disable-redirects', '--disable-redirects', [CompletionResultType]::ParameterName, 'Prevent http redirects')
308
+ [CompletionResult]::new('--json', '--json', [CompletionResultType]::ParameterName, 'Output results in JSON format')
309
+ [CompletionResult]::new('--dry-run', '--dry-run', [CompletionResultType]::ParameterName, 'Say what would be sent, to where and how much, and send nothing; as JSON with --json')
310
+ [CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)')
311
+ [CompletionResult]::new('--setup', '--setup', [CompletionResultType]::ParameterName, 'Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)')
312
+ [CompletionResult]::new('--record', '--record', [CompletionResultType]::ParameterName, '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)')
313
+ break
314
+ }
315
+ 'pepe;history' {
316
+ [CompletionResult]::new('-n', '-n', [CompletionResultType]::ParameterName, 'Number of requests to perform')
317
+ [CompletionResult]::new('--number', '--number', [CompletionResultType]::ParameterName, 'Number of requests to perform')
318
+ [CompletionResult]::new('-z', '-z', [CompletionResultType]::ParameterName, 'Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)')
319
+ [CompletionResult]::new('--duration', '--duration', [CompletionResultType]::ParameterName, 'Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)')
320
+ [CompletionResult]::new('-m', '-m', [CompletionResultType]::ParameterName, 'HTTP method, e.g. GET, POST, PUT, DELETE')
321
+ [CompletionResult]::new('--method', '--method', [CompletionResultType]::ParameterName, 'HTTP method, e.g. GET, POST, PUT, DELETE')
322
+ [CompletionResult]::new('-H', '-H ', [CompletionResultType]::ParameterName, 'HTTP headers, e.g. -H ''Accept: application/json''')
323
+ [CompletionResult]::new('--headers', '--headers', [CompletionResultType]::ParameterName, 'HTTP headers, e.g. -H ''Accept: application/json''')
324
+ [CompletionResult]::new('-t', '-t', [CompletionResultType]::ParameterName, 'Time in seconds to wait for a response')
325
+ [CompletionResult]::new('--timeout', '--timeout', [CompletionResultType]::ParameterName, 'Time in seconds to wait for a response')
326
+ [CompletionResult]::new('--warmup', '--warmup', [CompletionResultType]::ParameterName, 'Send for this long before measuring, e.g. 5s: connections open, caches fill and JITs settle without counting against the run')
327
+ [CompletionResult]::new('--threads', '--threads', [CompletionResultType]::ParameterName, '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')
328
+ [CompletionResult]::new('--rate', '--rate', [CompletionResultType]::ParameterName, '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')
329
+ [CompletionResult]::new('-d', '-d', [CompletionResultType]::ParameterName, 'HTTP request body')
330
+ [CompletionResult]::new('--body', '--body', [CompletionResultType]::ParameterName, 'HTTP request body')
331
+ [CompletionResult]::new('-p', '-p', [CompletionResultType]::ParameterName, 'Proxy server URL: http://user:pass@host:port or socks5://host:port')
332
+ [CompletionResult]::new('--proxy', '--proxy', [CompletionResultType]::ParameterName, 'Proxy server URL: http://user:pass@host:port or socks5://host:port')
333
+ [CompletionResult]::new('--trace-header', '--trace-header', [CompletionResultType]::ParameterName, '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')
334
+ [CompletionResult]::new('--snapshot', '--snapshot', [CompletionResultType]::ParameterName, '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')
335
+ [CompletionResult]::new('--allow-host', '--allow-host', [CompletionResultType]::ParameterName, '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')
336
+ [CompletionResult]::new('--max-requests', '--max-requests', [CompletionResultType]::ParameterName, 'Refuse a run that would send more requests than this: -n above it, or -z without a --rate that bounds it')
337
+ [CompletionResult]::new('--max-rate', '--max-rate', [CompletionResultType]::ParameterName, 'Refuse a --rate above this, and a run with no --rate at all, which sends as fast as the target answers')
338
+ [CompletionResult]::new('--max-concurrency', '--max-concurrency', [CompletionResultType]::ParameterName, 'Refuse a concurrency above this')
339
+ [CompletionResult]::new('--fail-if', '--fail-if', [CompletionResultType]::ParameterName, '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.)')
340
+ [CompletionResult]::new('--metrics', '--metrics', [CompletionResultType]::ParameterName, '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')
341
+ [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'Read settings from this file instead of ./pepe.toml; flags on the command line win over it')
342
+ [CompletionResult]::new('--write-config', '--write-config', [CompletionResultType]::ParameterName, 'Write the settings as they stand to this file, as a pepe.toml, and exit')
343
+ [CompletionResult]::new('--load', '--load', [CompletionResultType]::ParameterName, 'Run a test saved on the setup screen (ctrl-s): ./.pepe/tests/NAME.toml; flags on the command line win over it')
344
+ [CompletionResult]::new('--keep', '--keep', [CompletionResultType]::ParameterName, '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')
345
+ [CompletionResult]::new('-c', '-c', [CompletionResultType]::ParameterName, 'Number of concurrent requests at a time')
346
+ [CompletionResult]::new('--concurrency', '--concurrency', [CompletionResultType]::ParameterName, 'Number of concurrent requests at a time')
347
+ [CompletionResult]::new('-u', '-u', [CompletionResultType]::ParameterName, 'User-Agent string, default is pepe/{version}')
348
+ [CompletionResult]::new('--user-agent', '--user-agent', [CompletionResultType]::ParameterName, 'User-Agent string, default is pepe/{version}')
349
+ [CompletionResult]::new('-h', '-h', [CompletionResultType]::ParameterName, 'Print help')
350
+ [CompletionResult]::new('--help', '--help', [CompletionResultType]::ParameterName, 'Print help')
351
+ [CompletionResult]::new('-k', '-k', [CompletionResultType]::ParameterName, 'Accept invalid TLS certificates (self-signed, expired, wrong host)')
352
+ [CompletionResult]::new('--insecure', '--insecure', [CompletionResultType]::ParameterName, 'Accept invalid TLS certificates (self-signed, expired, wrong host)')
353
+ [CompletionResult]::new('--disable-compression', '--disable-compression', [CompletionResultType]::ParameterName, 'Disable HTTP compression, e.g. gzip')
354
+ [CompletionResult]::new('--disable-keepalive', '--disable-keepalive', [CompletionResultType]::ParameterName, 'Disable HTTP keepalive, e.g. Connection: close')
355
+ [CompletionResult]::new('--disable-redirects', '--disable-redirects', [CompletionResultType]::ParameterName, 'Prevent http redirects')
356
+ [CompletionResult]::new('--json', '--json', [CompletionResultType]::ParameterName, 'Output results in JSON format')
357
+ [CompletionResult]::new('--dry-run', '--dry-run', [CompletionResultType]::ParameterName, 'Say what would be sent, to where and how much, and send nothing; as JSON with --json')
358
+ [CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)')
359
+ [CompletionResult]::new('--setup', '--setup', [CompletionResultType]::ParameterName, 'Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)')
360
+ [CompletionResult]::new('--record', '--record', [CompletionResultType]::ParameterName, '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)')
258
361
  break
259
362
  }
260
363
  'pepe;api' {
@@ -310,6 +413,7 @@ Register-ArgumentCompleter -Native -CommandName 'pepe' -ScriptBlock {
310
413
  [CompletionResult]::new('--dry-run', '--dry-run', [CompletionResultType]::ParameterName, 'Say what would be sent, to where and how much, and send nothing; as JSON with --json')
311
414
  [CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)')
312
415
  [CompletionResult]::new('--setup', '--setup', [CompletionResultType]::ParameterName, 'Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)')
416
+ [CompletionResult]::new('--record', '--record', [CompletionResultType]::ParameterName, '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)')
313
417
  break
314
418
  }
315
419
  'pepe;flow' {
@@ -357,6 +461,7 @@ Register-ArgumentCompleter -Native -CommandName 'pepe' -ScriptBlock {
357
461
  [CompletionResult]::new('--dry-run', '--dry-run', [CompletionResultType]::ParameterName, 'Say what would be sent, to where and how much, and send nothing; as JSON with --json')
358
462
  [CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)')
359
463
  [CompletionResult]::new('--setup', '--setup', [CompletionResultType]::ParameterName, 'Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)')
464
+ [CompletionResult]::new('--record', '--record', [CompletionResultType]::ParameterName, '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)')
360
465
  break
361
466
  }
362
467
  'pepe;replay' {
@@ -407,6 +512,7 @@ Register-ArgumentCompleter -Native -CommandName 'pepe' -ScriptBlock {
407
512
  [CompletionResult]::new('--dry-run', '--dry-run', [CompletionResultType]::ParameterName, 'Say what would be sent, to where and how much, and send nothing; as JSON with --json')
408
513
  [CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)')
409
514
  [CompletionResult]::new('--setup', '--setup', [CompletionResultType]::ParameterName, 'Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)')
515
+ [CompletionResult]::new('--record', '--record', [CompletionResultType]::ParameterName, '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)')
410
516
  break
411
517
  }
412
518
  'pepe;logs' {
@@ -460,6 +566,7 @@ Register-ArgumentCompleter -Native -CommandName 'pepe' -ScriptBlock {
460
566
  [CompletionResult]::new('--dry-run', '--dry-run', [CompletionResultType]::ParameterName, 'Say what would be sent, to where and how much, and send nothing; as JSON with --json')
461
567
  [CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)')
462
568
  [CompletionResult]::new('--setup', '--setup', [CompletionResultType]::ParameterName, 'Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)')
569
+ [CompletionResult]::new('--record', '--record', [CompletionResultType]::ParameterName, '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)')
463
570
  break
464
571
  }
465
572
  'pepe;schema' {
@@ -507,6 +614,7 @@ Register-ArgumentCompleter -Native -CommandName 'pepe' -ScriptBlock {
507
614
  [CompletionResult]::new('--dry-run', '--dry-run', [CompletionResultType]::ParameterName, 'Say what would be sent, to where and how much, and send nothing; as JSON with --json')
508
615
  [CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)')
509
616
  [CompletionResult]::new('--setup', '--setup', [CompletionResultType]::ParameterName, 'Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)')
617
+ [CompletionResult]::new('--record', '--record', [CompletionResultType]::ParameterName, '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)')
510
618
  break
511
619
  }
512
620
  'pepe;mcp' {
@@ -554,6 +662,7 @@ Register-ArgumentCompleter -Native -CommandName 'pepe' -ScriptBlock {
554
662
  [CompletionResult]::new('--dry-run', '--dry-run', [CompletionResultType]::ParameterName, 'Say what would be sent, to where and how much, and send nothing; as JSON with --json')
555
663
  [CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)')
556
664
  [CompletionResult]::new('--setup', '--setup', [CompletionResultType]::ParameterName, 'Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)')
665
+ [CompletionResult]::new('--record', '--record', [CompletionResultType]::ParameterName, '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)')
557
666
  break
558
667
  }
559
668
  'pepe;self-update' {
@@ -603,6 +712,7 @@ Register-ArgumentCompleter -Native -CommandName 'pepe' -ScriptBlock {
603
712
  [CompletionResult]::new('--dry-run', '--dry-run', [CompletionResultType]::ParameterName, 'Say what would be sent, to where and how much, and send nothing; as JSON with --json')
604
713
  [CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)')
605
714
  [CompletionResult]::new('--setup', '--setup', [CompletionResultType]::ParameterName, 'Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)')
715
+ [CompletionResult]::new('--record', '--record', [CompletionResultType]::ParameterName, '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)')
606
716
  break
607
717
  }
608
718
  'pepe;completions' {
@@ -651,12 +761,15 @@ Register-ArgumentCompleter -Native -CommandName 'pepe' -ScriptBlock {
651
761
  [CompletionResult]::new('--json', '--json', [CompletionResultType]::ParameterName, 'Output results in JSON format')
652
762
  [CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)')
653
763
  [CompletionResult]::new('--setup', '--setup', [CompletionResultType]::ParameterName, 'Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)')
764
+ [CompletionResult]::new('--record', '--record', [CompletionResultType]::ParameterName, '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)')
654
765
  break
655
766
  }
656
767
  'pepe;help' {
657
768
  [CompletionResult]::new('ping', 'ping', [CompletionResultType]::ParameterValue, 'Ping a URL: a request a second, each split into DNS, connect, TLS, first byte and download, on a graph')
658
769
  [CompletionResult]::new('ramp', 'ramp', [CompletionResultType]::ParameterValue, 'Raise the load step by step to find where the target stops keeping up')
659
770
  [CompletionResult]::new('compare', 'compare', [CompletionResultType]::ParameterValue, 'Hold a run''s JSON report against an earlier one and say what moved')
771
+ [CompletionResult]::new('rerun', 'rerun', [CompletionResultType]::ParameterValue, 'Run a saved test again, record the run, and say what moved since the run before')
772
+ [CompletionResult]::new('history', 'history', [CompletionResultType]::ParameterValue, 'The saved tests and their recorded runs')
660
773
  [CompletionResult]::new('api', 'api', [CompletionResultType]::ParameterValue, 'Load-test every endpoint of an OpenAPI spec')
661
774
  [CompletionResult]::new('flow', 'flow', [CompletionResultType]::ParameterValue, 'Run a sequence of requests from a flow file, each step fed by the last')
662
775
  [CompletionResult]::new('replay', 'replay', [CompletionResultType]::ParameterValue, 'Send the URLs of an access log in their real proportions')
@@ -677,6 +790,12 @@ Register-ArgumentCompleter -Native -CommandName 'pepe' -ScriptBlock {
677
790
  'pepe;help;compare' {
678
791
  break
679
792
  }
793
+ 'pepe;help;rerun' {
794
+ break
795
+ }
796
+ 'pepe;help;history' {
797
+ break
798
+ }
680
799
  'pepe;help;api' {
681
800
  break
682
801
  }