postman-cli-completion 1.66.0 → 1.71.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.
@@ -1,4 +1,4 @@
1
- # Bash completion for Postman CLI (postman v1.66.0)
1
+ # Bash completion for Postman CLI (postman v1.71.0)
2
2
  # Auto-generated by scripts/generate.mjs — DO NOT EDIT
3
3
  # Source: spec/commands.json
4
4
  # https://github.com/yokawasa/postman-cli-completion
@@ -22,7 +22,7 @@ _postman() {
22
22
  cur="${COMP_WORDS[COMP_CWORD]}"
23
23
  prev="${COMP_WORDS[COMP_CWORD-1]}"
24
24
 
25
- local top_commands="login signup logout init whoami feedback update skills collection environment globals api runner spec monitor workspace ws team performance flows fl request sdk mock application app simulate describe context-graph search webhook dataset dependency"
25
+ local top_commands="login signup logout init whoami feedback update skills collection environment globals api runner spec monitor workspace ws team performance flows fl request sdk mock application app simulation describe context-graph search webhook dataset dependency secret"
26
26
  local global_flags="-v --version --silent --color -h --help -h --help"
27
27
 
28
28
  local i cmd="" subcmd=""
@@ -69,13 +69,14 @@ _postman() {
69
69
  sdk) _postman_sdk ;;
70
70
  mock) _postman_mock ;;
71
71
  application|app) _postman_application ;;
72
- simulate) _postman_simulate ;;
72
+ simulation) _postman_simulation ;;
73
73
  describe) _postman_describe ;;
74
74
  context-graph) _postman_context_graph ;;
75
75
  search) _postman_search ;;
76
76
  webhook) _postman_webhook ;;
77
77
  dataset) _postman_dataset ;;
78
78
  dependency) _postman_dependency ;;
79
+ secret) _postman_secret ;;
79
80
  esac
80
81
  }
81
82
 
@@ -109,7 +110,7 @@ _postman_logout() {
109
110
 
110
111
  _postman_init() {
111
112
  if [[ "$cur" == -* ]]; then
112
- COMPREPLY=( $(compgen -W "--json --dry-run --no-fetch --spec --visibility --no-cloud --report-events -h --help" -- "$cur") )
113
+ COMPREPLY=( $(compgen -W "--json --dry-run --no-fetch --spec --visibility -y --yes --report-events -h --help" -- "$cur") )
113
114
  return 0
114
115
  fi
115
116
  case "$prev" in
@@ -179,7 +180,7 @@ _postman_collection() {
179
180
  if [[ "$cur" == -* ]]; then
180
181
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
181
182
  else
182
- COMPREPLY=( $(compgen -W "new migrate lint ai-readiness get generate sync request folder list run" -- "$cur") )
183
+ COMPREPLY=( $(compgen -W "new migrate lint ai-readiness get delete publish generate sync request folder example import list run" -- "$cur") )
183
184
  fi
184
185
  return 0
185
186
  fi
@@ -189,10 +190,14 @@ _postman_collection() {
189
190
  lint) _postman_collection_lint ;;
190
191
  ai-readiness) _postman_collection_ai_readiness ;;
191
192
  get) _postman_collection_get ;;
193
+ delete) _postman_collection_delete ;;
194
+ publish) _postman_collection_publish ;;
192
195
  generate) _postman_collection_generate ;;
193
196
  sync) _postman_collection_sync ;;
194
197
  request) _postman_collection_request ;;
195
198
  folder) _postman_collection_folder ;;
199
+ example) _postman_collection_example ;;
200
+ import) _postman_collection_import ;;
196
201
  list) _postman_collection_list ;;
197
202
  run) _postman_collection_run ;;
198
203
  esac
@@ -255,6 +260,34 @@ _postman_collection_get() {
255
260
  esac
256
261
  }
257
262
 
263
+ _postman_collection_delete() {
264
+ if [[ "$cur" == -* ]]; then
265
+ COMPREPLY=( $(compgen -W "-y --yes --api-key --verbose --json -h --help" -- "$cur") )
266
+ return 0
267
+ fi
268
+ case "$prev" in
269
+ --api-key)
270
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
271
+ return 0 ;;
272
+ esac
273
+ }
274
+
275
+ _postman_collection_publish() {
276
+ if [[ "$cur" == -* ]]; then
277
+ COMPREPLY=( $(compgen -W "--target --environment --title --description --note --api-key --json -h --help" -- "$cur") )
278
+ return 0
279
+ fi
280
+ case "$prev" in
281
+ --environment)
282
+ _postman_filematch '!*.@(json)' "$cur"
283
+ return 0 ;;
284
+ --api-key)
285
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
286
+ return 0 ;;
287
+ esac
288
+ _postman_filematch '!*.@(json)' "$cur"
289
+ }
290
+
258
291
  _postman_collection_generate() {
259
292
  if [[ -z "$subcmd" ]]; then
260
293
  if [[ "$cur" == -* ]]; then
@@ -314,12 +347,13 @@ _postman_collection_request() {
314
347
  if [[ "$cur" == -* ]]; then
315
348
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
316
349
  else
317
- COMPREPLY=( $(compgen -W "add update rm remove" -- "$cur") )
350
+ COMPREPLY=( $(compgen -W "add get update rm remove" -- "$cur") )
318
351
  fi
319
352
  return 0
320
353
  fi
321
354
  case "$subcmd" in
322
355
  add) _postman_collection_request_add ;;
356
+ get) _postman_collection_request_get ;;
323
357
  update) _postman_collection_request_update ;;
324
358
  rm|remove) _postman_collection_request_rm ;;
325
359
  esac
@@ -334,9 +368,18 @@ _postman_collection_request_add() {
334
368
  esac
335
369
  }
336
370
 
371
+ _postman_collection_request_get() {
372
+ if [[ "$cur" == -* ]]; then
373
+ COMPREPLY=( $(compgen -W "--collection --folder -w --workspace --json -h --help" -- "$cur") )
374
+ return 0
375
+ fi
376
+ case "$prev" in
377
+ esac
378
+ }
379
+
337
380
  _postman_collection_request_update() {
338
381
  if [[ "$cur" == -* ]]; then
339
- COMPREPLY=( $(compgen -W "--collection --folder --rename --url --method --param -d --body --variables --description --headers --auth --scripts -w --workspace --type --json -h --help" -- "$cur") )
382
+ COMPREPLY=( $(compgen -W "--collection --folder --rename --url --method --param --clear-params -d --body --variables --description --headers --auth --scripts -w --workspace --type --json -h --help" -- "$cur") )
340
383
  return 0
341
384
  fi
342
385
  case "$prev" in
@@ -363,12 +406,13 @@ _postman_collection_folder() {
363
406
  if [[ "$cur" == -* ]]; then
364
407
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
365
408
  else
366
- COMPREPLY=( $(compgen -W "add update rm remove" -- "$cur") )
409
+ COMPREPLY=( $(compgen -W "add get update rm remove" -- "$cur") )
367
410
  fi
368
411
  return 0
369
412
  fi
370
413
  case "$subcmd" in
371
414
  add) _postman_collection_folder_add ;;
415
+ get) _postman_collection_folder_get ;;
372
416
  update) _postman_collection_folder_update ;;
373
417
  rm|remove) _postman_collection_folder_rm ;;
374
418
  esac
@@ -383,6 +427,15 @@ _postman_collection_folder_add() {
383
427
  esac
384
428
  }
385
429
 
430
+ _postman_collection_folder_get() {
431
+ if [[ "$cur" == -* ]]; then
432
+ COMPREPLY=( $(compgen -W "--collection --folder -w --workspace --json -h --help" -- "$cur") )
433
+ return 0
434
+ fi
435
+ case "$prev" in
436
+ esac
437
+ }
438
+
386
439
  _postman_collection_folder_update() {
387
440
  if [[ "$cur" == -* ]]; then
388
441
  COMPREPLY=( $(compgen -W "--collection --folder --name --description --auth --scripts -w --workspace --json -h --help" -- "$cur") )
@@ -401,6 +454,90 @@ _postman_collection_folder_rm() {
401
454
  esac
402
455
  }
403
456
 
457
+ _postman_collection_example() {
458
+ if [[ -z "$subcmd" ]]; then
459
+ if [[ "$cur" == -* ]]; then
460
+ COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
461
+ else
462
+ COMPREPLY=( $(compgen -W "add update rm remove get list" -- "$cur") )
463
+ fi
464
+ return 0
465
+ fi
466
+ case "$subcmd" in
467
+ add) _postman_collection_example_add ;;
468
+ update) _postman_collection_example_update ;;
469
+ rm|remove) _postman_collection_example_rm ;;
470
+ get) _postman_collection_example_get ;;
471
+ list) _postman_collection_example_list ;;
472
+ esac
473
+ }
474
+
475
+ _postman_collection_example_add() {
476
+ if [[ "$cur" == -* ]]; then
477
+ COMPREPLY=( $(compgen -W "--collection --request --folder --type -w --workspace --json -h --help" -- "$cur") )
478
+ return 0
479
+ fi
480
+ case "$prev" in
481
+ esac
482
+ }
483
+
484
+ _postman_collection_example_update() {
485
+ if [[ "$cur" == -* ]]; then
486
+ COMPREPLY=( $(compgen -W "--collection --request --folder --status-code --status-text -d --body --headers --description --rename --url --method --request-headers --request-param --request-body --copy-request --clear-request -w --workspace --type --json -h --help" -- "$cur") )
487
+ return 0
488
+ fi
489
+ case "$prev" in
490
+ --headers)
491
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
492
+ return 0 ;;
493
+ --request-headers)
494
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
495
+ return 0 ;;
496
+ --request-param)
497
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
498
+ return 0 ;;
499
+ esac
500
+ }
501
+
502
+ _postman_collection_example_rm() {
503
+ if [[ "$cur" == -* ]]; then
504
+ COMPREPLY=( $(compgen -W "--collection --request --folder -w --workspace --type --json -h --help" -- "$cur") )
505
+ return 0
506
+ fi
507
+ case "$prev" in
508
+ esac
509
+ }
510
+
511
+ _postman_collection_example_get() {
512
+ if [[ "$cur" == -* ]]; then
513
+ COMPREPLY=( $(compgen -W "--collection --request --folder -w --workspace --type --json -h --help" -- "$cur") )
514
+ return 0
515
+ fi
516
+ case "$prev" in
517
+ esac
518
+ }
519
+
520
+ _postman_collection_example_list() {
521
+ if [[ "$cur" == -* ]]; then
522
+ COMPREPLY=( $(compgen -W "--collection --request --folder -w --workspace --type --json -h --help" -- "$cur") )
523
+ return 0
524
+ fi
525
+ case "$prev" in
526
+ esac
527
+ }
528
+
529
+ _postman_collection_import() {
530
+ if [[ "$cur" == -* ]]; then
531
+ COMPREPLY=( $(compgen -W "--type --name -o --output -w --workspace --force --timeout --verbose --json -h --help" -- "$cur") )
532
+ return 0
533
+ fi
534
+ case "$prev" in
535
+ -o|--output)
536
+ _postman_filematch '!*.@(json)' "$cur"
537
+ return 0 ;;
538
+ esac
539
+ }
540
+
404
541
  _postman_collection_list() {
405
542
  if [[ "$cur" == -* ]]; then
406
543
  COMPREPLY=( $(compgen -W "-w --workspace -f --filter --verbose --debug --json -h --help" -- "$cur") )
@@ -412,7 +549,7 @@ _postman_collection_list() {
412
549
 
413
550
  _postman_collection_run() {
414
551
  if [[ "$cur" == -* ]]; then
415
- COMPREPLY=( $(compgen -W "-e --environment -g --globals -r --reporters --output --reporter-json-structure -n --iteration-count -d --iteration-data --iteration-data-dataset --iteration-data-view --dataset -i --global-var --env-var --integration-id --postman-api-key --alias --bail --ignore-redirects -x --suppress-exit-code --silent --disable-unicode --delay-request --timeout --timeout-request --timeout-script --working-dir --no-insecure-file-read -k --insecure --ssl-client-cert-list --ssl-client-cert --ssl-client-key --ssl-client-passphrase --ssl-extra-ca-certs --cookie-jar --export-cookie-jar --verbose --mock --port --use-mock --simulate --simulation --simulate-workspace --no-simulate-history --report-events --no-report-events -h --help --reporter-json-export --reporter-junit-export --reporter-html-export --reporter-json-omitRequestBodies --reporter-html-omitRequestBodies --reporter-json-omitResponseBodies --reporter-html-omitResponseBodies --reporter-json-omitHeaders --reporter-html-omitHeaders --reporter-json-omitAllHeadersAndBody --reporter-html-omitAllHeadersAndBody" -- "$cur") )
552
+ COMPREPLY=( $(compgen -W "-e --environment -g --globals --output -n --iteration-count -d --iteration-data --iteration-data-dataset --iteration-data-view --dataset -i --global-var --env-var --integration-id --postman-api-key --alias --bail --ignore-redirects -x --suppress-exit-code --silent --disable-unicode --delay-request --timeout --timeout-request --timeout-script --working-dir --no-insecure-file-read -k --insecure --ssl-client-cert-list --ssl-client-cert --ssl-client-key --ssl-client-passphrase --ssl-extra-ca-certs --cookie-jar --export-cookie-jar --verbose --mock --port --use-mock --simulate --simulation --simulate-workspace --no-simulate-history --report-events --no-report-events -h --help" -- "$cur") )
416
553
  return 0
417
554
  fi
418
555
  case "$prev" in
@@ -422,9 +559,6 @@ _postman_collection_run() {
422
559
  -g|--globals)
423
560
  _postman_filematch '!*.@(json)' "$cur"
424
561
  return 0 ;;
425
- -r|--reporters)
426
- COMPREPLY=( $(compgen -W "cli json junit html" -- "$cur") )
427
- return 0 ;;
428
562
  -d|--iteration-data)
429
563
  _postman_filematch '!*.@(json|csv)' "$cur"
430
564
  return 0 ;;
@@ -464,15 +598,6 @@ _postman_collection_run() {
464
598
  --simulate)
465
599
  _postman_filematch '!*.@(sim.yaml|yaml|yml)' "$cur"
466
600
  return 0 ;;
467
- --reporter-json-export)
468
- _postman_filematch '!*.@(json|xml|html)' "$cur"
469
- return 0 ;;
470
- --reporter-junit-export)
471
- _postman_filematch '!*.@(json|xml|html)' "$cur"
472
- return 0 ;;
473
- --reporter-html-export)
474
- _postman_filematch '!*.@(json|xml|html)' "$cur"
475
- return 0 ;;
476
601
  esac
477
602
  _postman_filematch '!*.@(json)' "$cur"
478
603
  }
@@ -482,7 +607,7 @@ _postman_environment() {
482
607
  if [[ "$cur" == -* ]]; then
483
608
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
484
609
  else
485
- COMPREPLY=( $(compgen -W "new list get var lint" -- "$cur") )
610
+ COMPREPLY=( $(compgen -W "new list get delete var lint" -- "$cur") )
486
611
  fi
487
612
  return 0
488
613
  fi
@@ -490,6 +615,7 @@ _postman_environment() {
490
615
  new) _postman_environment_new ;;
491
616
  list) _postman_environment_list ;;
492
617
  get) _postman_environment_get ;;
618
+ delete) _postman_environment_delete ;;
493
619
  var) _postman_environment_var ;;
494
620
  lint) _postman_environment_lint ;;
495
621
  esac
@@ -515,7 +641,15 @@ _postman_environment_list() {
515
641
 
516
642
  _postman_environment_get() {
517
643
  if [[ "$cur" == -* ]]; then
518
- COMPREPLY=( $(compgen -W "--verbose --json --show-secrets -h --help" -- "$cur") )
644
+ COMPREPLY=( $(compgen -W "--verbose --json -h --help" -- "$cur") )
645
+ return 0
646
+ fi
647
+ _postman_filematch '!*.@(json)' "$cur"
648
+ }
649
+
650
+ _postman_environment_delete() {
651
+ if [[ "$cur" == -* ]]; then
652
+ COMPREPLY=( $(compgen -W "-y --yes --verbose --json -h --help" -- "$cur") )
519
653
  return 0
520
654
  fi
521
655
  _postman_filematch '!*.@(json)' "$cur"
@@ -539,7 +673,7 @@ _postman_environment_var() {
539
673
 
540
674
  _postman_environment_var_set() {
541
675
  if [[ "$cur" == -* ]]; then
542
- COMPREPLY=( $(compgen -W "-e --environment --verbose --json -h --help" -- "$cur") )
676
+ COMPREPLY=( $(compgen -W "-e --environment --secret-id --vault-id -w --workspace --verbose --json -h --help" -- "$cur") )
543
677
  return 0
544
678
  fi
545
679
  case "$prev" in
@@ -551,7 +685,7 @@ _postman_environment_var_set() {
551
685
 
552
686
  _postman_environment_var_get() {
553
687
  if [[ "$cur" == -* ]]; then
554
- COMPREPLY=( $(compgen -W "-e --environment --verbose --json --show-secrets -h --help" -- "$cur") )
688
+ COMPREPLY=( $(compgen -W "-e --environment --verbose --json -h --help" -- "$cur") )
555
689
  return 0
556
690
  fi
557
691
  case "$prev" in
@@ -590,15 +724,83 @@ _postman_globals() {
590
724
  if [[ "$cur" == -* ]]; then
591
725
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
592
726
  else
593
- COMPREPLY=( $(compgen -W "lint" -- "$cur") )
727
+ COMPREPLY=( $(compgen -W "get var lint" -- "$cur") )
594
728
  fi
595
729
  return 0
596
730
  fi
597
731
  case "$subcmd" in
732
+ get) _postman_globals_get ;;
733
+ var) _postman_globals_var ;;
598
734
  lint) _postman_globals_lint ;;
599
735
  esac
600
736
  }
601
737
 
738
+ _postman_globals_get() {
739
+ if [[ "$cur" == -* ]]; then
740
+ COMPREPLY=( $(compgen -W "-w --workspace --workspace-path --verbose --json -h --help" -- "$cur") )
741
+ return 0
742
+ fi
743
+ case "$prev" in
744
+ --workspace-path)
745
+ _postman_filematch '!*.@(json)' "$cur"
746
+ return 0 ;;
747
+ esac
748
+ }
749
+
750
+ _postman_globals_var() {
751
+ if [[ -z "$subcmd" ]]; then
752
+ if [[ "$cur" == -* ]]; then
753
+ COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
754
+ else
755
+ COMPREPLY=( $(compgen -W "set get unset" -- "$cur") )
756
+ fi
757
+ return 0
758
+ fi
759
+ case "$subcmd" in
760
+ set) _postman_globals_var_set ;;
761
+ get) _postman_globals_var_get ;;
762
+ unset) _postman_globals_var_unset ;;
763
+ esac
764
+ }
765
+
766
+ _postman_globals_var_set() {
767
+ if [[ "$cur" == -* ]]; then
768
+ COMPREPLY=( $(compgen -W "-w --workspace --secret-id --vault-id --workspace-path --verbose --json -h --help" -- "$cur") )
769
+ return 0
770
+ fi
771
+ case "$prev" in
772
+ --workspace-path)
773
+ _postman_filematch '!*.@(json)' "$cur"
774
+ return 0 ;;
775
+ esac
776
+ }
777
+
778
+ _postman_globals_var_get() {
779
+ if [[ "$cur" == -* ]]; then
780
+ COMPREPLY=( $(compgen -W "-w --workspace --workspace-path --verbose --json -h --help" -- "$cur") )
781
+ return 0
782
+ fi
783
+ case "$prev" in
784
+ --workspace-path)
785
+ _postman_filematch '!*.@(json)' "$cur"
786
+ return 0 ;;
787
+ esac
788
+ _postman_filematch '!*.@(json)' "$cur"
789
+ }
790
+
791
+ _postman_globals_var_unset() {
792
+ if [[ "$cur" == -* ]]; then
793
+ COMPREPLY=( $(compgen -W "-w --workspace --workspace-path --verbose --json -h --help" -- "$cur") )
794
+ return 0
795
+ fi
796
+ case "$prev" in
797
+ --workspace-path)
798
+ _postman_filematch '!*.@(json)' "$cur"
799
+ return 0 ;;
800
+ esac
801
+ _postman_filematch '!*.@(json)' "$cur"
802
+ }
803
+
602
804
  _postman_globals_lint() {
603
805
  if [[ "$cur" == -* ]]; then
604
806
  COMPREPLY=( $(compgen -W "-f --fail-severity -o --output -h --help" -- "$cur") )
@@ -776,17 +978,31 @@ _postman_spec_file() {
776
978
  if [[ "$cur" == -* ]]; then
777
979
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
778
980
  else
779
- COMPREPLY=( $(compgen -W "add update rm" -- "$cur") )
981
+ COMPREPLY=( $(compgen -W "get add update rm" -- "$cur") )
780
982
  fi
781
983
  return 0
782
984
  fi
783
985
  case "$subcmd" in
986
+ get) _postman_spec_file_get ;;
784
987
  add) _postman_spec_file_add ;;
785
988
  update) _postman_spec_file_update ;;
786
989
  rm) _postman_spec_file_rm ;;
787
990
  esac
788
991
  }
789
992
 
993
+ _postman_spec_file_get() {
994
+ if [[ "$cur" == -* ]]; then
995
+ COMPREPLY=( $(compgen -W "--json --api-key -h --help" -- "$cur") )
996
+ return 0
997
+ fi
998
+ case "$prev" in
999
+ --api-key)
1000
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
1001
+ return 0 ;;
1002
+ esac
1003
+ _postman_filematch '!*.@(json)' "$cur"
1004
+ }
1005
+
790
1006
  _postman_spec_file_add() {
791
1007
  if [[ "$cur" == -* ]]; then
792
1008
  COMPREPLY=( $(compgen -W "-c --content --api-key -h --help" -- "$cur") )
@@ -881,7 +1097,7 @@ _postman_spec_sync() {
881
1097
 
882
1098
  _postman_spec_sync_collection() {
883
1099
  if [[ "$cur" == -* ]]; then
884
- COMPREPLY=( $(compgen -W "--collection-id --api-key -h --help" -- "$cur") )
1100
+ COMPREPLY=( $(compgen -W "--collection-id --api-key --force -h --help" -- "$cur") )
885
1101
  return 0
886
1102
  fi
887
1103
  case "$prev" in
@@ -941,7 +1157,7 @@ _postman_monitor_run() {
941
1157
 
942
1158
  _postman_monitor_create() {
943
1159
  if [[ "$cur" == -* ]]; then
944
- COMPREPLY=( $(compgen -W "-c --collection --name -e --environment -w --workspace --schedule --timezone --runner --notify-email --notification-limit --retry --timeout --delay --strict-ssl --insecure --follow-redirects --block-redirects --dataset-id --dataset-view-id --iteration-count --iteration-strategy --no-run-now --api-key --json -h --help" -- "$cur") )
1160
+ COMPREPLY=( $(compgen -W "-c --collection --name -e --environment -w --workspace --schedule --timezone --runner -i --item --notify-email --notification-limit --retry --timeout --delay --strict-ssl --insecure --follow-redirects --block-redirects --dataset-id --dataset-view-id --iteration-count --iteration-strategy --no-run-now --api-key --json -h --help" -- "$cur") )
945
1161
  return 0
946
1162
  fi
947
1163
  case "$prev" in
@@ -953,7 +1169,7 @@ _postman_monitor_create() {
953
1169
 
954
1170
  _postman_monitor_update() {
955
1171
  if [[ "$cur" == -* ]]; then
956
- COMPREPLY=( $(compgen -W "--name --schedule --timezone --runner --notify-email --clear-notifications -e --environment --clear-environment --notification-limit --retry --timeout --delay --strict-ssl --insecure --follow-redirects --block-redirects --dataset-id --dataset-view-id --iteration-count --iteration-strategy --api-key --json -h --help" -- "$cur") )
1172
+ COMPREPLY=( $(compgen -W "--name --schedule --timezone --runner -i --item --clear-items --notify-email --clear-notifications -e --environment --clear-environment --notification-limit --retry --timeout --delay --strict-ssl --insecure --follow-redirects --block-redirects --dataset-id --dataset-view-id --iteration-count --iteration-strategy --api-key --json -h --help" -- "$cur") )
957
1173
  return 0
958
1174
  fi
959
1175
  case "$prev" in
@@ -1126,7 +1342,7 @@ _postman_workspace() {
1126
1342
 
1127
1343
  _postman_workspace_list() {
1128
1344
  if [[ "$cur" == -* ]]; then
1129
- COMPREPLY=( $(compgen -W "-f --filter -t --type --verbose --debug --json -h --help" -- "$cur") )
1345
+ COMPREPLY=( $(compgen -W "-f --filter -t --type --cursor --verbose --debug --json -h --help" -- "$cur") )
1130
1346
  return 0
1131
1347
  fi
1132
1348
  case "$prev" in
@@ -1135,14 +1351,14 @@ _postman_workspace_list() {
1135
1351
 
1136
1352
  _postman_workspace_prepare() {
1137
1353
  if [[ "$cur" == -* ]]; then
1138
- COMPREPLY=( $(compgen -W "--verbose -h --help" -- "$cur") )
1354
+ COMPREPLY=( $(compgen -W "--verbose --json -h --help" -- "$cur") )
1139
1355
  return 0
1140
1356
  fi
1141
1357
  }
1142
1358
 
1143
1359
  _postman_workspace_push() {
1144
1360
  if [[ "$cur" == -* ]]; then
1145
- COMPREPLY=( $(compgen -W "--no-prepare -y --yes --push-strategy --verbose --report-events --no-report-events -h --help" -- "$cur") )
1361
+ COMPREPLY=( $(compgen -W "--no-prepare -y --yes --push-strategy --json --verbose --report-events --no-report-events -h --help" -- "$cur") )
1146
1362
  return 0
1147
1363
  fi
1148
1364
  case "$prev" in
@@ -1169,7 +1385,7 @@ _postman_workspace_get() {
1169
1385
 
1170
1386
  _postman_workspace_create() {
1171
1387
  if [[ "$cur" == -* ]]; then
1172
- COMPREPLY=( $(compgen -W "--visibility --name --summary --team-id --team-role --path --no-connect --force -h --help" -- "$cur") )
1388
+ COMPREPLY=( $(compgen -W "--visibility --name --summary --team-id --team-role --path --no-connect --force --json -h --help" -- "$cur") )
1173
1389
  return 0
1174
1390
  fi
1175
1391
  case "$prev" in
@@ -1190,7 +1406,7 @@ _postman_workspace_delete() {
1190
1406
 
1191
1407
  _postman_workspace_pull() {
1192
1408
  if [[ "$cur" == -* ]]; then
1193
- COMPREPLY=( $(compgen -W "-y --yes --source-workspace --verbose -h --help" -- "$cur") )
1409
+ COMPREPLY=( $(compgen -W "-y --yes --source-workspace --json --verbose -h --help" -- "$cur") )
1194
1410
  return 0
1195
1411
  fi
1196
1412
  case "$prev" in
@@ -1199,7 +1415,7 @@ _postman_workspace_pull() {
1199
1415
 
1200
1416
  _postman_workspace_connect_git() {
1201
1417
  if [[ "$cur" == -* ]]; then
1202
- COMPREPLY=( $(compgen -W "--verbose -h --help" -- "$cur") )
1418
+ COMPREPLY=( $(compgen -W "--verbose --json -h --help" -- "$cur") )
1203
1419
  return 0
1204
1420
  fi
1205
1421
  _postman_filematch '!*.@(json)' "$cur"
@@ -1207,7 +1423,7 @@ _postman_workspace_connect_git() {
1207
1423
 
1208
1424
  _postman_workspace_disconnect_git() {
1209
1425
  if [[ "$cur" == -* ]]; then
1210
- COMPREPLY=( $(compgen -W "-y --yes --verbose -h --help" -- "$cur") )
1426
+ COMPREPLY=( $(compgen -W "-y --yes --verbose --json -h --help" -- "$cur") )
1211
1427
  return 0
1212
1428
  fi
1213
1429
  }
@@ -1249,19 +1465,20 @@ _postman_performance() {
1249
1465
  if [[ "$cur" == -* ]]; then
1250
1466
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
1251
1467
  else
1252
- COMPREPLY=( $(compgen -W "run list" -- "$cur") )
1468
+ COMPREPLY=( $(compgen -W "run list get" -- "$cur") )
1253
1469
  fi
1254
1470
  return 0
1255
1471
  fi
1256
1472
  case "$subcmd" in
1257
1473
  run) _postman_performance_run ;;
1258
1474
  list) _postman_performance_list ;;
1475
+ get) _postman_performance_get ;;
1259
1476
  esac
1260
1477
  }
1261
1478
 
1262
1479
  _postman_performance_run() {
1263
1480
  if [[ "$cur" == -* ]]; then
1264
- COMPREPLY=( $(compgen -W "-e --environment -g --globals --setup-collection --teardown-collection --vu-count -d --duration -p --load-profile --data-file --ssl-client-cert-list --ssl-client-cert --ssl-client-key --ssl-client-passphrase -k --insecure --ssl-extra-ca-certs --dataset-id --dataset-view-id --dataset-distribution --postman-api-key --output --runner --pass-if --use-mock --dataset -h --help" -- "$cur") )
1481
+ COMPREPLY=( $(compgen -W "-e --environment -g --globals --setup-collection --teardown-collection --peak-vu --vu-count --base-vu -d --duration -p --load-profile -s --load-segments --data-file --ssl-client-cert-list --ssl-client-cert --ssl-client-key --ssl-client-passphrase -k --insecure --ssl-extra-ca-certs --dataset-id --dataset-view-id --dataset-distribution --postman-api-key --output --runner --disable-unicode --pass-if --use-mock --dataset -h --help" -- "$cur") )
1265
1482
  return 0
1266
1483
  fi
1267
1484
  case "$prev" in
@@ -1289,7 +1506,16 @@ _postman_performance_run() {
1289
1506
 
1290
1507
  _postman_performance_list() {
1291
1508
  if [[ "$cur" == -* ]]; then
1292
- COMPREPLY=( $(compgen -W "-c --collection-id --cursor --json --timeout -h --help" -- "$cur") )
1509
+ COMPREPLY=( $(compgen -W "-c --collection-id --cursor --output --json --timeout -h --help" -- "$cur") )
1510
+ return 0
1511
+ fi
1512
+ case "$prev" in
1513
+ esac
1514
+ }
1515
+
1516
+ _postman_performance_get() {
1517
+ if [[ "$cur" == -* ]]; then
1518
+ COMPREPLY=( $(compgen -W "--output --json --timeout -h --help" -- "$cur") )
1293
1519
  return 0
1294
1520
  fi
1295
1521
  case "$prev" in
@@ -1412,13 +1638,31 @@ _postman_flows_get_run() {
1412
1638
 
1413
1639
  _postman_request() {
1414
1640
  if [[ "$cur" == -* ]]; then
1415
- COMPREPLY=( $(compgen -W "-H --header -d --body -f --form -e --environment --timeout --redirects-ignore --redirects-max --redirects-follow-method --redirects-remove-referrer --retry --retry-delay --script-pre-request --script-post-request --dataset -o --output --verbose --response-only --debug --report-events --no-report-events -h --help --auth-basic-username --auth-basic-password --auth-bearer-token --auth-digest-username --auth-digest-password --auth-oauth1-consumerKey --auth-oauth1-consumerSecret --auth-oauth1-token --auth-oauth1-tokenSecret --auth-oauth2-accessToken --auth-oauth2-tokenType --auth-hawk-authId --auth-hawk-authKey --auth-hawk-algorithm --auth-aws-accessKey --auth-aws-secretKey --auth-aws-region --auth-aws-service --auth-aws-sessionToken --auth-ntlm-username --auth-ntlm-password --auth-ntlm-domain --auth-ntlm-workstation --auth-apikey-key --auth-apikey-value --auth-apikey-in" -- "$cur") )
1641
+ COMPREPLY=( $(compgen -W "-H --header -d --body -f --form -e --environment --timeout --redirects-ignore --redirects-max --redirects-follow-method --redirects-remove-referrer -k --insecure --ssl-client-cert-list --ssl-client-cert --ssl-client-key --ssl-client-passphrase --ssl-extra-ca-certs --cookie-jar --export-cookie-jar --retry --retry-delay --script-pre-request --script-post-request --dataset -o --output --verbose --response-only --debug --report-events --no-report-events -h --help --auth-basic-username --auth-basic-password --auth-bearer-token --auth-digest-username --auth-digest-password --auth-oauth1-consumerKey --auth-oauth1-consumerSecret --auth-oauth1-token --auth-oauth1-tokenSecret --auth-oauth2-accessToken --auth-oauth2-tokenType --auth-hawk-authId --auth-hawk-authKey --auth-hawk-algorithm --auth-aws-accessKey --auth-aws-secretKey --auth-aws-region --auth-aws-service --auth-aws-sessionToken --auth-ntlm-username --auth-ntlm-password --auth-ntlm-domain --auth-ntlm-workstation --auth-apikey-key --auth-apikey-value --auth-apikey-in" -- "$cur") )
1416
1642
  return 0
1417
1643
  fi
1418
1644
  case "$prev" in
1419
1645
  -e|--environment)
1420
1646
  _postman_filematch '!*.@(json)' "$cur"
1421
1647
  return 0 ;;
1648
+ --ssl-client-cert-list)
1649
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
1650
+ return 0 ;;
1651
+ --ssl-client-cert)
1652
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
1653
+ return 0 ;;
1654
+ --ssl-client-key)
1655
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
1656
+ return 0 ;;
1657
+ --ssl-extra-ca-certs)
1658
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
1659
+ return 0 ;;
1660
+ --cookie-jar)
1661
+ _postman_filematch '!*.@(json)' "$cur"
1662
+ return 0 ;;
1663
+ --export-cookie-jar)
1664
+ _postman_filematch '!*.@(json)' "$cur"
1665
+ return 0 ;;
1422
1666
  --dataset)
1423
1667
  _postman_filematch '!*.@(json)' "$cur"
1424
1668
  return 0 ;;
@@ -1582,7 +1826,7 @@ _postman_mock_generate() {
1582
1826
 
1583
1827
  _postman_mock_run() {
1584
1828
  if [[ "$cur" == -* ]]; then
1585
- COMPREPLY=( $(compgen -W "-e --environment -g --globals -p --port --api-key -w --workspace --no-history --dataset -h --help" -- "$cur") )
1829
+ COMPREPLY=( $(compgen -W "-e --environment -g --globals -p --port --api-key -w --workspace --no-history --output --dataset -h --help" -- "$cur") )
1586
1830
  return 0
1587
1831
  fi
1588
1832
  case "$prev" in
@@ -1738,23 +1982,47 @@ _postman_application_setup_capture() {
1738
1982
  esac
1739
1983
  }
1740
1984
 
1741
- _postman_simulate() {
1985
+ _postman_simulation() {
1742
1986
  if [[ -z "$subcmd" ]]; then
1743
1987
  if [[ "$cur" == -* ]]; then
1744
1988
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
1745
1989
  else
1746
- COMPREPLY=( $(compgen -W "run" -- "$cur") )
1990
+ COMPREPLY=( $(compgen -W "create list get run push deploy delete" -- "$cur") )
1747
1991
  fi
1748
1992
  return 0
1749
1993
  fi
1750
1994
  case "$subcmd" in
1751
- run) _postman_simulate_run ;;
1995
+ create) _postman_simulation_create ;;
1996
+ list) _postman_simulation_list ;;
1997
+ get) _postman_simulation_get ;;
1998
+ run) _postman_simulation_run ;;
1999
+ push) _postman_simulation_push ;;
2000
+ deploy) _postman_simulation_deploy ;;
2001
+ delete) _postman_simulation_delete ;;
1752
2002
  esac
1753
2003
  }
1754
2004
 
1755
- _postman_simulate_run() {
2005
+ _postman_simulation_create() {
1756
2006
  if [[ "$cur" == -* ]]; then
1757
- COMPREPLY=( $(compgen -W "-w --workspace --simulation --api-key --no-history -h --help" -- "$cur") )
2007
+ COMPREPLY=( $(compgen -W "-n --name --mock --routing -o --output --force -w --workspace --api-key -h --help" -- "$cur") )
2008
+ return 0
2009
+ fi
2010
+ case "$prev" in
2011
+ --mock)
2012
+ _postman_filematch '!*.@(json)' "$cur"
2013
+ return 0 ;;
2014
+ -o|--output)
2015
+ _postman_filematch '!*.@(json)' "$cur"
2016
+ return 0 ;;
2017
+ --api-key)
2018
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
2019
+ return 0 ;;
2020
+ esac
2021
+ }
2022
+
2023
+ _postman_simulation_list() {
2024
+ if [[ "$cur" == -* ]]; then
2025
+ COMPREPLY=( $(compgen -W "-w --workspace --api-key --json -h --help" -- "$cur") )
1758
2026
  return 0
1759
2027
  fi
1760
2028
  case "$prev" in
@@ -1765,6 +2033,75 @@ _postman_simulate_run() {
1765
2033
  _postman_filematch '!*.@(json)' "$cur"
1766
2034
  }
1767
2035
 
2036
+ _postman_simulation_get() {
2037
+ if [[ "$cur" == -* ]]; then
2038
+ COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
2039
+ return 0
2040
+ fi
2041
+ case "$prev" in
2042
+ --api-key)
2043
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
2044
+ return 0 ;;
2045
+ esac
2046
+ }
2047
+
2048
+ _postman_simulation_run() {
2049
+ if [[ "$cur" == -* ]]; then
2050
+ COMPREPLY=( $(compgen -W "-e --environment -g --globals -p --port --dataset -w --workspace --simulation --api-key --no-history --output --proxy --proxy-port --scenario --session --log-format --log-body --doctor -h --help" -- "$cur") )
2051
+ return 0
2052
+ fi
2053
+ case "$prev" in
2054
+ -e|--environment)
2055
+ _postman_filematch '!*.@(json)' "$cur"
2056
+ return 0 ;;
2057
+ -g|--globals)
2058
+ _postman_filematch '!*.@(json)' "$cur"
2059
+ return 0 ;;
2060
+ --dataset)
2061
+ _postman_filematch '!*.@(json)' "$cur"
2062
+ return 0 ;;
2063
+ --api-key)
2064
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
2065
+ return 0 ;;
2066
+ esac
2067
+ }
2068
+
2069
+ _postman_simulation_push() {
2070
+ if [[ "$cur" == -* ]]; then
2071
+ COMPREPLY=( $(compgen -W "-w --workspace --api-key -h --help" -- "$cur") )
2072
+ return 0
2073
+ fi
2074
+ case "$prev" in
2075
+ --api-key)
2076
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
2077
+ return 0 ;;
2078
+ esac
2079
+ }
2080
+
2081
+ _postman_simulation_deploy() {
2082
+ if [[ "$cur" == -* ]]; then
2083
+ COMPREPLY=( $(compgen -W "-w --workspace -n --name -s --slug --private -y --yes --api-key -h --help" -- "$cur") )
2084
+ return 0
2085
+ fi
2086
+ case "$prev" in
2087
+ --api-key)
2088
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
2089
+ return 0 ;;
2090
+ esac
2091
+ }
2092
+
2093
+ _postman_simulation_delete() {
2094
+ if [[ "$cur" == -* ]]; then
2095
+ COMPREPLY=( $(compgen -W "-y --yes --api-key -h --help" -- "$cur") )
2096
+ return 0
2097
+ fi
2098
+ case "$prev" in
2099
+ --api-key)
2100
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
2101
+ return 0 ;;
2102
+ esac
2103
+ }
2104
+
1768
2105
  _postman_describe() {
1769
2106
  if [[ -z "$subcmd" ]]; then
1770
2107
  if [[ "$cur" == -* ]]; then
@@ -2549,12 +2886,13 @@ _postman_dependency() {
2549
2886
  if [[ "$cur" == -* ]]; then
2550
2887
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
2551
2888
  else
2552
- COMPREPLY=( $(compgen -W "add list install update remove" -- "$cur") )
2889
+ COMPREPLY=( $(compgen -W "add get list install update remove" -- "$cur") )
2553
2890
  fi
2554
2891
  return 0
2555
2892
  fi
2556
2893
  case "$subcmd" in
2557
2894
  add) _postman_dependency_add ;;
2895
+ get) _postman_dependency_get ;;
2558
2896
  list) _postman_dependency_list ;;
2559
2897
  install) _postman_dependency_install ;;
2560
2898
  update) _postman_dependency_update ;;
@@ -2571,6 +2909,15 @@ _postman_dependency_add() {
2571
2909
  esac
2572
2910
  }
2573
2911
 
2912
+ _postman_dependency_get() {
2913
+ if [[ "$cur" == -* ]]; then
2914
+ COMPREPLY=( $(compgen -W "--type --json -h --help" -- "$cur") )
2915
+ return 0
2916
+ fi
2917
+ case "$prev" in
2918
+ esac
2919
+ }
2920
+
2574
2921
  _postman_dependency_list() {
2575
2922
  if [[ "$cur" == -* ]]; then
2576
2923
  COMPREPLY=( $(compgen -W "--type --json -h --help" -- "$cur") )
@@ -2607,4 +2954,44 @@ _postman_dependency_remove() {
2607
2954
  esac
2608
2955
  }
2609
2956
 
2957
+ _postman_secret() {
2958
+ if [[ -z "$subcmd" ]]; then
2959
+ if [[ "$cur" == -* ]]; then
2960
+ COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
2961
+ else
2962
+ COMPREPLY=( $(compgen -W "create list" -- "$cur") )
2963
+ fi
2964
+ return 0
2965
+ fi
2966
+ case "$subcmd" in
2967
+ create) _postman_secret_create ;;
2968
+ list) _postman_secret_list ;;
2969
+ esac
2970
+ }
2971
+
2972
+ _postman_secret_create() {
2973
+ if [[ "$cur" == -* ]]; then
2974
+ COMPREPLY=( $(compgen -W "--team-id -w --workspace --api-key --terminal --value-stdin --timeout -h --help" -- "$cur") )
2975
+ return 0
2976
+ fi
2977
+ case "$prev" in
2978
+ --api-key)
2979
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
2980
+ return 0 ;;
2981
+ esac
2982
+ _postman_filematch '!*.@(json)' "$cur"
2983
+ }
2984
+
2985
+ _postman_secret_list() {
2986
+ if [[ "$cur" == -* ]]; then
2987
+ COMPREPLY=( $(compgen -W "-w --workspace --api-key --json -h --help" -- "$cur") )
2988
+ return 0
2989
+ fi
2990
+ case "$prev" in
2991
+ --api-key)
2992
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
2993
+ return 0 ;;
2994
+ esac
2995
+ }
2996
+
2610
2997
  complete -F _postman postman