postman-cli-completion 1.87.0 → 1.90.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.87.0)
1
+ # Bash completion for Postman CLI (postman v1.90.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="api collection dataset environment flows fl globals mock monitor request runner sdk spec workspace ws context-graph describe init search skills login logout signup whoami application app dependency feedback performance secret simulation status team update webhook"
25
+ local top_commands="api collection dataset environment flows fl fn globals mock monitor request runner sdk spec workspace ws context-graph describe init search skills login logout signup whoami application app dependency feedback mcp performance secret simulation status team update webhook"
26
26
  local global_flags="--color -h --help --silent -v --version -h --help"
27
27
 
28
28
  local i cmd="" subcmd=""
@@ -51,6 +51,7 @@ _postman() {
51
51
  dataset) _postman_dataset ;;
52
52
  environment) _postman_environment ;;
53
53
  flows|fl) _postman_flows ;;
54
+ fn) _postman_fn ;;
54
55
  globals) _postman_globals ;;
55
56
  mock) _postman_mock ;;
56
57
  monitor) _postman_monitor ;;
@@ -71,6 +72,7 @@ _postman() {
71
72
  application|app) _postman_application ;;
72
73
  dependency) _postman_dependency ;;
73
74
  feedback) _postman_feedback ;;
75
+ mcp) _postman_mcp ;;
74
76
  performance) _postman_performance ;;
75
77
  secret) _postman_secret ;;
76
78
  simulation) _postman_simulation ;;
@@ -170,7 +172,7 @@ _postman_collection_migrate() {
170
172
 
171
173
  _postman_collection_lint() {
172
174
  if [[ "$cur" == -* ]]; then
173
- COMPREPLY=( $(compgen -W "-f --fail-severity -r --reporter -h --help" -- "$cur") )
175
+ COMPREPLY=( $(compgen -W "-f --fail-severity -r --reporter --readyapi --allow-pending -h --help" -- "$cur") )
174
176
  return 0
175
177
  fi
176
178
  case "$prev" in
@@ -335,10 +337,13 @@ _postman_collection_request_get() {
335
337
 
336
338
  _postman_collection_request_update() {
337
339
  if [[ "$cur" == -* ]]; then
338
- COMPREPLY=( $(compgen -W "--collection --folder --rename --url --method --param --clear-params -d --body --variables --description --headers --auth --scripts -w --workspace --type -m --message --json -h --help" -- "$cur") )
340
+ COMPREPLY=( $(compgen -W "--collection --folder --rename --url --command --command-env --method --param --clear-params -d --body --variables --description --headers --auth --scripts -w --workspace --type -m --message --json -h --help" -- "$cur") )
339
341
  return 0
340
342
  fi
341
343
  case "$prev" in
344
+ --command-env)
345
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
346
+ return 0 ;;
342
347
  --param)
343
348
  _postman_filematch '!*.@(pem|crt|key)' "$cur"
344
349
  return 0 ;;
@@ -505,7 +510,7 @@ _postman_collection_list() {
505
510
 
506
511
  _postman_collection_run() {
507
512
  if [[ "$cur" == -* ]]; then
508
- 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 --port --use-mock --simulation -w --workspace --report-events --no-report-events -h --help" -- "$cur") )
513
+ 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 --allow-stdio --ssl-client-cert-list --ssl-client-cert --ssl-client-key --ssl-client-passphrase --ssl-extra-ca-certs --cookie-jar --export-cookie-jar --verbose --port --use-mock --simulation -w --workspace --report-events --no-report-events -h --help" -- "$cur") )
509
514
  return 0
510
515
  fi
511
516
  case "$prev" in
@@ -1122,6 +1127,72 @@ _postman_flows_get_run() {
1122
1127
  esac
1123
1128
  }
1124
1129
 
1130
+ _postman_fn() {
1131
+ if [[ -z "$subcmd" ]]; then
1132
+ if [[ "$cur" == -* ]]; then
1133
+ COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
1134
+ else
1135
+ COMPREPLY=( $(compgen -W "init describe check run" -- "$cur") )
1136
+ fi
1137
+ return 0
1138
+ fi
1139
+ case "$subcmd" in
1140
+ init) _postman_fn_init ;;
1141
+ describe) _postman_fn_describe ;;
1142
+ check) _postman_fn_check ;;
1143
+ run) _postman_fn_run ;;
1144
+ esac
1145
+ }
1146
+
1147
+ _postman_fn_init() {
1148
+ if [[ "$cur" == -* ]]; then
1149
+ COMPREPLY=( $(compgen -W "--json --api-key -h --help" -- "$cur") )
1150
+ return 0
1151
+ fi
1152
+ case "$prev" in
1153
+ --api-key)
1154
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
1155
+ return 0 ;;
1156
+ esac
1157
+ _postman_filematch '!*.@(json)' "$cur"
1158
+ }
1159
+
1160
+ _postman_fn_describe() {
1161
+ if [[ "$cur" == -* ]]; then
1162
+ COMPREPLY=( $(compgen -W "--json --api-key -h --help" -- "$cur") )
1163
+ return 0
1164
+ fi
1165
+ case "$prev" in
1166
+ --api-key)
1167
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
1168
+ return 0 ;;
1169
+ esac
1170
+ }
1171
+
1172
+ _postman_fn_check() {
1173
+ if [[ "$cur" == -* ]]; then
1174
+ COMPREPLY=( $(compgen -W "--json --api-key --timeout -h --help" -- "$cur") )
1175
+ return 0
1176
+ fi
1177
+ case "$prev" in
1178
+ --api-key)
1179
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
1180
+ return 0 ;;
1181
+ esac
1182
+ }
1183
+
1184
+ _postman_fn_run() {
1185
+ if [[ "$cur" == -* ]]; then
1186
+ COMPREPLY=( $(compgen -W "--input --config --json --api-key --timeout --verbose --stream --visualize --out -h --help" -- "$cur") )
1187
+ return 0
1188
+ fi
1189
+ case "$prev" in
1190
+ --api-key)
1191
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
1192
+ return 0 ;;
1193
+ esac
1194
+ }
1195
+
1125
1196
  _postman_globals() {
1126
1197
  if [[ -z "$subcmd" ]]; then
1127
1198
  if [[ "$cur" == -* ]]; then
@@ -2714,6 +2785,330 @@ _postman_feedback() {
2714
2785
  esac
2715
2786
  }
2716
2787
 
2788
+ _postman_mcp() {
2789
+ if [[ -z "$subcmd" ]]; then
2790
+ if [[ "$cur" == -* ]]; then
2791
+ COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
2792
+ else
2793
+ COMPREPLY=( $(compgen -W "inspect tools resources prompts login logout credentials" -- "$cur") )
2794
+ fi
2795
+ return 0
2796
+ fi
2797
+ case "$subcmd" in
2798
+ inspect) _postman_mcp_inspect ;;
2799
+ tools) _postman_mcp_tools ;;
2800
+ resources) _postman_mcp_resources ;;
2801
+ prompts) _postman_mcp_prompts ;;
2802
+ login) _postman_mcp_login ;;
2803
+ logout) _postman_mcp_logout ;;
2804
+ credentials) _postman_mcp_credentials ;;
2805
+ esac
2806
+ }
2807
+
2808
+ _postman_mcp_inspect() {
2809
+ if [[ "$cur" == -* ]]; then
2810
+ COMPREPLY=( $(compgen -W "--json --debug --request --url -H --header --transport --command --command-env --allow-stdio -k --insecure --timeout-request --protocol-version -e --environment --env-var --login --no-login -h --help" -- "$cur") )
2811
+ return 0
2812
+ fi
2813
+ case "$prev" in
2814
+ --request)
2815
+ _postman_filematch '!*.@(json)' "$cur"
2816
+ return 0 ;;
2817
+ -H|--header)
2818
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
2819
+ return 0 ;;
2820
+ --command-env)
2821
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
2822
+ return 0 ;;
2823
+ -e|--environment)
2824
+ _postman_filematch '!*.@(json)' "$cur"
2825
+ return 0 ;;
2826
+ --env-var)
2827
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
2828
+ return 0 ;;
2829
+ esac
2830
+ }
2831
+
2832
+ _postman_mcp_tools() {
2833
+ if [[ -z "$subcmd" ]]; then
2834
+ if [[ "$cur" == -* ]]; then
2835
+ COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
2836
+ else
2837
+ COMPREPLY=( $(compgen -W "list call" -- "$cur") )
2838
+ fi
2839
+ return 0
2840
+ fi
2841
+ case "$subcmd" in
2842
+ list) _postman_mcp_tools_list ;;
2843
+ call) _postman_mcp_tools_call ;;
2844
+ esac
2845
+ }
2846
+
2847
+ _postman_mcp_tools_list() {
2848
+ if [[ "$cur" == -* ]]; then
2849
+ COMPREPLY=( $(compgen -W "--json --debug --request --url -H --header --transport --command --command-env --allow-stdio -k --insecure --timeout-request --protocol-version -e --environment --env-var --login --no-login -h --help" -- "$cur") )
2850
+ return 0
2851
+ fi
2852
+ case "$prev" in
2853
+ --request)
2854
+ _postman_filematch '!*.@(json)' "$cur"
2855
+ return 0 ;;
2856
+ -H|--header)
2857
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
2858
+ return 0 ;;
2859
+ --command-env)
2860
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
2861
+ return 0 ;;
2862
+ -e|--environment)
2863
+ _postman_filematch '!*.@(json)' "$cur"
2864
+ return 0 ;;
2865
+ --env-var)
2866
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
2867
+ return 0 ;;
2868
+ esac
2869
+ }
2870
+
2871
+ _postman_mcp_tools_call() {
2872
+ if [[ "$cur" == -* ]]; then
2873
+ COMPREPLY=( $(compgen -W "--args --arg --json --debug --request --url -H --header --transport --command --command-env --allow-stdio -k --insecure --timeout-request --protocol-version -e --environment --env-var --login --no-login -h --help" -- "$cur") )
2874
+ return 0
2875
+ fi
2876
+ case "$prev" in
2877
+ --arg)
2878
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
2879
+ return 0 ;;
2880
+ --request)
2881
+ _postman_filematch '!*.@(json)' "$cur"
2882
+ return 0 ;;
2883
+ -H|--header)
2884
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
2885
+ return 0 ;;
2886
+ --command-env)
2887
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
2888
+ return 0 ;;
2889
+ -e|--environment)
2890
+ _postman_filematch '!*.@(json)' "$cur"
2891
+ return 0 ;;
2892
+ --env-var)
2893
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
2894
+ return 0 ;;
2895
+ esac
2896
+ }
2897
+
2898
+ _postman_mcp_resources() {
2899
+ if [[ -z "$subcmd" ]]; then
2900
+ if [[ "$cur" == -* ]]; then
2901
+ COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
2902
+ else
2903
+ COMPREPLY=( $(compgen -W "list templates read" -- "$cur") )
2904
+ fi
2905
+ return 0
2906
+ fi
2907
+ case "$subcmd" in
2908
+ list) _postman_mcp_resources_list ;;
2909
+ templates) _postman_mcp_resources_templates ;;
2910
+ read) _postman_mcp_resources_read ;;
2911
+ esac
2912
+ }
2913
+
2914
+ _postman_mcp_resources_list() {
2915
+ if [[ "$cur" == -* ]]; then
2916
+ COMPREPLY=( $(compgen -W "--json --debug --request --url -H --header --transport --command --command-env --allow-stdio -k --insecure --timeout-request --protocol-version -e --environment --env-var --login --no-login -h --help" -- "$cur") )
2917
+ return 0
2918
+ fi
2919
+ case "$prev" in
2920
+ --request)
2921
+ _postman_filematch '!*.@(json)' "$cur"
2922
+ return 0 ;;
2923
+ -H|--header)
2924
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
2925
+ return 0 ;;
2926
+ --command-env)
2927
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
2928
+ return 0 ;;
2929
+ -e|--environment)
2930
+ _postman_filematch '!*.@(json)' "$cur"
2931
+ return 0 ;;
2932
+ --env-var)
2933
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
2934
+ return 0 ;;
2935
+ esac
2936
+ }
2937
+
2938
+ _postman_mcp_resources_templates() {
2939
+ if [[ -z "$subcmd" ]]; then
2940
+ if [[ "$cur" == -* ]]; then
2941
+ COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
2942
+ else
2943
+ COMPREPLY=( $(compgen -W "list" -- "$cur") )
2944
+ fi
2945
+ return 0
2946
+ fi
2947
+ case "$subcmd" in
2948
+ list) _postman_mcp_resources_templates_list ;;
2949
+ esac
2950
+ }
2951
+
2952
+ _postman_mcp_resources_templates_list() {
2953
+ if [[ "$cur" == -* ]]; then
2954
+ COMPREPLY=( $(compgen -W "--json --debug --request --url -H --header --transport --command --command-env --allow-stdio -k --insecure --timeout-request --protocol-version -e --environment --env-var --login --no-login -h --help" -- "$cur") )
2955
+ return 0
2956
+ fi
2957
+ case "$prev" in
2958
+ --request)
2959
+ _postman_filematch '!*.@(json)' "$cur"
2960
+ return 0 ;;
2961
+ -H|--header)
2962
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
2963
+ return 0 ;;
2964
+ --command-env)
2965
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
2966
+ return 0 ;;
2967
+ -e|--environment)
2968
+ _postman_filematch '!*.@(json)' "$cur"
2969
+ return 0 ;;
2970
+ --env-var)
2971
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
2972
+ return 0 ;;
2973
+ esac
2974
+ }
2975
+
2976
+ _postman_mcp_resources_read() {
2977
+ if [[ "$cur" == -* ]]; then
2978
+ COMPREPLY=( $(compgen -W "--json --debug --request --url -H --header --transport --command --command-env --allow-stdio -k --insecure --timeout-request --protocol-version -e --environment --env-var --login --no-login -h --help" -- "$cur") )
2979
+ return 0
2980
+ fi
2981
+ case "$prev" in
2982
+ --request)
2983
+ _postman_filematch '!*.@(json)' "$cur"
2984
+ return 0 ;;
2985
+ -H|--header)
2986
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
2987
+ return 0 ;;
2988
+ --command-env)
2989
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
2990
+ return 0 ;;
2991
+ -e|--environment)
2992
+ _postman_filematch '!*.@(json)' "$cur"
2993
+ return 0 ;;
2994
+ --env-var)
2995
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
2996
+ return 0 ;;
2997
+ esac
2998
+ }
2999
+
3000
+ _postman_mcp_prompts() {
3001
+ if [[ -z "$subcmd" ]]; then
3002
+ if [[ "$cur" == -* ]]; then
3003
+ COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
3004
+ else
3005
+ COMPREPLY=( $(compgen -W "list get" -- "$cur") )
3006
+ fi
3007
+ return 0
3008
+ fi
3009
+ case "$subcmd" in
3010
+ list) _postman_mcp_prompts_list ;;
3011
+ get) _postman_mcp_prompts_get ;;
3012
+ esac
3013
+ }
3014
+
3015
+ _postman_mcp_prompts_list() {
3016
+ if [[ "$cur" == -* ]]; then
3017
+ COMPREPLY=( $(compgen -W "--json --debug --request --url -H --header --transport --command --command-env --allow-stdio -k --insecure --timeout-request --protocol-version -e --environment --env-var --login --no-login -h --help" -- "$cur") )
3018
+ return 0
3019
+ fi
3020
+ case "$prev" in
3021
+ --request)
3022
+ _postman_filematch '!*.@(json)' "$cur"
3023
+ return 0 ;;
3024
+ -H|--header)
3025
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
3026
+ return 0 ;;
3027
+ --command-env)
3028
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
3029
+ return 0 ;;
3030
+ -e|--environment)
3031
+ _postman_filematch '!*.@(json)' "$cur"
3032
+ return 0 ;;
3033
+ --env-var)
3034
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
3035
+ return 0 ;;
3036
+ esac
3037
+ }
3038
+
3039
+ _postman_mcp_prompts_get() {
3040
+ if [[ "$cur" == -* ]]; then
3041
+ COMPREPLY=( $(compgen -W "--args --arg --json --debug --request --url -H --header --transport --command --command-env --allow-stdio -k --insecure --timeout-request --protocol-version -e --environment --env-var --login --no-login -h --help" -- "$cur") )
3042
+ return 0
3043
+ fi
3044
+ case "$prev" in
3045
+ --arg)
3046
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
3047
+ return 0 ;;
3048
+ --request)
3049
+ _postman_filematch '!*.@(json)' "$cur"
3050
+ return 0 ;;
3051
+ -H|--header)
3052
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
3053
+ return 0 ;;
3054
+ --command-env)
3055
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
3056
+ return 0 ;;
3057
+ -e|--environment)
3058
+ _postman_filematch '!*.@(json)' "$cur"
3059
+ return 0 ;;
3060
+ --env-var)
3061
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
3062
+ return 0 ;;
3063
+ esac
3064
+ }
3065
+
3066
+ _postman_mcp_login() {
3067
+ if [[ "$cur" == -* ]]; then
3068
+ COMPREPLY=( $(compgen -W "--scope --client-id --client-secret --callback-port --no-browser -H --header -k --insecure --timeout-request --debug --request --url -e --environment --env-var --json -h --help" -- "$cur") )
3069
+ return 0
3070
+ fi
3071
+ case "$prev" in
3072
+ -H|--header)
3073
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
3074
+ return 0 ;;
3075
+ --request)
3076
+ _postman_filematch '!*.@(json)' "$cur"
3077
+ return 0 ;;
3078
+ -e|--environment)
3079
+ _postman_filematch '!*.@(json)' "$cur"
3080
+ return 0 ;;
3081
+ --env-var)
3082
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
3083
+ return 0 ;;
3084
+ esac
3085
+ }
3086
+
3087
+ _postman_mcp_logout() {
3088
+ if [[ "$cur" == -* ]]; then
3089
+ COMPREPLY=( $(compgen -W "--all -y --yes --no-revoke -k --insecure --timeout-request --debug --request --url -e --environment --env-var --json -h --help" -- "$cur") )
3090
+ return 0
3091
+ fi
3092
+ case "$prev" in
3093
+ --request)
3094
+ _postman_filematch '!*.@(json)' "$cur"
3095
+ return 0 ;;
3096
+ -e|--environment)
3097
+ _postman_filematch '!*.@(json)' "$cur"
3098
+ return 0 ;;
3099
+ --env-var)
3100
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
3101
+ return 0 ;;
3102
+ esac
3103
+ }
3104
+
3105
+ _postman_mcp_credentials() {
3106
+ if [[ "$cur" == -* ]]; then
3107
+ COMPREPLY=( $(compgen -W "--json -h --help" -- "$cur") )
3108
+ return 0
3109
+ fi
3110
+ }
3111
+
2717
3112
  _postman_performance() {
2718
3113
  if [[ -z "$subcmd" ]]; then
2719
3114
  if [[ "$cur" == -* ]]; then
@@ -3012,9 +3407,11 @@ _postman_team_list() {
3012
3407
 
3013
3408
  _postman_update() {
3014
3409
  if [[ "$cur" == -* ]]; then
3015
- COMPREPLY=( $(compgen -W "--check -h --help" -- "$cur") )
3410
+ COMPREPLY=( $(compgen -W "--check --timeout -h --help" -- "$cur") )
3016
3411
  return 0
3017
3412
  fi
3413
+ case "$prev" in
3414
+ esac
3018
3415
  }
3019
3416
 
3020
3417
  _postman_webhook() {