postman-cli-completion 1.57.0 → 1.59.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.57.0)
1
+ # Bash completion for Postman CLI (postman v1.59.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 skills collection environment globals api runner spec monitor workspace ws performance flows fl request sdk mock application app simulate context context-graph search webhook dataset dependency"
25
+ local top_commands="login signup logout init whoami update skills collection environment globals api runner spec monitor workspace ws performance flows fl request sdk mock application app simulate context context-graph search webhook dataset dependency"
26
26
  local global_flags="-v --version --silent --color -h --help -h --help"
27
27
 
28
28
  local i cmd="" subcmd=""
@@ -50,6 +50,8 @@ _postman() {
50
50
  signup) _postman_signup ;;
51
51
  logout) _postman_logout ;;
52
52
  init) _postman_init ;;
53
+ whoami) _postman_whoami ;;
54
+ update) _postman_update ;;
53
55
  skills) _postman_skills ;;
54
56
  collection) _postman_collection ;;
55
57
  environment) _postman_environment ;;
@@ -89,7 +91,7 @@ _postman_login() {
89
91
 
90
92
  _postman_signup() {
91
93
  if [[ "$cur" == -* ]]; then
92
- COMPREPLY=( $(compgen -W "--browser --json -h --help" -- "$cur") )
94
+ COMPREPLY=( $(compgen -W "--browser --wait --no-wait --json -h --help" -- "$cur") )
93
95
  return 0
94
96
  fi
95
97
  }
@@ -116,6 +118,20 @@ _postman_init() {
116
118
  _postman_filematch '!*.@(json)' "$cur"
117
119
  }
118
120
 
121
+ _postman_whoami() {
122
+ if [[ "$cur" == -* ]]; then
123
+ COMPREPLY=( $(compgen -W "--json -h --help" -- "$cur") )
124
+ return 0
125
+ fi
126
+ }
127
+
128
+ _postman_update() {
129
+ if [[ "$cur" == -* ]]; then
130
+ COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
131
+ return 0
132
+ fi
133
+ }
134
+
119
135
  _postman_skills() {
120
136
  if [[ -z "$subcmd" ]]; then
121
137
  if [[ "$cur" == -* ]]; then
@@ -152,18 +168,30 @@ _postman_collection() {
152
168
  if [[ "$cur" == -* ]]; then
153
169
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
154
170
  else
155
- COMPREPLY=( $(compgen -W "migrate lint ai-readiness run" -- "$cur") )
171
+ COMPREPLY=( $(compgen -W "new migrate lint ai-readiness get list run" -- "$cur") )
156
172
  fi
157
173
  return 0
158
174
  fi
159
175
  case "$subcmd" in
176
+ new) _postman_collection_new ;;
160
177
  migrate) _postman_collection_migrate ;;
161
178
  lint) _postman_collection_lint ;;
162
179
  ai-readiness) _postman_collection_ai_readiness ;;
180
+ get) _postman_collection_get ;;
181
+ list) _postman_collection_list ;;
163
182
  run) _postman_collection_run ;;
164
183
  esac
165
184
  }
166
185
 
186
+ _postman_collection_new() {
187
+ if [[ "$cur" == -* ]]; then
188
+ COMPREPLY=( $(compgen -W "-w --workspace --force --verbose --json -h --help" -- "$cur") )
189
+ return 0
190
+ fi
191
+ case "$prev" in
192
+ esac
193
+ }
194
+
167
195
  _postman_collection_migrate() {
168
196
  if [[ "$cur" == -* ]]; then
169
197
  COMPREPLY=( $(compgen -W "-o --output -h --help" -- "$cur") )
@@ -197,6 +225,27 @@ _postman_collection_ai_readiness() {
197
225
  _postman_filematch '!*.@(json)' "$cur"
198
226
  }
199
227
 
228
+ _postman_collection_get() {
229
+ if [[ "$cur" == -* ]]; then
230
+ COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
231
+ return 0
232
+ fi
233
+ case "$prev" in
234
+ --api-key)
235
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
236
+ return 0 ;;
237
+ esac
238
+ }
239
+
240
+ _postman_collection_list() {
241
+ if [[ "$cur" == -* ]]; then
242
+ COMPREPLY=( $(compgen -W "-w --workspace -f --filter --verbose --debug --json -h --help" -- "$cur") )
243
+ return 0
244
+ fi
245
+ case "$prev" in
246
+ esac
247
+ }
248
+
200
249
  _postman_collection_run() {
201
250
  if [[ "$cur" == -* ]]; then
202
251
  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 --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") )
@@ -269,11 +318,12 @@ _postman_environment() {
269
318
  if [[ "$cur" == -* ]]; then
270
319
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
271
320
  else
272
- COMPREPLY=( $(compgen -W "list get var lint" -- "$cur") )
321
+ COMPREPLY=( $(compgen -W "new list get var lint" -- "$cur") )
273
322
  fi
274
323
  return 0
275
324
  fi
276
325
  case "$subcmd" in
326
+ new) _postman_environment_new ;;
277
327
  list) _postman_environment_list ;;
278
328
  get) _postman_environment_get ;;
279
329
  var) _postman_environment_var ;;
@@ -281,6 +331,15 @@ _postman_environment() {
281
331
  esac
282
332
  }
283
333
 
334
+ _postman_environment_new() {
335
+ if [[ "$cur" == -* ]]; then
336
+ COMPREPLY=( $(compgen -W "-w --workspace --force --verbose --json -h --help" -- "$cur") )
337
+ return 0
338
+ fi
339
+ case "$prev" in
340
+ esac
341
+ }
342
+
284
343
  _postman_environment_list() {
285
344
  if [[ "$cur" == -* ]]; then
286
345
  COMPREPLY=( $(compgen -W "-w --workspace -f --filter --verbose --json -h --help" -- "$cur") )
@@ -328,7 +387,7 @@ _postman_environment_var_set() {
328
387
 
329
388
  _postman_environment_var_get() {
330
389
  if [[ "$cur" == -* ]]; then
331
- COMPREPLY=( $(compgen -W "-e --environment --verbose --json -h --help" -- "$cur") )
390
+ COMPREPLY=( $(compgen -W "-e --environment --verbose --json --show-secrets -h --help" -- "$cur") )
332
391
  return 0
333
392
  fi
334
393
  case "$prev" in
@@ -427,12 +486,14 @@ _postman_runner() {
427
486
  if [[ "$cur" == -* ]]; then
428
487
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
429
488
  else
430
- COMPREPLY=( $(compgen -W "start" -- "$cur") )
489
+ COMPREPLY=( $(compgen -W "start list regions" -- "$cur") )
431
490
  fi
432
491
  return 0
433
492
  fi
434
493
  case "$subcmd" in
435
494
  start) _postman_runner_start ;;
495
+ list) _postman_runner_list ;;
496
+ regions) _postman_runner_regions ;;
436
497
  esac
437
498
  }
438
499
 
@@ -451,12 +512,36 @@ _postman_runner_start() {
451
512
  esac
452
513
  }
453
514
 
515
+ _postman_runner_list() {
516
+ if [[ "$cur" == -* ]]; then
517
+ COMPREPLY=( $(compgen -W "--api-key -w --workspace --json -h --help" -- "$cur") )
518
+ return 0
519
+ fi
520
+ case "$prev" in
521
+ --api-key)
522
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
523
+ return 0 ;;
524
+ esac
525
+ }
526
+
527
+ _postman_runner_regions() {
528
+ if [[ "$cur" == -* ]]; then
529
+ COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
530
+ return 0
531
+ fi
532
+ case "$prev" in
533
+ --api-key)
534
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
535
+ return 0 ;;
536
+ esac
537
+ }
538
+
454
539
  _postman_spec() {
455
540
  if [[ -z "$subcmd" ]]; then
456
541
  if [[ "$cur" == -* ]]; then
457
542
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
458
543
  else
459
- COMPREPLY=( $(compgen -W "lint ai-readiness list get" -- "$cur") )
544
+ COMPREPLY=( $(compgen -W "lint ai-readiness list get file create generate" -- "$cur") )
460
545
  fi
461
546
  return 0
462
547
  fi
@@ -465,6 +550,9 @@ _postman_spec() {
465
550
  ai-readiness) _postman_spec_ai_readiness ;;
466
551
  list) _postman_spec_list ;;
467
552
  get) _postman_spec_get ;;
553
+ file) _postman_spec_file ;;
554
+ create) _postman_spec_create ;;
555
+ generate) _postman_spec_generate ;;
468
556
  esac
469
557
  }
470
558
 
@@ -511,26 +599,294 @@ _postman_spec_get() {
511
599
  esac
512
600
  }
513
601
 
602
+ _postman_spec_file() {
603
+ if [[ -z "$subcmd" ]]; then
604
+ if [[ "$cur" == -* ]]; then
605
+ COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
606
+ else
607
+ COMPREPLY=( $(compgen -W "add update rm" -- "$cur") )
608
+ fi
609
+ return 0
610
+ fi
611
+ case "$subcmd" in
612
+ add) _postman_spec_file_add ;;
613
+ update) _postman_spec_file_update ;;
614
+ rm) _postman_spec_file_rm ;;
615
+ esac
616
+ }
617
+
618
+ _postman_spec_file_add() {
619
+ if [[ "$cur" == -* ]]; then
620
+ COMPREPLY=( $(compgen -W "-c --content --api-key -h --help" -- "$cur") )
621
+ return 0
622
+ fi
623
+ case "$prev" in
624
+ --api-key)
625
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
626
+ return 0 ;;
627
+ esac
628
+ _postman_filematch '!*.@(json)' "$cur"
629
+ }
630
+
631
+ _postman_spec_file_update() {
632
+ if [[ "$cur" == -* ]]; then
633
+ COMPREPLY=( $(compgen -W "-c --content --api-key -h --help" -- "$cur") )
634
+ return 0
635
+ fi
636
+ case "$prev" in
637
+ --api-key)
638
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
639
+ return 0 ;;
640
+ esac
641
+ _postman_filematch '!*.@(json)' "$cur"
642
+ }
643
+
644
+ _postman_spec_file_rm() {
645
+ if [[ "$cur" == -* ]]; then
646
+ COMPREPLY=( $(compgen -W "-y --yes --api-key -h --help" -- "$cur") )
647
+ return 0
648
+ fi
649
+ case "$prev" in
650
+ --api-key)
651
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
652
+ return 0 ;;
653
+ esac
654
+ _postman_filematch '!*.@(json)' "$cur"
655
+ }
656
+
657
+ _postman_spec_create() {
658
+ if [[ "$cur" == -* ]]; then
659
+ COMPREPLY=( $(compgen -W "-n --name -t --type --spec-version -f --format -w --workspace --force --api-key -h --help" -- "$cur") )
660
+ return 0
661
+ fi
662
+ case "$prev" in
663
+ --api-key)
664
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
665
+ return 0 ;;
666
+ esac
667
+ _postman_filematch '!*.@(json)' "$cur"
668
+ }
669
+
670
+ _postman_spec_generate() {
671
+ if [[ -z "$subcmd" ]]; then
672
+ if [[ "$cur" == -* ]]; then
673
+ COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
674
+ else
675
+ COMPREPLY=( $(compgen -W "collection" -- "$cur") )
676
+ fi
677
+ return 0
678
+ fi
679
+ case "$subcmd" in
680
+ collection) _postman_spec_generate_collection ;;
681
+ esac
682
+ }
683
+
684
+ _postman_spec_generate_collection() {
685
+ if [[ "$cur" == -* ]]; then
686
+ COMPREPLY=( $(compgen -W "-n --name --folder-strategy -w --workspace --api-key -h --help" -- "$cur") )
687
+ return 0
688
+ fi
689
+ case "$prev" in
690
+ --api-key)
691
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
692
+ return 0 ;;
693
+ esac
694
+ }
695
+
514
696
  _postman_monitor() {
515
697
  if [[ -z "$subcmd" ]]; then
516
698
  if [[ "$cur" == -* ]]; then
517
699
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
518
700
  else
519
- COMPREPLY=( $(compgen -W "run" -- "$cur") )
701
+ COMPREPLY=( $(compgen -W "run create update delete jobs runs list get metrics pause resume" -- "$cur") )
520
702
  fi
521
703
  return 0
522
704
  fi
523
705
  case "$subcmd" in
524
706
  run) _postman_monitor_run ;;
707
+ create) _postman_monitor_create ;;
708
+ update) _postman_monitor_update ;;
709
+ delete) _postman_monitor_delete ;;
710
+ jobs) _postman_monitor_jobs ;;
711
+ runs) _postman_monitor_runs ;;
712
+ list) _postman_monitor_list ;;
713
+ get) _postman_monitor_get ;;
714
+ metrics) _postman_monitor_metrics ;;
715
+ pause) _postman_monitor_pause ;;
716
+ resume) _postman_monitor_resume ;;
525
717
  esac
526
718
  }
527
719
 
528
720
  _postman_monitor_run() {
529
721
  if [[ "$cur" == -* ]]; then
530
- COMPREPLY=( $(compgen -W "-x --suppress-exit-code -t --timeout -h --help" -- "$cur") )
722
+ COMPREPLY=( $(compgen -W "--api-key -x --suppress-exit-code -t --timeout --async --json -h --help" -- "$cur") )
531
723
  return 0
532
724
  fi
533
725
  case "$prev" in
726
+ --api-key)
727
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
728
+ return 0 ;;
729
+ esac
730
+ }
731
+
732
+ _postman_monitor_create() {
733
+ if [[ "$cur" == -* ]]; then
734
+ COMPREPLY=( $(compgen -W "-c --collection --name --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") )
735
+ return 0
736
+ fi
737
+ case "$prev" in
738
+ --api-key)
739
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
740
+ return 0 ;;
741
+ esac
742
+ }
743
+
744
+ _postman_monitor_update() {
745
+ if [[ "$cur" == -* ]]; then
746
+ COMPREPLY=( $(compgen -W "--name --schedule --timezone --runner --notify-email --clear-notifications --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") )
747
+ return 0
748
+ fi
749
+ case "$prev" in
750
+ --api-key)
751
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
752
+ return 0 ;;
753
+ esac
754
+ }
755
+
756
+ _postman_monitor_delete() {
757
+ if [[ "$cur" == -* ]]; then
758
+ COMPREPLY=( $(compgen -W "-y --yes --api-key --json -h --help" -- "$cur") )
759
+ return 0
760
+ fi
761
+ case "$prev" in
762
+ --api-key)
763
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
764
+ return 0 ;;
765
+ esac
766
+ }
767
+
768
+ _postman_monitor_jobs() {
769
+ if [[ -z "$subcmd" ]]; then
770
+ if [[ "$cur" == -* ]]; then
771
+ COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
772
+ else
773
+ COMPREPLY=( $(compgen -W "list get" -- "$cur") )
774
+ fi
775
+ return 0
776
+ fi
777
+ case "$subcmd" in
778
+ list) _postman_monitor_jobs_list ;;
779
+ get) _postman_monitor_jobs_get ;;
780
+ esac
781
+ }
782
+
783
+ _postman_monitor_jobs_list() {
784
+ if [[ "$cur" == -* ]]; then
785
+ COMPREPLY=( $(compgen -W "--api-key --result --trigger --since --limit --cursor --json -h --help" -- "$cur") )
786
+ return 0
787
+ fi
788
+ case "$prev" in
789
+ --api-key)
790
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
791
+ return 0 ;;
792
+ esac
793
+ }
794
+
795
+ _postman_monitor_jobs_get() {
796
+ if [[ "$cur" == -* ]]; then
797
+ COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
798
+ return 0
799
+ fi
800
+ case "$prev" in
801
+ --api-key)
802
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
803
+ return 0 ;;
804
+ esac
805
+ }
806
+
807
+ _postman_monitor_runs() {
808
+ if [[ -z "$subcmd" ]]; then
809
+ if [[ "$cur" == -* ]]; then
810
+ COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
811
+ else
812
+ COMPREPLY=( $(compgen -W "get" -- "$cur") )
813
+ fi
814
+ return 0
815
+ fi
816
+ case "$subcmd" in
817
+ get) _postman_monitor_runs_get ;;
818
+ esac
819
+ }
820
+
821
+ _postman_monitor_runs_get() {
822
+ if [[ "$cur" == -* ]]; then
823
+ COMPREPLY=( $(compgen -W "--api-key --attempt --failed-only --json -h --help" -- "$cur") )
824
+ return 0
825
+ fi
826
+ case "$prev" in
827
+ --api-key)
828
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
829
+ return 0 ;;
830
+ esac
831
+ }
832
+
833
+ _postman_monitor_list() {
834
+ if [[ "$cur" == -* ]]; then
835
+ COMPREPLY=( $(compgen -W "--api-key -w --workspace -c --collection --environment --runner --owner --team --active --limit --offset --cursor --columns --no-headers -f --filter --sort --json -h --help" -- "$cur") )
836
+ return 0
837
+ fi
838
+ case "$prev" in
839
+ --api-key)
840
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
841
+ return 0 ;;
842
+ esac
843
+ }
844
+
845
+ _postman_monitor_get() {
846
+ if [[ "$cur" == -* ]]; then
847
+ COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
848
+ return 0
849
+ fi
850
+ case "$prev" in
851
+ --api-key)
852
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
853
+ return 0 ;;
854
+ esac
855
+ }
856
+
857
+ _postman_monitor_metrics() {
858
+ if [[ "$cur" == -* ]]; then
859
+ COMPREPLY=( $(compgen -W "--api-key --since --until -f --filter --limit --json -h --help" -- "$cur") )
860
+ return 0
861
+ fi
862
+ case "$prev" in
863
+ --api-key)
864
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
865
+ return 0 ;;
866
+ esac
867
+ }
868
+
869
+ _postman_monitor_pause() {
870
+ if [[ "$cur" == -* ]]; then
871
+ COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
872
+ return 0
873
+ fi
874
+ case "$prev" in
875
+ --api-key)
876
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
877
+ return 0 ;;
878
+ esac
879
+ }
880
+
881
+ _postman_monitor_resume() {
882
+ if [[ "$cur" == -* ]]; then
883
+ COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
884
+ return 0
885
+ fi
886
+ case "$prev" in
887
+ --api-key)
888
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
889
+ return 0 ;;
534
890
  esac
535
891
  }
536
892
 
@@ -539,7 +895,7 @@ _postman_workspace() {
539
895
  if [[ "$cur" == -* ]]; then
540
896
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
541
897
  else
542
- COMPREPLY=( $(compgen -W "list prepare push lint create pull connect-git" -- "$cur") )
898
+ COMPREPLY=( $(compgen -W "list prepare push lint create pull connect-git diff" -- "$cur") )
543
899
  fi
544
900
  return 0
545
901
  fi
@@ -551,6 +907,7 @@ _postman_workspace() {
551
907
  create) _postman_workspace_create ;;
552
908
  pull) _postman_workspace_pull ;;
553
909
  connect-git) _postman_workspace_connect_git ;;
910
+ diff) _postman_workspace_diff ;;
554
911
  esac
555
912
  }
556
913
 
@@ -617,17 +974,27 @@ _postman_workspace_connect_git() {
617
974
  _postman_filematch '!*.@(json)' "$cur"
618
975
  }
619
976
 
977
+ _postman_workspace_diff() {
978
+ if [[ "$cur" == -* ]]; then
979
+ COMPREPLY=( $(compgen -W "--push-strategy --summary --json --exit-code --verbose --timeout -h --help" -- "$cur") )
980
+ return 0
981
+ fi
982
+ case "$prev" in
983
+ esac
984
+ }
985
+
620
986
  _postman_performance() {
621
987
  if [[ -z "$subcmd" ]]; then
622
988
  if [[ "$cur" == -* ]]; then
623
989
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
624
990
  else
625
- COMPREPLY=( $(compgen -W "run" -- "$cur") )
991
+ COMPREPLY=( $(compgen -W "run runs" -- "$cur") )
626
992
  fi
627
993
  return 0
628
994
  fi
629
995
  case "$subcmd" in
630
996
  run) _postman_performance_run ;;
997
+ runs) _postman_performance_runs ;;
631
998
  esac
632
999
  }
633
1000
 
@@ -644,6 +1011,15 @@ _postman_performance_run() {
644
1011
  _postman_filematch '!*.@(json)' "$cur"
645
1012
  }
646
1013
 
1014
+ _postman_performance_runs() {
1015
+ if [[ "$cur" == -* ]]; then
1016
+ COMPREPLY=( $(compgen -W "-c --collection-id --cursor --json --timeout -h --help" -- "$cur") )
1017
+ return 0
1018
+ fi
1019
+ case "$prev" in
1020
+ esac
1021
+ }
1022
+
647
1023
  _postman_flows() {
648
1024
  if [[ -z "$subcmd" ]]; then
649
1025
  if [[ "$cur" == -* ]]; then
@@ -894,13 +1270,14 @@ _postman_mock() {
894
1270
  if [[ "$cur" == -* ]]; then
895
1271
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
896
1272
  else
897
- COMPREPLY=( $(compgen -W "generate run deploy get list log delete" -- "$cur") )
1273
+ COMPREPLY=( $(compgen -W "generate run push deploy get list log delete" -- "$cur") )
898
1274
  fi
899
1275
  return 0
900
1276
  fi
901
1277
  case "$subcmd" in
902
1278
  generate) _postman_mock_generate ;;
903
1279
  run) _postman_mock_run ;;
1280
+ push) _postman_mock_push ;;
904
1281
  deploy) _postman_mock_deploy ;;
905
1282
  get) _postman_mock_get ;;
906
1283
  list) _postman_mock_list ;;
@@ -946,6 +1323,19 @@ _postman_mock_run() {
946
1323
  _postman_filematch '!*.@(json)' "$cur"
947
1324
  }
948
1325
 
1326
+ _postman_mock_push() {
1327
+ if [[ "$cur" == -* ]]; then
1328
+ COMPREPLY=( $(compgen -W "-w --workspace --api-key -h --help" -- "$cur") )
1329
+ return 0
1330
+ fi
1331
+ case "$prev" in
1332
+ --api-key)
1333
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
1334
+ return 0 ;;
1335
+ esac
1336
+ _postman_filematch '!*.@(json)' "$cur"
1337
+ }
1338
+
949
1339
  _postman_mock_deploy() {
950
1340
  if [[ "$cur" == -* ]]; then
951
1341
  COMPREPLY=( $(compgen -W "-w --workspace -n --name -s --slug --public --auto-deploy -y --yes --api-key -h --help" -- "$cur") )
@@ -1814,12 +2204,15 @@ _postman_dependency() {
1814
2204
  if [[ "$cur" == -* ]]; then
1815
2205
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
1816
2206
  else
1817
- COMPREPLY=( $(compgen -W "add" -- "$cur") )
2207
+ COMPREPLY=( $(compgen -W "add list install update" -- "$cur") )
1818
2208
  fi
1819
2209
  return 0
1820
2210
  fi
1821
2211
  case "$subcmd" in
1822
2212
  add) _postman_dependency_add ;;
2213
+ list) _postman_dependency_list ;;
2214
+ install) _postman_dependency_install ;;
2215
+ update) _postman_dependency_update ;;
1823
2216
  esac
1824
2217
  }
1825
2218
 
@@ -1832,4 +2225,31 @@ _postman_dependency_add() {
1832
2225
  esac
1833
2226
  }
1834
2227
 
2228
+ _postman_dependency_list() {
2229
+ if [[ "$cur" == -* ]]; then
2230
+ COMPREPLY=( $(compgen -W "--type --json -h --help" -- "$cur") )
2231
+ return 0
2232
+ fi
2233
+ case "$prev" in
2234
+ esac
2235
+ }
2236
+
2237
+ _postman_dependency_install() {
2238
+ if [[ "$cur" == -* ]]; then
2239
+ COMPREPLY=( $(compgen -W "--type --json -h --help" -- "$cur") )
2240
+ return 0
2241
+ fi
2242
+ case "$prev" in
2243
+ esac
2244
+ }
2245
+
2246
+ _postman_dependency_update() {
2247
+ if [[ "$cur" == -* ]]; then
2248
+ COMPREPLY=( $(compgen -W "--type --json -h --help" -- "$cur") )
2249
+ return 0
2250
+ fi
2251
+ case "$prev" in
2252
+ esac
2253
+ }
2254
+
1835
2255
  complete -F _postman postman