pepe-http 0.49.1 → 0.51.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.
@@ -43,6 +43,7 @@ Register-ArgumentCompleter -Native -CommandName 'pepe' -ScriptBlock {
43
43
  [CompletionResult]::new('--webhook', '--webhook', [CompletionResultType]::ParameterName, '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')
44
44
  [CompletionResult]::new('--webhook-on', '--webhook-on', [CompletionResultType]::ParameterName, 'When the --webhook URLs are sent: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default')
45
45
  [CompletionResult]::new('--slack', '--slack', [CompletionResultType]::ParameterName, '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')
46
+ [CompletionResult]::new('--export', '--export', [CompletionResultType]::ParameterName, 'Write the report to FILE as well, in the format its extension says: .html a self-contained page (curves, thresholds, the last run), .json the report, .md a summary for a PR, .txt what pepe prints, .csv the run''s numbers a row a second; repeat for more')
46
47
  [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')
47
48
  [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')
48
49
  [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')
@@ -88,6 +89,7 @@ Register-ArgumentCompleter -Native -CommandName 'pepe' -ScriptBlock {
88
89
  [CompletionResult]::new('self-update', 'self-update', [CompletionResultType]::ParameterValue, 'Update pepe to the latest release, or say what''s new in it')
89
90
  [CompletionResult]::new('completions', 'completions', [CompletionResultType]::ParameterValue, 'Tab completion for your shell: print the script, or --install it')
90
91
  [CompletionResult]::new('slack', 'slack', [CompletionResultType]::ParameterValue, 'Connect pepe to Slack from here, so --slack keeps a message there up to date as a run goes')
92
+ [CompletionResult]::new('export', 'export', [CompletionResultType]::ParameterValue, 'Turn a JSON report into a page, a Markdown summary, text or CSV')
91
93
  [CompletionResult]::new('help', 'help', [CompletionResultType]::ParameterValue, 'Print this message or the help of the given subcommand(s)')
92
94
  break
93
95
  }
@@ -126,6 +128,7 @@ Register-ArgumentCompleter -Native -CommandName 'pepe' -ScriptBlock {
126
128
  [CompletionResult]::new('--webhook', '--webhook', [CompletionResultType]::ParameterName, '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')
127
129
  [CompletionResult]::new('--webhook-on', '--webhook-on', [CompletionResultType]::ParameterName, 'When the --webhook URLs are sent: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default')
128
130
  [CompletionResult]::new('--slack', '--slack', [CompletionResultType]::ParameterName, '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')
131
+ [CompletionResult]::new('--export', '--export', [CompletionResultType]::ParameterName, 'Write the report to FILE as well, in the format its extension says: .html a self-contained page (curves, thresholds, the last run), .json the report, .md a summary for a PR, .txt what pepe prints, .csv the run''s numbers a row a second; repeat for more')
129
132
  [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')
130
133
  [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')
131
134
  [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')
@@ -198,6 +201,7 @@ Register-ArgumentCompleter -Native -CommandName 'pepe' -ScriptBlock {
198
201
  [CompletionResult]::new('--webhook', '--webhook', [CompletionResultType]::ParameterName, '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')
199
202
  [CompletionResult]::new('--webhook-on', '--webhook-on', [CompletionResultType]::ParameterName, 'When the --webhook URLs are sent: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default')
200
203
  [CompletionResult]::new('--slack', '--slack', [CompletionResultType]::ParameterName, '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')
204
+ [CompletionResult]::new('--export', '--export', [CompletionResultType]::ParameterName, 'Write the report to FILE as well, in the format its extension says: .html a self-contained page (curves, thresholds, the last run), .json the report, .md a summary for a PR, .txt what pepe prints, .csv the run''s numbers a row a second; repeat for more')
201
205
  [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')
202
206
  [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')
203
207
  [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')
@@ -251,6 +255,7 @@ Register-ArgumentCompleter -Native -CommandName 'pepe' -ScriptBlock {
251
255
  [CompletionResult]::new('--webhook', '--webhook', [CompletionResultType]::ParameterName, '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')
252
256
  [CompletionResult]::new('--webhook-on', '--webhook-on', [CompletionResultType]::ParameterName, 'When the --webhook URLs are sent: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default')
253
257
  [CompletionResult]::new('--slack', '--slack', [CompletionResultType]::ParameterName, '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')
258
+ [CompletionResult]::new('--export', '--export', [CompletionResultType]::ParameterName, 'Write the report to FILE as well, in the format its extension says: .html a self-contained page (curves, thresholds, the last run), .json the report, .md a summary for a PR, .txt what pepe prints, .csv the run''s numbers a row a second; repeat for more')
254
259
  [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')
255
260
  [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')
256
261
  [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')
@@ -304,6 +309,7 @@ Register-ArgumentCompleter -Native -CommandName 'pepe' -ScriptBlock {
304
309
  [CompletionResult]::new('--webhook', '--webhook', [CompletionResultType]::ParameterName, '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')
305
310
  [CompletionResult]::new('--webhook-on', '--webhook-on', [CompletionResultType]::ParameterName, 'When the --webhook URLs are sent: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default')
306
311
  [CompletionResult]::new('--slack', '--slack', [CompletionResultType]::ParameterName, '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')
312
+ [CompletionResult]::new('--export', '--export', [CompletionResultType]::ParameterName, 'Write the report to FILE as well, in the format its extension says: .html a self-contained page (curves, thresholds, the last run), .json the report, .md a summary for a PR, .txt what pepe prints, .csv the run''s numbers a row a second; repeat for more')
307
313
  [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')
308
314
  [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')
309
315
  [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')
@@ -357,6 +363,7 @@ Register-ArgumentCompleter -Native -CommandName 'pepe' -ScriptBlock {
357
363
  [CompletionResult]::new('--webhook', '--webhook', [CompletionResultType]::ParameterName, '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')
358
364
  [CompletionResult]::new('--webhook-on', '--webhook-on', [CompletionResultType]::ParameterName, 'When the --webhook URLs are sent: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default')
359
365
  [CompletionResult]::new('--slack', '--slack', [CompletionResultType]::ParameterName, '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')
366
+ [CompletionResult]::new('--export', '--export', [CompletionResultType]::ParameterName, 'Write the report to FILE as well, in the format its extension says: .html a self-contained page (curves, thresholds, the last run), .json the report, .md a summary for a PR, .txt what pepe prints, .csv the run''s numbers a row a second; repeat for more')
360
367
  [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')
361
368
  [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')
362
369
  [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')
@@ -415,6 +422,7 @@ Register-ArgumentCompleter -Native -CommandName 'pepe' -ScriptBlock {
415
422
  [CompletionResult]::new('--webhook', '--webhook', [CompletionResultType]::ParameterName, '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')
416
423
  [CompletionResult]::new('--webhook-on', '--webhook-on', [CompletionResultType]::ParameterName, 'When the --webhook URLs are sent: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default')
417
424
  [CompletionResult]::new('--slack', '--slack', [CompletionResultType]::ParameterName, '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')
425
+ [CompletionResult]::new('--export', '--export', [CompletionResultType]::ParameterName, 'Write the report to FILE as well, in the format its extension says: .html a self-contained page (curves, thresholds, the last run), .json the report, .md a summary for a PR, .txt what pepe prints, .csv the run''s numbers a row a second; repeat for more')
418
426
  [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')
419
427
  [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')
420
428
  [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')
@@ -469,6 +477,7 @@ Register-ArgumentCompleter -Native -CommandName 'pepe' -ScriptBlock {
469
477
  [CompletionResult]::new('--webhook', '--webhook', [CompletionResultType]::ParameterName, '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')
470
478
  [CompletionResult]::new('--webhook-on', '--webhook-on', [CompletionResultType]::ParameterName, 'When the --webhook URLs are sent: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default')
471
479
  [CompletionResult]::new('--slack', '--slack', [CompletionResultType]::ParameterName, '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')
480
+ [CompletionResult]::new('--export', '--export', [CompletionResultType]::ParameterName, 'Write the report to FILE as well, in the format its extension says: .html a self-contained page (curves, thresholds, the last run), .json the report, .md a summary for a PR, .txt what pepe prints, .csv the run''s numbers a row a second; repeat for more')
472
481
  [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')
473
482
  [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')
474
483
  [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')
@@ -523,6 +532,7 @@ Register-ArgumentCompleter -Native -CommandName 'pepe' -ScriptBlock {
523
532
  [CompletionResult]::new('--webhook', '--webhook', [CompletionResultType]::ParameterName, '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')
524
533
  [CompletionResult]::new('--webhook-on', '--webhook-on', [CompletionResultType]::ParameterName, 'When the --webhook URLs are sent: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default')
525
534
  [CompletionResult]::new('--slack', '--slack', [CompletionResultType]::ParameterName, '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')
535
+ [CompletionResult]::new('--export', '--export', [CompletionResultType]::ParameterName, 'Write the report to FILE as well, in the format its extension says: .html a self-contained page (curves, thresholds, the last run), .json the report, .md a summary for a PR, .txt what pepe prints, .csv the run''s numbers a row a second; repeat for more')
526
536
  [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')
527
537
  [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')
528
538
  [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')
@@ -580,6 +590,7 @@ Register-ArgumentCompleter -Native -CommandName 'pepe' -ScriptBlock {
580
590
  [CompletionResult]::new('--webhook', '--webhook', [CompletionResultType]::ParameterName, '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')
581
591
  [CompletionResult]::new('--webhook-on', '--webhook-on', [CompletionResultType]::ParameterName, 'When the --webhook URLs are sent: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default')
582
592
  [CompletionResult]::new('--slack', '--slack', [CompletionResultType]::ParameterName, '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')
593
+ [CompletionResult]::new('--export', '--export', [CompletionResultType]::ParameterName, 'Write the report to FILE as well, in the format its extension says: .html a self-contained page (curves, thresholds, the last run), .json the report, .md a summary for a PR, .txt what pepe prints, .csv the run''s numbers a row a second; repeat for more')
583
594
  [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')
584
595
  [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')
585
596
  [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')
@@ -634,6 +645,7 @@ Register-ArgumentCompleter -Native -CommandName 'pepe' -ScriptBlock {
634
645
  [CompletionResult]::new('--webhook', '--webhook', [CompletionResultType]::ParameterName, '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')
635
646
  [CompletionResult]::new('--webhook-on', '--webhook-on', [CompletionResultType]::ParameterName, 'When the --webhook URLs are sent: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default')
636
647
  [CompletionResult]::new('--slack', '--slack', [CompletionResultType]::ParameterName, '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')
648
+ [CompletionResult]::new('--export', '--export', [CompletionResultType]::ParameterName, 'Write the report to FILE as well, in the format its extension says: .html a self-contained page (curves, thresholds, the last run), .json the report, .md a summary for a PR, .txt what pepe prints, .csv the run''s numbers a row a second; repeat for more')
637
649
  [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')
638
650
  [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')
639
651
  [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')
@@ -686,6 +698,7 @@ Register-ArgumentCompleter -Native -CommandName 'pepe' -ScriptBlock {
686
698
  [CompletionResult]::new('--webhook', '--webhook', [CompletionResultType]::ParameterName, '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')
687
699
  [CompletionResult]::new('--webhook-on', '--webhook-on', [CompletionResultType]::ParameterName, 'When the --webhook URLs are sent: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default')
688
700
  [CompletionResult]::new('--slack', '--slack', [CompletionResultType]::ParameterName, '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')
701
+ [CompletionResult]::new('--export', '--export', [CompletionResultType]::ParameterName, 'Write the report to FILE as well, in the format its extension says: .html a self-contained page (curves, thresholds, the last run), .json the report, .md a summary for a PR, .txt what pepe prints, .csv the run''s numbers a row a second; repeat for more')
689
702
  [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')
690
703
  [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')
691
704
  [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')
@@ -738,6 +751,7 @@ Register-ArgumentCompleter -Native -CommandName 'pepe' -ScriptBlock {
738
751
  [CompletionResult]::new('--webhook', '--webhook', [CompletionResultType]::ParameterName, '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')
739
752
  [CompletionResult]::new('--webhook-on', '--webhook-on', [CompletionResultType]::ParameterName, 'When the --webhook URLs are sent: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default')
740
753
  [CompletionResult]::new('--slack', '--slack', [CompletionResultType]::ParameterName, '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')
754
+ [CompletionResult]::new('--export', '--export', [CompletionResultType]::ParameterName, 'Write the report to FILE as well, in the format its extension says: .html a self-contained page (curves, thresholds, the last run), .json the report, .md a summary for a PR, .txt what pepe prints, .csv the run''s numbers a row a second; repeat for more')
741
755
  [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')
742
756
  [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')
743
757
  [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')
@@ -792,6 +806,7 @@ Register-ArgumentCompleter -Native -CommandName 'pepe' -ScriptBlock {
792
806
  [CompletionResult]::new('--webhook', '--webhook', [CompletionResultType]::ParameterName, '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')
793
807
  [CompletionResult]::new('--webhook-on', '--webhook-on', [CompletionResultType]::ParameterName, 'When the --webhook URLs are sent: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default')
794
808
  [CompletionResult]::new('--slack', '--slack', [CompletionResultType]::ParameterName, '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')
809
+ [CompletionResult]::new('--export', '--export', [CompletionResultType]::ParameterName, 'Write the report to FILE as well, in the format its extension says: .html a self-contained page (curves, thresholds, the last run), .json the report, .md a summary for a PR, .txt what pepe prints, .csv the run''s numbers a row a second; repeat for more')
795
810
  [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')
796
811
  [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')
797
812
  [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')
@@ -845,6 +860,7 @@ Register-ArgumentCompleter -Native -CommandName 'pepe' -ScriptBlock {
845
860
  [CompletionResult]::new('--webhook', '--webhook', [CompletionResultType]::ParameterName, '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')
846
861
  [CompletionResult]::new('--webhook-on', '--webhook-on', [CompletionResultType]::ParameterName, 'When the --webhook URLs are sent: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default')
847
862
  [CompletionResult]::new('--slack', '--slack', [CompletionResultType]::ParameterName, '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')
863
+ [CompletionResult]::new('--export', '--export', [CompletionResultType]::ParameterName, 'Write the report to FILE as well, in the format its extension says: .html a self-contained page (curves, thresholds, the last run), .json the report, .md a summary for a PR, .txt what pepe prints, .csv the run''s numbers a row a second; repeat for more')
848
864
  [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')
849
865
  [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')
850
866
  [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')
@@ -907,6 +923,7 @@ Register-ArgumentCompleter -Native -CommandName 'pepe' -ScriptBlock {
907
923
  [CompletionResult]::new('--webhook', '--webhook', [CompletionResultType]::ParameterName, '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')
908
924
  [CompletionResult]::new('--webhook-on', '--webhook-on', [CompletionResultType]::ParameterName, 'When the --webhook URLs are sent: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default')
909
925
  [CompletionResult]::new('--slack', '--slack', [CompletionResultType]::ParameterName, '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')
926
+ [CompletionResult]::new('--export', '--export', [CompletionResultType]::ParameterName, 'Write the report to FILE as well, in the format its extension says: .html a self-contained page (curves, thresholds, the last run), .json the report, .md a summary for a PR, .txt what pepe prints, .csv the run''s numbers a row a second; repeat for more')
910
927
  [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')
911
928
  [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')
912
929
  [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')
@@ -959,6 +976,7 @@ Register-ArgumentCompleter -Native -CommandName 'pepe' -ScriptBlock {
959
976
  [CompletionResult]::new('--webhook', '--webhook', [CompletionResultType]::ParameterName, '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')
960
977
  [CompletionResult]::new('--webhook-on', '--webhook-on', [CompletionResultType]::ParameterName, 'When the --webhook URLs are sent: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default')
961
978
  [CompletionResult]::new('--slack', '--slack', [CompletionResultType]::ParameterName, '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')
979
+ [CompletionResult]::new('--export', '--export', [CompletionResultType]::ParameterName, 'Write the report to FILE as well, in the format its extension says: .html a self-contained page (curves, thresholds, the last run), .json the report, .md a summary for a PR, .txt what pepe prints, .csv the run''s numbers a row a second; repeat for more')
962
980
  [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')
963
981
  [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')
964
982
  [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')
@@ -1011,6 +1029,7 @@ Register-ArgumentCompleter -Native -CommandName 'pepe' -ScriptBlock {
1011
1029
  [CompletionResult]::new('--webhook', '--webhook', [CompletionResultType]::ParameterName, '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')
1012
1030
  [CompletionResult]::new('--webhook-on', '--webhook-on', [CompletionResultType]::ParameterName, 'When the --webhook URLs are sent: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default')
1013
1031
  [CompletionResult]::new('--slack', '--slack', [CompletionResultType]::ParameterName, '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')
1032
+ [CompletionResult]::new('--export', '--export', [CompletionResultType]::ParameterName, 'Write the report to FILE as well, in the format its extension says: .html a self-contained page (curves, thresholds, the last run), .json the report, .md a summary for a PR, .txt what pepe prints, .csv the run''s numbers a row a second; repeat for more')
1014
1033
  [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')
1015
1034
  [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')
1016
1035
  [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')
@@ -1063,6 +1082,7 @@ Register-ArgumentCompleter -Native -CommandName 'pepe' -ScriptBlock {
1063
1082
  [CompletionResult]::new('--webhook', '--webhook', [CompletionResultType]::ParameterName, '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')
1064
1083
  [CompletionResult]::new('--webhook-on', '--webhook-on', [CompletionResultType]::ParameterName, 'When the --webhook URLs are sent: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default')
1065
1084
  [CompletionResult]::new('--slack', '--slack', [CompletionResultType]::ParameterName, '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')
1085
+ [CompletionResult]::new('--export', '--export', [CompletionResultType]::ParameterName, 'Write the report to FILE as well, in the format its extension says: .html a self-contained page (curves, thresholds, the last run), .json the report, .md a summary for a PR, .txt what pepe prints, .csv the run''s numbers a row a second; repeat for more')
1066
1086
  [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')
1067
1087
  [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')
1068
1088
  [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')
@@ -1115,6 +1135,7 @@ Register-ArgumentCompleter -Native -CommandName 'pepe' -ScriptBlock {
1115
1135
  [CompletionResult]::new('--webhook', '--webhook', [CompletionResultType]::ParameterName, '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')
1116
1136
  [CompletionResult]::new('--webhook-on', '--webhook-on', [CompletionResultType]::ParameterName, 'When the --webhook URLs are sent: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default')
1117
1137
  [CompletionResult]::new('--slack', '--slack', [CompletionResultType]::ParameterName, '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')
1138
+ [CompletionResult]::new('--export', '--export', [CompletionResultType]::ParameterName, 'Write the report to FILE as well, in the format its extension says: .html a self-contained page (curves, thresholds, the last run), .json the report, .md a summary for a PR, .txt what pepe prints, .csv the run''s numbers a row a second; repeat for more')
1118
1139
  [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')
1119
1140
  [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')
1120
1141
  [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')
@@ -1167,6 +1188,7 @@ Register-ArgumentCompleter -Native -CommandName 'pepe' -ScriptBlock {
1167
1188
  [CompletionResult]::new('--webhook', '--webhook', [CompletionResultType]::ParameterName, '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')
1168
1189
  [CompletionResult]::new('--webhook-on', '--webhook-on', [CompletionResultType]::ParameterName, 'When the --webhook URLs are sent: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default')
1169
1190
  [CompletionResult]::new('--slack', '--slack', [CompletionResultType]::ParameterName, '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')
1191
+ [CompletionResult]::new('--export', '--export', [CompletionResultType]::ParameterName, 'Write the report to FILE as well, in the format its extension says: .html a self-contained page (curves, thresholds, the last run), .json the report, .md a summary for a PR, .txt what pepe prints, .csv the run''s numbers a row a second; repeat for more')
1170
1192
  [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')
1171
1193
  [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')
1172
1194
  [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')
@@ -1219,6 +1241,7 @@ Register-ArgumentCompleter -Native -CommandName 'pepe' -ScriptBlock {
1219
1241
  [CompletionResult]::new('--webhook', '--webhook', [CompletionResultType]::ParameterName, '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')
1220
1242
  [CompletionResult]::new('--webhook-on', '--webhook-on', [CompletionResultType]::ParameterName, 'When the --webhook URLs are sent: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default')
1221
1243
  [CompletionResult]::new('--slack', '--slack', [CompletionResultType]::ParameterName, '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')
1244
+ [CompletionResult]::new('--export', '--export', [CompletionResultType]::ParameterName, 'Write the report to FILE as well, in the format its extension says: .html a self-contained page (curves, thresholds, the last run), .json the report, .md a summary for a PR, .txt what pepe prints, .csv the run''s numbers a row a second; repeat for more')
1222
1245
  [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')
1223
1246
  [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')
1224
1247
  [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')
@@ -1283,6 +1306,63 @@ Register-ArgumentCompleter -Native -CommandName 'pepe' -ScriptBlock {
1283
1306
  'pepe;slack;help;help' {
1284
1307
  break
1285
1308
  }
1309
+ 'pepe;export' {
1310
+ [CompletionResult]::new('-o', '-o', [CompletionResultType]::ParameterName, 'Where it goes, its format from its extension; beside the report by default')
1311
+ [CompletionResult]::new('--out', '--out', [CompletionResultType]::ParameterName, 'Where it goes, its format from its extension; beside the report by default')
1312
+ [CompletionResult]::new('--to', '--to', [CompletionResultType]::ParameterName, 'The format when -o doesn''t say: html (the default), json, md, txt, csv, or all')
1313
+ [CompletionResult]::new('-n', '-n', [CompletionResultType]::ParameterName, 'Number of requests to perform')
1314
+ [CompletionResult]::new('--number', '--number', [CompletionResultType]::ParameterName, 'Number of requests to perform')
1315
+ [CompletionResult]::new('-z', '-z', [CompletionResultType]::ParameterName, 'Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)')
1316
+ [CompletionResult]::new('--duration', '--duration', [CompletionResultType]::ParameterName, 'Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)')
1317
+ [CompletionResult]::new('-m', '-m', [CompletionResultType]::ParameterName, 'HTTP method, e.g. GET, POST, PUT, DELETE')
1318
+ [CompletionResult]::new('--method', '--method', [CompletionResultType]::ParameterName, 'HTTP method, e.g. GET, POST, PUT, DELETE')
1319
+ [CompletionResult]::new('-H', '-H ', [CompletionResultType]::ParameterName, 'HTTP headers, e.g. -H ''Accept: application/json''')
1320
+ [CompletionResult]::new('--headers', '--headers', [CompletionResultType]::ParameterName, 'HTTP headers, e.g. -H ''Accept: application/json''')
1321
+ [CompletionResult]::new('-t', '-t', [CompletionResultType]::ParameterName, 'Time in seconds to wait for a response')
1322
+ [CompletionResult]::new('--timeout', '--timeout', [CompletionResultType]::ParameterName, 'Time in seconds to wait for a response')
1323
+ [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')
1324
+ [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')
1325
+ [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')
1326
+ [CompletionResult]::new('-d', '-d', [CompletionResultType]::ParameterName, 'HTTP request body')
1327
+ [CompletionResult]::new('--body', '--body', [CompletionResultType]::ParameterName, 'HTTP request body')
1328
+ [CompletionResult]::new('-p', '-p', [CompletionResultType]::ParameterName, 'Proxy server URL: http://user:pass@host:port or socks5://host:port')
1329
+ [CompletionResult]::new('--proxy', '--proxy', [CompletionResultType]::ParameterName, 'Proxy server URL: http://user:pass@host:port or socks5://host:port')
1330
+ [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')
1331
+ [CompletionResult]::new('--vars', '--vars', [CompletionResultType]::ParameterName, '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')
1332
+ [CompletionResult]::new('--webhook', '--webhook', [CompletionResultType]::ParameterName, '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')
1333
+ [CompletionResult]::new('--webhook-on', '--webhook-on', [CompletionResultType]::ParameterName, 'When the --webhook URLs are sent: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default')
1334
+ [CompletionResult]::new('--slack', '--slack', [CompletionResultType]::ParameterName, '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')
1335
+ [CompletionResult]::new('--export', '--export', [CompletionResultType]::ParameterName, 'Write the report to FILE as well, in the format its extension says: .html a self-contained page (curves, thresholds, the last run), .json the report, .md a summary for a PR, .txt what pepe prints, .csv the run''s numbers a row a second; repeat for more')
1336
+ [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')
1337
+ [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')
1338
+ [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')
1339
+ [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')
1340
+ [CompletionResult]::new('--max-concurrency', '--max-concurrency', [CompletionResultType]::ParameterName, 'Refuse a concurrency above this')
1341
+ [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.)')
1342
+ [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')
1343
+ [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'Read settings from this file instead of ./pepe.toml; flags on the command line win over it')
1344
+ [CompletionResult]::new('--write-config', '--write-config', [CompletionResultType]::ParameterName, 'Write the settings as they stand to this file, as a pepe.toml, and exit')
1345
+ [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')
1346
+ [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')
1347
+ [CompletionResult]::new('-c', '-c', [CompletionResultType]::ParameterName, 'Number of concurrent requests at a time')
1348
+ [CompletionResult]::new('--concurrency', '--concurrency', [CompletionResultType]::ParameterName, 'Number of concurrent requests at a time')
1349
+ [CompletionResult]::new('-u', '-u', [CompletionResultType]::ParameterName, 'User-Agent string, default is pepe/{version}')
1350
+ [CompletionResult]::new('--user-agent', '--user-agent', [CompletionResultType]::ParameterName, 'User-Agent string, default is pepe/{version}')
1351
+ [CompletionResult]::new('--open', '--open', [CompletionResultType]::ParameterName, 'Open it once written')
1352
+ [CompletionResult]::new('-h', '-h', [CompletionResultType]::ParameterName, 'Print help')
1353
+ [CompletionResult]::new('--help', '--help', [CompletionResultType]::ParameterName, 'Print help')
1354
+ [CompletionResult]::new('-k', '-k', [CompletionResultType]::ParameterName, 'Accept invalid TLS certificates (self-signed, expired, wrong host)')
1355
+ [CompletionResult]::new('--insecure', '--insecure', [CompletionResultType]::ParameterName, 'Accept invalid TLS certificates (self-signed, expired, wrong host)')
1356
+ [CompletionResult]::new('--disable-compression', '--disable-compression', [CompletionResultType]::ParameterName, 'Disable HTTP compression, e.g. gzip')
1357
+ [CompletionResult]::new('--disable-keepalive', '--disable-keepalive', [CompletionResultType]::ParameterName, 'Disable HTTP keepalive, e.g. Connection: close')
1358
+ [CompletionResult]::new('--disable-redirects', '--disable-redirects', [CompletionResultType]::ParameterName, 'Prevent http redirects')
1359
+ [CompletionResult]::new('--json', '--json', [CompletionResultType]::ParameterName, 'Output results in JSON format')
1360
+ [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')
1361
+ [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)')
1362
+ [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)')
1363
+ [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)')
1364
+ break
1365
+ }
1286
1366
  'pepe;help' {
1287
1367
  [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')
1288
1368
  [CompletionResult]::new('ramp', 'ramp', [CompletionResultType]::ParameterValue, 'Raise the load step by step to find where the target stops keeping up')
@@ -1298,6 +1378,7 @@ Register-ArgumentCompleter -Native -CommandName 'pepe' -ScriptBlock {
1298
1378
  [CompletionResult]::new('self-update', 'self-update', [CompletionResultType]::ParameterValue, 'Update pepe to the latest release, or say what''s new in it')
1299
1379
  [CompletionResult]::new('completions', 'completions', [CompletionResultType]::ParameterValue, 'Tab completion for your shell: print the script, or --install it')
1300
1380
  [CompletionResult]::new('slack', 'slack', [CompletionResultType]::ParameterValue, 'Connect pepe to Slack from here, so --slack keeps a message there up to date as a run goes')
1381
+ [CompletionResult]::new('export', 'export', [CompletionResultType]::ParameterValue, 'Turn a JSON report into a page, a Markdown summary, text or CSV')
1301
1382
  [CompletionResult]::new('help', 'help', [CompletionResultType]::ParameterValue, 'Print this message or the help of the given subcommand(s)')
1302
1383
  break
1303
1384
  }
@@ -1371,6 +1452,9 @@ Register-ArgumentCompleter -Native -CommandName 'pepe' -ScriptBlock {
1371
1452
  'pepe;help;slack;manifest' {
1372
1453
  break
1373
1454
  }
1455
+ 'pepe;help;export' {
1456
+ break
1457
+ }
1374
1458
  'pepe;help;help' {
1375
1459
  break
1376
1460
  }