postman-cli-completion 1.57.0 → 1.58.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.58.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 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,7 @@ _postman() {
50
50
  signup) _postman_signup ;;
51
51
  logout) _postman_logout ;;
52
52
  init) _postman_init ;;
53
+ whoami) _postman_whoami ;;
53
54
  skills) _postman_skills ;;
54
55
  collection) _postman_collection ;;
55
56
  environment) _postman_environment ;;
@@ -116,6 +117,13 @@ _postman_init() {
116
117
  _postman_filematch '!*.@(json)' "$cur"
117
118
  }
118
119
 
120
+ _postman_whoami() {
121
+ if [[ "$cur" == -* ]]; then
122
+ COMPREPLY=( $(compgen -W "--json -h --help" -- "$cur") )
123
+ return 0
124
+ fi
125
+ }
126
+
119
127
  _postman_skills() {
120
128
  if [[ -z "$subcmd" ]]; then
121
129
  if [[ "$cur" == -* ]]; then
@@ -328,7 +336,7 @@ _postman_environment_var_set() {
328
336
 
329
337
  _postman_environment_var_get() {
330
338
  if [[ "$cur" == -* ]]; then
331
- COMPREPLY=( $(compgen -W "-e --environment --verbose --json -h --help" -- "$cur") )
339
+ COMPREPLY=( $(compgen -W "-e --environment --verbose --json --show-secrets -h --help" -- "$cur") )
332
340
  return 0
333
341
  fi
334
342
  case "$prev" in
@@ -427,12 +435,14 @@ _postman_runner() {
427
435
  if [[ "$cur" == -* ]]; then
428
436
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
429
437
  else
430
- COMPREPLY=( $(compgen -W "start" -- "$cur") )
438
+ COMPREPLY=( $(compgen -W "start list regions" -- "$cur") )
431
439
  fi
432
440
  return 0
433
441
  fi
434
442
  case "$subcmd" in
435
443
  start) _postman_runner_start ;;
444
+ list) _postman_runner_list ;;
445
+ regions) _postman_runner_regions ;;
436
446
  esac
437
447
  }
438
448
 
@@ -451,12 +461,36 @@ _postman_runner_start() {
451
461
  esac
452
462
  }
453
463
 
464
+ _postman_runner_list() {
465
+ if [[ "$cur" == -* ]]; then
466
+ COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
467
+ return 0
468
+ fi
469
+ case "$prev" in
470
+ --api-key)
471
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
472
+ return 0 ;;
473
+ esac
474
+ }
475
+
476
+ _postman_runner_regions() {
477
+ if [[ "$cur" == -* ]]; then
478
+ COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
479
+ return 0
480
+ fi
481
+ case "$prev" in
482
+ --api-key)
483
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
484
+ return 0 ;;
485
+ esac
486
+ }
487
+
454
488
  _postman_spec() {
455
489
  if [[ -z "$subcmd" ]]; then
456
490
  if [[ "$cur" == -* ]]; then
457
491
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
458
492
  else
459
- COMPREPLY=( $(compgen -W "lint ai-readiness list get" -- "$cur") )
493
+ COMPREPLY=( $(compgen -W "lint ai-readiness list get file create" -- "$cur") )
460
494
  fi
461
495
  return 0
462
496
  fi
@@ -465,6 +499,8 @@ _postman_spec() {
465
499
  ai-readiness) _postman_spec_ai_readiness ;;
466
500
  list) _postman_spec_list ;;
467
501
  get) _postman_spec_get ;;
502
+ file) _postman_spec_file ;;
503
+ create) _postman_spec_create ;;
468
504
  esac
469
505
  }
470
506
 
@@ -511,26 +547,255 @@ _postman_spec_get() {
511
547
  esac
512
548
  }
513
549
 
550
+ _postman_spec_file() {
551
+ if [[ -z "$subcmd" ]]; then
552
+ if [[ "$cur" == -* ]]; then
553
+ COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
554
+ else
555
+ COMPREPLY=( $(compgen -W "add update rm" -- "$cur") )
556
+ fi
557
+ return 0
558
+ fi
559
+ case "$subcmd" in
560
+ add) _postman_spec_file_add ;;
561
+ update) _postman_spec_file_update ;;
562
+ rm) _postman_spec_file_rm ;;
563
+ esac
564
+ }
565
+
566
+ _postman_spec_file_add() {
567
+ if [[ "$cur" == -* ]]; then
568
+ COMPREPLY=( $(compgen -W "-c --content --api-key -h --help" -- "$cur") )
569
+ return 0
570
+ fi
571
+ case "$prev" in
572
+ --api-key)
573
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
574
+ return 0 ;;
575
+ esac
576
+ _postman_filematch '!*.@(json)' "$cur"
577
+ }
578
+
579
+ _postman_spec_file_update() {
580
+ if [[ "$cur" == -* ]]; then
581
+ COMPREPLY=( $(compgen -W "-c --content --api-key -h --help" -- "$cur") )
582
+ return 0
583
+ fi
584
+ case "$prev" in
585
+ --api-key)
586
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
587
+ return 0 ;;
588
+ esac
589
+ _postman_filematch '!*.@(json)' "$cur"
590
+ }
591
+
592
+ _postman_spec_file_rm() {
593
+ if [[ "$cur" == -* ]]; then
594
+ COMPREPLY=( $(compgen -W "-y --yes --api-key -h --help" -- "$cur") )
595
+ return 0
596
+ fi
597
+ case "$prev" in
598
+ --api-key)
599
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
600
+ return 0 ;;
601
+ esac
602
+ _postman_filematch '!*.@(json)' "$cur"
603
+ }
604
+
605
+ _postman_spec_create() {
606
+ if [[ "$cur" == -* ]]; then
607
+ COMPREPLY=( $(compgen -W "-n --name -t --type --spec-version -f --format -w --workspace --force --api-key -h --help" -- "$cur") )
608
+ return 0
609
+ fi
610
+ case "$prev" in
611
+ --api-key)
612
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
613
+ return 0 ;;
614
+ esac
615
+ _postman_filematch '!*.@(json)' "$cur"
616
+ }
617
+
514
618
  _postman_monitor() {
515
619
  if [[ -z "$subcmd" ]]; then
516
620
  if [[ "$cur" == -* ]]; then
517
621
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
518
622
  else
519
- COMPREPLY=( $(compgen -W "run" -- "$cur") )
623
+ COMPREPLY=( $(compgen -W "run create update delete jobs runs list get pause resume" -- "$cur") )
520
624
  fi
521
625
  return 0
522
626
  fi
523
627
  case "$subcmd" in
524
628
  run) _postman_monitor_run ;;
629
+ create) _postman_monitor_create ;;
630
+ update) _postman_monitor_update ;;
631
+ delete) _postman_monitor_delete ;;
632
+ jobs) _postman_monitor_jobs ;;
633
+ runs) _postman_monitor_runs ;;
634
+ list) _postman_monitor_list ;;
635
+ get) _postman_monitor_get ;;
636
+ pause) _postman_monitor_pause ;;
637
+ resume) _postman_monitor_resume ;;
525
638
  esac
526
639
  }
527
640
 
528
641
  _postman_monitor_run() {
529
642
  if [[ "$cur" == -* ]]; then
530
- COMPREPLY=( $(compgen -W "-x --suppress-exit-code -t --timeout -h --help" -- "$cur") )
643
+ COMPREPLY=( $(compgen -W "--api-key -x --suppress-exit-code -t --timeout --async --json -h --help" -- "$cur") )
644
+ return 0
645
+ fi
646
+ case "$prev" in
647
+ --api-key)
648
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
649
+ return 0 ;;
650
+ esac
651
+ }
652
+
653
+ _postman_monitor_create() {
654
+ if [[ "$cur" == -* ]]; then
655
+ 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") )
656
+ return 0
657
+ fi
658
+ case "$prev" in
659
+ --api-key)
660
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
661
+ return 0 ;;
662
+ esac
663
+ }
664
+
665
+ _postman_monitor_update() {
666
+ if [[ "$cur" == -* ]]; then
667
+ 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") )
668
+ return 0
669
+ fi
670
+ case "$prev" in
671
+ --api-key)
672
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
673
+ return 0 ;;
674
+ esac
675
+ }
676
+
677
+ _postman_monitor_delete() {
678
+ if [[ "$cur" == -* ]]; then
679
+ COMPREPLY=( $(compgen -W "-y --yes --api-key --json -h --help" -- "$cur") )
680
+ return 0
681
+ fi
682
+ case "$prev" in
683
+ --api-key)
684
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
685
+ return 0 ;;
686
+ esac
687
+ }
688
+
689
+ _postman_monitor_jobs() {
690
+ if [[ -z "$subcmd" ]]; then
691
+ if [[ "$cur" == -* ]]; then
692
+ COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
693
+ else
694
+ COMPREPLY=( $(compgen -W "list get" -- "$cur") )
695
+ fi
696
+ return 0
697
+ fi
698
+ case "$subcmd" in
699
+ list) _postman_monitor_jobs_list ;;
700
+ get) _postman_monitor_jobs_get ;;
701
+ esac
702
+ }
703
+
704
+ _postman_monitor_jobs_list() {
705
+ if [[ "$cur" == -* ]]; then
706
+ COMPREPLY=( $(compgen -W "--api-key --result --trigger --since --limit --cursor --json -h --help" -- "$cur") )
707
+ return 0
708
+ fi
709
+ case "$prev" in
710
+ --api-key)
711
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
712
+ return 0 ;;
713
+ esac
714
+ }
715
+
716
+ _postman_monitor_jobs_get() {
717
+ if [[ "$cur" == -* ]]; then
718
+ COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
719
+ return 0
720
+ fi
721
+ case "$prev" in
722
+ --api-key)
723
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
724
+ return 0 ;;
725
+ esac
726
+ }
727
+
728
+ _postman_monitor_runs() {
729
+ if [[ -z "$subcmd" ]]; then
730
+ if [[ "$cur" == -* ]]; then
731
+ COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
732
+ else
733
+ COMPREPLY=( $(compgen -W "get" -- "$cur") )
734
+ fi
735
+ return 0
736
+ fi
737
+ case "$subcmd" in
738
+ get) _postman_monitor_runs_get ;;
739
+ esac
740
+ }
741
+
742
+ _postman_monitor_runs_get() {
743
+ if [[ "$cur" == -* ]]; then
744
+ COMPREPLY=( $(compgen -W "--api-key --attempt --failed-only --json -h --help" -- "$cur") )
745
+ return 0
746
+ fi
747
+ case "$prev" in
748
+ --api-key)
749
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
750
+ return 0 ;;
751
+ esac
752
+ }
753
+
754
+ _postman_monitor_list() {
755
+ if [[ "$cur" == -* ]]; then
756
+ 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") )
757
+ return 0
758
+ fi
759
+ case "$prev" in
760
+ --api-key)
761
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
762
+ return 0 ;;
763
+ esac
764
+ }
765
+
766
+ _postman_monitor_get() {
767
+ if [[ "$cur" == -* ]]; then
768
+ COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
531
769
  return 0
532
770
  fi
533
771
  case "$prev" in
772
+ --api-key)
773
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
774
+ return 0 ;;
775
+ esac
776
+ }
777
+
778
+ _postman_monitor_pause() {
779
+ if [[ "$cur" == -* ]]; then
780
+ COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
781
+ return 0
782
+ fi
783
+ case "$prev" in
784
+ --api-key)
785
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
786
+ return 0 ;;
787
+ esac
788
+ }
789
+
790
+ _postman_monitor_resume() {
791
+ if [[ "$cur" == -* ]]; then
792
+ COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
793
+ return 0
794
+ fi
795
+ case "$prev" in
796
+ --api-key)
797
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
798
+ return 0 ;;
534
799
  esac
535
800
  }
536
801
 
@@ -894,13 +1159,14 @@ _postman_mock() {
894
1159
  if [[ "$cur" == -* ]]; then
895
1160
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
896
1161
  else
897
- COMPREPLY=( $(compgen -W "generate run deploy get list log delete" -- "$cur") )
1162
+ COMPREPLY=( $(compgen -W "generate run push deploy get list log delete" -- "$cur") )
898
1163
  fi
899
1164
  return 0
900
1165
  fi
901
1166
  case "$subcmd" in
902
1167
  generate) _postman_mock_generate ;;
903
1168
  run) _postman_mock_run ;;
1169
+ push) _postman_mock_push ;;
904
1170
  deploy) _postman_mock_deploy ;;
905
1171
  get) _postman_mock_get ;;
906
1172
  list) _postman_mock_list ;;
@@ -946,6 +1212,19 @@ _postman_mock_run() {
946
1212
  _postman_filematch '!*.@(json)' "$cur"
947
1213
  }
948
1214
 
1215
+ _postman_mock_push() {
1216
+ if [[ "$cur" == -* ]]; then
1217
+ COMPREPLY=( $(compgen -W "-w --workspace --api-key -h --help" -- "$cur") )
1218
+ return 0
1219
+ fi
1220
+ case "$prev" in
1221
+ --api-key)
1222
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
1223
+ return 0 ;;
1224
+ esac
1225
+ _postman_filematch '!*.@(json)' "$cur"
1226
+ }
1227
+
949
1228
  _postman_mock_deploy() {
950
1229
  if [[ "$cur" == -* ]]; then
951
1230
  COMPREPLY=( $(compgen -W "-w --workspace -n --name -s --slug --public --auto-deploy -y --yes --api-key -h --help" -- "$cur") )
@@ -1814,12 +2093,15 @@ _postman_dependency() {
1814
2093
  if [[ "$cur" == -* ]]; then
1815
2094
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
1816
2095
  else
1817
- COMPREPLY=( $(compgen -W "add" -- "$cur") )
2096
+ COMPREPLY=( $(compgen -W "add list install update" -- "$cur") )
1818
2097
  fi
1819
2098
  return 0
1820
2099
  fi
1821
2100
  case "$subcmd" in
1822
2101
  add) _postman_dependency_add ;;
2102
+ list) _postman_dependency_list ;;
2103
+ install) _postman_dependency_install ;;
2104
+ update) _postman_dependency_update ;;
1823
2105
  esac
1824
2106
  }
1825
2107
 
@@ -1832,4 +2114,31 @@ _postman_dependency_add() {
1832
2114
  esac
1833
2115
  }
1834
2116
 
2117
+ _postman_dependency_list() {
2118
+ if [[ "$cur" == -* ]]; then
2119
+ COMPREPLY=( $(compgen -W "--type --json -h --help" -- "$cur") )
2120
+ return 0
2121
+ fi
2122
+ case "$prev" in
2123
+ esac
2124
+ }
2125
+
2126
+ _postman_dependency_install() {
2127
+ if [[ "$cur" == -* ]]; then
2128
+ COMPREPLY=( $(compgen -W "--type --json -h --help" -- "$cur") )
2129
+ return 0
2130
+ fi
2131
+ case "$prev" in
2132
+ esac
2133
+ }
2134
+
2135
+ _postman_dependency_update() {
2136
+ if [[ "$cur" == -* ]]; then
2137
+ COMPREPLY=( $(compgen -W "--type --json -h --help" -- "$cur") )
2138
+ return 0
2139
+ fi
2140
+ case "$prev" in
2141
+ esac
2142
+ }
2143
+
1835
2144
  complete -F _postman postman