postman-cli-completion 1.67.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.67.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 get publish 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
@@ -187,12 +188,16 @@ _postman_collection() {
187
188
  new) _postman_collection_new ;;
188
189
  migrate) _postman_collection_migrate ;;
189
190
  lint) _postman_collection_lint ;;
191
+ ai-readiness) _postman_collection_ai_readiness ;;
190
192
  get) _postman_collection_get ;;
193
+ delete) _postman_collection_delete ;;
191
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
@@ -230,6 +235,19 @@ _postman_collection_lint() {
230
235
  _postman_filematch '!*.@(json)' "$cur"
231
236
  }
232
237
 
238
+ _postman_collection_ai_readiness() {
239
+ if [[ "$cur" == -* ]]; then
240
+ COMPREPLY=( $(compgen -W "-o --output --export --min-score -h --help" -- "$cur") )
241
+ return 0
242
+ fi
243
+ case "$prev" in
244
+ --export)
245
+ _postman_filematch '!*.@(json)' "$cur"
246
+ return 0 ;;
247
+ esac
248
+ _postman_filematch '!*.@(json)' "$cur"
249
+ }
250
+
233
251
  _postman_collection_get() {
234
252
  if [[ "$cur" == -* ]]; then
235
253
  COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
@@ -242,6 +260,18 @@ _postman_collection_get() {
242
260
  esac
243
261
  }
244
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
+
245
275
  _postman_collection_publish() {
246
276
  if [[ "$cur" == -* ]]; then
247
277
  COMPREPLY=( $(compgen -W "--target --environment --title --description --note --api-key --json -h --help" -- "$cur") )
@@ -317,12 +347,13 @@ _postman_collection_request() {
317
347
  if [[ "$cur" == -* ]]; then
318
348
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
319
349
  else
320
- COMPREPLY=( $(compgen -W "add update rm remove" -- "$cur") )
350
+ COMPREPLY=( $(compgen -W "add get update rm remove" -- "$cur") )
321
351
  fi
322
352
  return 0
323
353
  fi
324
354
  case "$subcmd" in
325
355
  add) _postman_collection_request_add ;;
356
+ get) _postman_collection_request_get ;;
326
357
  update) _postman_collection_request_update ;;
327
358
  rm|remove) _postman_collection_request_rm ;;
328
359
  esac
@@ -337,6 +368,15 @@ _postman_collection_request_add() {
337
368
  esac
338
369
  }
339
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
+
340
380
  _postman_collection_request_update() {
341
381
  if [[ "$cur" == -* ]]; then
342
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") )
@@ -366,12 +406,13 @@ _postman_collection_folder() {
366
406
  if [[ "$cur" == -* ]]; then
367
407
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
368
408
  else
369
- COMPREPLY=( $(compgen -W "add update rm remove" -- "$cur") )
409
+ COMPREPLY=( $(compgen -W "add get update rm remove" -- "$cur") )
370
410
  fi
371
411
  return 0
372
412
  fi
373
413
  case "$subcmd" in
374
414
  add) _postman_collection_folder_add ;;
415
+ get) _postman_collection_folder_get ;;
375
416
  update) _postman_collection_folder_update ;;
376
417
  rm|remove) _postman_collection_folder_rm ;;
377
418
  esac
@@ -386,6 +427,15 @@ _postman_collection_folder_add() {
386
427
  esac
387
428
  }
388
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
+
389
439
  _postman_collection_folder_update() {
390
440
  if [[ "$cur" == -* ]]; then
391
441
  COMPREPLY=( $(compgen -W "--collection --folder --name --description --auth --scripts -w --workspace --json -h --help" -- "$cur") )
@@ -404,6 +454,90 @@ _postman_collection_folder_rm() {
404
454
  esac
405
455
  }
406
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
+
407
541
  _postman_collection_list() {
408
542
  if [[ "$cur" == -* ]]; then
409
543
  COMPREPLY=( $(compgen -W "-w --workspace -f --filter --verbose --debug --json -h --help" -- "$cur") )
@@ -415,7 +549,7 @@ _postman_collection_list() {
415
549
 
416
550
  _postman_collection_run() {
417
551
  if [[ "$cur" == -* ]]; then
418
- 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") )
419
553
  return 0
420
554
  fi
421
555
  case "$prev" in
@@ -425,9 +559,6 @@ _postman_collection_run() {
425
559
  -g|--globals)
426
560
  _postman_filematch '!*.@(json)' "$cur"
427
561
  return 0 ;;
428
- -r|--reporters)
429
- COMPREPLY=( $(compgen -W "cli json junit html" -- "$cur") )
430
- return 0 ;;
431
562
  -d|--iteration-data)
432
563
  _postman_filematch '!*.@(json|csv)' "$cur"
433
564
  return 0 ;;
@@ -467,15 +598,6 @@ _postman_collection_run() {
467
598
  --simulate)
468
599
  _postman_filematch '!*.@(sim.yaml|yaml|yml)' "$cur"
469
600
  return 0 ;;
470
- --reporter-json-export)
471
- _postman_filematch '!*.@(json|xml|html)' "$cur"
472
- return 0 ;;
473
- --reporter-junit-export)
474
- _postman_filematch '!*.@(json|xml|html)' "$cur"
475
- return 0 ;;
476
- --reporter-html-export)
477
- _postman_filematch '!*.@(json|xml|html)' "$cur"
478
- return 0 ;;
479
601
  esac
480
602
  _postman_filematch '!*.@(json)' "$cur"
481
603
  }
@@ -485,7 +607,7 @@ _postman_environment() {
485
607
  if [[ "$cur" == -* ]]; then
486
608
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
487
609
  else
488
- COMPREPLY=( $(compgen -W "new list get var lint" -- "$cur") )
610
+ COMPREPLY=( $(compgen -W "new list get delete var lint" -- "$cur") )
489
611
  fi
490
612
  return 0
491
613
  fi
@@ -493,6 +615,7 @@ _postman_environment() {
493
615
  new) _postman_environment_new ;;
494
616
  list) _postman_environment_list ;;
495
617
  get) _postman_environment_get ;;
618
+ delete) _postman_environment_delete ;;
496
619
  var) _postman_environment_var ;;
497
620
  lint) _postman_environment_lint ;;
498
621
  esac
@@ -518,7 +641,15 @@ _postman_environment_list() {
518
641
 
519
642
  _postman_environment_get() {
520
643
  if [[ "$cur" == -* ]]; then
521
- 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") )
522
653
  return 0
523
654
  fi
524
655
  _postman_filematch '!*.@(json)' "$cur"
@@ -542,7 +673,7 @@ _postman_environment_var() {
542
673
 
543
674
  _postman_environment_var_set() {
544
675
  if [[ "$cur" == -* ]]; then
545
- 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") )
546
677
  return 0
547
678
  fi
548
679
  case "$prev" in
@@ -554,7 +685,7 @@ _postman_environment_var_set() {
554
685
 
555
686
  _postman_environment_var_get() {
556
687
  if [[ "$cur" == -* ]]; then
557
- COMPREPLY=( $(compgen -W "-e --environment --verbose --json --show-secrets -h --help" -- "$cur") )
688
+ COMPREPLY=( $(compgen -W "-e --environment --verbose --json -h --help" -- "$cur") )
558
689
  return 0
559
690
  fi
560
691
  case "$prev" in
@@ -593,15 +724,83 @@ _postman_globals() {
593
724
  if [[ "$cur" == -* ]]; then
594
725
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
595
726
  else
596
- COMPREPLY=( $(compgen -W "lint" -- "$cur") )
727
+ COMPREPLY=( $(compgen -W "get var lint" -- "$cur") )
597
728
  fi
598
729
  return 0
599
730
  fi
600
731
  case "$subcmd" in
732
+ get) _postman_globals_get ;;
733
+ var) _postman_globals_var ;;
601
734
  lint) _postman_globals_lint ;;
602
735
  esac
603
736
  }
604
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
+
605
804
  _postman_globals_lint() {
606
805
  if [[ "$cur" == -* ]]; then
607
806
  COMPREPLY=( $(compgen -W "-f --fail-severity -o --output -h --help" -- "$cur") )
@@ -711,12 +910,13 @@ _postman_spec() {
711
910
  if [[ "$cur" == -* ]]; then
712
911
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
713
912
  else
714
- COMPREPLY=( $(compgen -W "lint list get file create generate sync delete" -- "$cur") )
913
+ COMPREPLY=( $(compgen -W "lint ai-readiness list get file create generate sync delete" -- "$cur") )
715
914
  fi
716
915
  return 0
717
916
  fi
718
917
  case "$subcmd" in
719
918
  lint) _postman_spec_lint ;;
919
+ ai-readiness) _postman_spec_ai_readiness ;;
720
920
  list) _postman_spec_list ;;
721
921
  get) _postman_spec_get ;;
722
922
  file) _postman_spec_file ;;
@@ -736,6 +936,18 @@ _postman_spec_lint() {
736
936
  esac
737
937
  }
738
938
 
939
+ _postman_spec_ai_readiness() {
940
+ if [[ "$cur" == -* ]]; then
941
+ COMPREPLY=( $(compgen -W "-o --output --export --min-score -h --help" -- "$cur") )
942
+ return 0
943
+ fi
944
+ case "$prev" in
945
+ --export)
946
+ _postman_filematch '!*.@(json)' "$cur"
947
+ return 0 ;;
948
+ esac
949
+ }
950
+
739
951
  _postman_spec_list() {
740
952
  if [[ "$cur" == -* ]]; then
741
953
  COMPREPLY=( $(compgen -W "-w --workspace --api-key --json -h --help" -- "$cur") )
@@ -766,17 +978,31 @@ _postman_spec_file() {
766
978
  if [[ "$cur" == -* ]]; then
767
979
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
768
980
  else
769
- COMPREPLY=( $(compgen -W "add update rm" -- "$cur") )
981
+ COMPREPLY=( $(compgen -W "get add update rm" -- "$cur") )
770
982
  fi
771
983
  return 0
772
984
  fi
773
985
  case "$subcmd" in
986
+ get) _postman_spec_file_get ;;
774
987
  add) _postman_spec_file_add ;;
775
988
  update) _postman_spec_file_update ;;
776
989
  rm) _postman_spec_file_rm ;;
777
990
  esac
778
991
  }
779
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
+
780
1006
  _postman_spec_file_add() {
781
1007
  if [[ "$cur" == -* ]]; then
782
1008
  COMPREPLY=( $(compgen -W "-c --content --api-key -h --help" -- "$cur") )
@@ -871,7 +1097,7 @@ _postman_spec_sync() {
871
1097
 
872
1098
  _postman_spec_sync_collection() {
873
1099
  if [[ "$cur" == -* ]]; then
874
- COMPREPLY=( $(compgen -W "--collection-id --api-key -h --help" -- "$cur") )
1100
+ COMPREPLY=( $(compgen -W "--collection-id --api-key --force -h --help" -- "$cur") )
875
1101
  return 0
876
1102
  fi
877
1103
  case "$prev" in
@@ -931,7 +1157,7 @@ _postman_monitor_run() {
931
1157
 
932
1158
  _postman_monitor_create() {
933
1159
  if [[ "$cur" == -* ]]; then
934
- 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") )
935
1161
  return 0
936
1162
  fi
937
1163
  case "$prev" in
@@ -943,7 +1169,7 @@ _postman_monitor_create() {
943
1169
 
944
1170
  _postman_monitor_update() {
945
1171
  if [[ "$cur" == -* ]]; then
946
- 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") )
947
1173
  return 0
948
1174
  fi
949
1175
  case "$prev" in
@@ -1116,7 +1342,7 @@ _postman_workspace() {
1116
1342
 
1117
1343
  _postman_workspace_list() {
1118
1344
  if [[ "$cur" == -* ]]; then
1119
- 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") )
1120
1346
  return 0
1121
1347
  fi
1122
1348
  case "$prev" in
@@ -1125,14 +1351,14 @@ _postman_workspace_list() {
1125
1351
 
1126
1352
  _postman_workspace_prepare() {
1127
1353
  if [[ "$cur" == -* ]]; then
1128
- COMPREPLY=( $(compgen -W "--verbose -h --help" -- "$cur") )
1354
+ COMPREPLY=( $(compgen -W "--verbose --json -h --help" -- "$cur") )
1129
1355
  return 0
1130
1356
  fi
1131
1357
  }
1132
1358
 
1133
1359
  _postman_workspace_push() {
1134
1360
  if [[ "$cur" == -* ]]; then
1135
- 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") )
1136
1362
  return 0
1137
1363
  fi
1138
1364
  case "$prev" in
@@ -1159,7 +1385,7 @@ _postman_workspace_get() {
1159
1385
 
1160
1386
  _postman_workspace_create() {
1161
1387
  if [[ "$cur" == -* ]]; then
1162
- 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") )
1163
1389
  return 0
1164
1390
  fi
1165
1391
  case "$prev" in
@@ -1180,7 +1406,7 @@ _postman_workspace_delete() {
1180
1406
 
1181
1407
  _postman_workspace_pull() {
1182
1408
  if [[ "$cur" == -* ]]; then
1183
- COMPREPLY=( $(compgen -W "-y --yes --source-workspace --verbose -h --help" -- "$cur") )
1409
+ COMPREPLY=( $(compgen -W "-y --yes --source-workspace --json --verbose -h --help" -- "$cur") )
1184
1410
  return 0
1185
1411
  fi
1186
1412
  case "$prev" in
@@ -1189,7 +1415,7 @@ _postman_workspace_pull() {
1189
1415
 
1190
1416
  _postman_workspace_connect_git() {
1191
1417
  if [[ "$cur" == -* ]]; then
1192
- COMPREPLY=( $(compgen -W "--verbose -h --help" -- "$cur") )
1418
+ COMPREPLY=( $(compgen -W "--verbose --json -h --help" -- "$cur") )
1193
1419
  return 0
1194
1420
  fi
1195
1421
  _postman_filematch '!*.@(json)' "$cur"
@@ -1197,7 +1423,7 @@ _postman_workspace_connect_git() {
1197
1423
 
1198
1424
  _postman_workspace_disconnect_git() {
1199
1425
  if [[ "$cur" == -* ]]; then
1200
- COMPREPLY=( $(compgen -W "-y --yes --verbose -h --help" -- "$cur") )
1426
+ COMPREPLY=( $(compgen -W "-y --yes --verbose --json -h --help" -- "$cur") )
1201
1427
  return 0
1202
1428
  fi
1203
1429
  }
@@ -1239,19 +1465,20 @@ _postman_performance() {
1239
1465
  if [[ "$cur" == -* ]]; then
1240
1466
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
1241
1467
  else
1242
- COMPREPLY=( $(compgen -W "run list" -- "$cur") )
1468
+ COMPREPLY=( $(compgen -W "run list get" -- "$cur") )
1243
1469
  fi
1244
1470
  return 0
1245
1471
  fi
1246
1472
  case "$subcmd" in
1247
1473
  run) _postman_performance_run ;;
1248
1474
  list) _postman_performance_list ;;
1475
+ get) _postman_performance_get ;;
1249
1476
  esac
1250
1477
  }
1251
1478
 
1252
1479
  _postman_performance_run() {
1253
1480
  if [[ "$cur" == -* ]]; then
1254
- 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") )
1255
1482
  return 0
1256
1483
  fi
1257
1484
  case "$prev" in
@@ -1279,7 +1506,16 @@ _postman_performance_run() {
1279
1506
 
1280
1507
  _postman_performance_list() {
1281
1508
  if [[ "$cur" == -* ]]; then
1282
- 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") )
1283
1519
  return 0
1284
1520
  fi
1285
1521
  case "$prev" in
@@ -1402,13 +1638,31 @@ _postman_flows_get_run() {
1402
1638
 
1403
1639
  _postman_request() {
1404
1640
  if [[ "$cur" == -* ]]; then
1405
- 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") )
1406
1642
  return 0
1407
1643
  fi
1408
1644
  case "$prev" in
1409
1645
  -e|--environment)
1410
1646
  _postman_filematch '!*.@(json)' "$cur"
1411
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 ;;
1412
1666
  --dataset)
1413
1667
  _postman_filematch '!*.@(json)' "$cur"
1414
1668
  return 0 ;;
@@ -1728,23 +1982,47 @@ _postman_application_setup_capture() {
1728
1982
  esac
1729
1983
  }
1730
1984
 
1731
- _postman_simulate() {
1985
+ _postman_simulation() {
1732
1986
  if [[ -z "$subcmd" ]]; then
1733
1987
  if [[ "$cur" == -* ]]; then
1734
1988
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
1735
1989
  else
1736
- COMPREPLY=( $(compgen -W "run" -- "$cur") )
1990
+ COMPREPLY=( $(compgen -W "create list get run push deploy delete" -- "$cur") )
1737
1991
  fi
1738
1992
  return 0
1739
1993
  fi
1740
1994
  case "$subcmd" in
1741
- 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 ;;
1742
2002
  esac
1743
2003
  }
1744
2004
 
1745
- _postman_simulate_run() {
2005
+ _postman_simulation_create() {
1746
2006
  if [[ "$cur" == -* ]]; then
1747
- 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") )
1748
2026
  return 0
1749
2027
  fi
1750
2028
  case "$prev" in
@@ -1755,6 +2033,75 @@ _postman_simulate_run() {
1755
2033
  _postman_filematch '!*.@(json)' "$cur"
1756
2034
  }
1757
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
+
1758
2105
  _postman_describe() {
1759
2106
  if [[ -z "$subcmd" ]]; then
1760
2107
  if [[ "$cur" == -* ]]; then
@@ -2539,12 +2886,13 @@ _postman_dependency() {
2539
2886
  if [[ "$cur" == -* ]]; then
2540
2887
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
2541
2888
  else
2542
- COMPREPLY=( $(compgen -W "add list install update remove" -- "$cur") )
2889
+ COMPREPLY=( $(compgen -W "add get list install update remove" -- "$cur") )
2543
2890
  fi
2544
2891
  return 0
2545
2892
  fi
2546
2893
  case "$subcmd" in
2547
2894
  add) _postman_dependency_add ;;
2895
+ get) _postman_dependency_get ;;
2548
2896
  list) _postman_dependency_list ;;
2549
2897
  install) _postman_dependency_install ;;
2550
2898
  update) _postman_dependency_update ;;
@@ -2561,6 +2909,15 @@ _postman_dependency_add() {
2561
2909
  esac
2562
2910
  }
2563
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
+
2564
2921
  _postman_dependency_list() {
2565
2922
  if [[ "$cur" == -* ]]; then
2566
2923
  COMPREPLY=( $(compgen -W "--type --json -h --help" -- "$cur") )
@@ -2597,4 +2954,44 @@ _postman_dependency_remove() {
2597
2954
  esac
2598
2955
  }
2599
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
+
2600
2997
  complete -F _postman postman