postman-cli-completion 1.86.0 → 1.88.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.
- package/completions/bash/postman.bash +372 -28
- package/completions/fish/postman.fish +223 -15
- package/completions/zsh/_postman +423 -17
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Bash completion for Postman CLI (postman v1.
|
|
1
|
+
# Bash completion for Postman CLI (postman v1.88.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 ;;
|
|
@@ -201,6 +203,7 @@ _postman_collection_get() {
|
|
|
201
203
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
202
204
|
return 0 ;;
|
|
203
205
|
esac
|
|
206
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
204
207
|
}
|
|
205
208
|
|
|
206
209
|
_postman_collection_delete() {
|
|
@@ -334,10 +337,13 @@ _postman_collection_request_get() {
|
|
|
334
337
|
|
|
335
338
|
_postman_collection_request_update() {
|
|
336
339
|
if [[ "$cur" == -* ]]; then
|
|
337
|
-
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") )
|
|
338
341
|
return 0
|
|
339
342
|
fi
|
|
340
343
|
case "$prev" in
|
|
344
|
+
--command-env)
|
|
345
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
346
|
+
return 0 ;;
|
|
341
347
|
--param)
|
|
342
348
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
343
349
|
return 0 ;;
|
|
@@ -798,7 +804,7 @@ _postman_dataset_view_run() {
|
|
|
798
804
|
|
|
799
805
|
_postman_dataset_view_create() {
|
|
800
806
|
if [[ "$cur" == -* ]]; then
|
|
801
|
-
COMPREPLY=( $(compgen -W "-d --dataset -n --name -q --query -s --source --view-id --json --api-key -h --help" -- "$cur") )
|
|
807
|
+
COMPREPLY=( $(compgen -W "-d --dataset -n --name -q --query -s --source --view-id --no-validate --json --api-key -h --help" -- "$cur") )
|
|
802
808
|
return 0
|
|
803
809
|
fi
|
|
804
810
|
case "$prev" in
|
|
@@ -1121,6 +1127,72 @@ _postman_flows_get_run() {
|
|
|
1121
1127
|
esac
|
|
1122
1128
|
}
|
|
1123
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
|
+
|
|
1124
1196
|
_postman_globals() {
|
|
1125
1197
|
if [[ -z "$subcmd" ]]; then
|
|
1126
1198
|
if [[ "$cur" == -* ]]; then
|
|
@@ -1577,40 +1649,35 @@ _postman_monitor_share() {
|
|
|
1577
1649
|
}
|
|
1578
1650
|
|
|
1579
1651
|
_postman_request() {
|
|
1652
|
+
if [[ -z "$subcmd" ]]; then
|
|
1653
|
+
if [[ "$cur" == -* ]]; then
|
|
1654
|
+
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") )
|
|
1655
|
+
else
|
|
1656
|
+
COMPREPLY=( $(compgen -W "grpc" -- "$cur") )
|
|
1657
|
+
fi
|
|
1658
|
+
return 0
|
|
1659
|
+
fi
|
|
1660
|
+
case "$subcmd" in
|
|
1661
|
+
grpc) _postman_request_grpc ;;
|
|
1662
|
+
esac
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1665
|
+
_postman_request_grpc() {
|
|
1580
1666
|
if [[ "$cur" == -* ]]; then
|
|
1581
|
-
COMPREPLY=( $(compgen -W "
|
|
1667
|
+
COMPREPLY=( $(compgen -W "--list-methods --describe --proto --import-path --protoset --tls --server-name --emit-defaults --script-before-invoke --script-on-message --script-after-response -h --help" -- "$cur") )
|
|
1582
1668
|
return 0
|
|
1583
1669
|
fi
|
|
1584
1670
|
case "$prev" in
|
|
1585
|
-
|
|
1586
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1587
|
-
return 0 ;;
|
|
1588
|
-
--ssl-client-cert-list)
|
|
1589
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1590
|
-
return 0 ;;
|
|
1591
|
-
--ssl-client-cert)
|
|
1592
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1593
|
-
return 0 ;;
|
|
1594
|
-
--ssl-client-key)
|
|
1595
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1596
|
-
return 0 ;;
|
|
1597
|
-
--ssl-extra-ca-certs)
|
|
1598
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1599
|
-
return 0 ;;
|
|
1600
|
-
--cookie-jar)
|
|
1671
|
+
--proto)
|
|
1601
1672
|
_postman_filematch '!*.@(json)' "$cur"
|
|
1602
1673
|
return 0 ;;
|
|
1603
|
-
--
|
|
1674
|
+
--import-path)
|
|
1604
1675
|
_postman_filematch '!*.@(json)' "$cur"
|
|
1605
1676
|
return 0 ;;
|
|
1606
|
-
--
|
|
1607
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1608
|
-
return 0 ;;
|
|
1609
|
-
-o|--output)
|
|
1677
|
+
--protoset)
|
|
1610
1678
|
_postman_filematch '!*.@(json)' "$cur"
|
|
1611
1679
|
return 0 ;;
|
|
1612
1680
|
esac
|
|
1613
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1614
1681
|
}
|
|
1615
1682
|
|
|
1616
1683
|
_postman_runner() {
|
|
@@ -2718,6 +2785,281 @@ _postman_feedback() {
|
|
|
2718
2785
|
esac
|
|
2719
2786
|
}
|
|
2720
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" -- "$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
|
+
esac
|
|
2803
|
+
}
|
|
2804
|
+
|
|
2805
|
+
_postman_mcp_inspect() {
|
|
2806
|
+
if [[ "$cur" == -* ]]; then
|
|
2807
|
+
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 -h --help" -- "$cur") )
|
|
2808
|
+
return 0
|
|
2809
|
+
fi
|
|
2810
|
+
case "$prev" in
|
|
2811
|
+
--request)
|
|
2812
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2813
|
+
return 0 ;;
|
|
2814
|
+
-H|--header)
|
|
2815
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2816
|
+
return 0 ;;
|
|
2817
|
+
--command-env)
|
|
2818
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2819
|
+
return 0 ;;
|
|
2820
|
+
-e|--environment)
|
|
2821
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2822
|
+
return 0 ;;
|
|
2823
|
+
--env-var)
|
|
2824
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2825
|
+
return 0 ;;
|
|
2826
|
+
esac
|
|
2827
|
+
}
|
|
2828
|
+
|
|
2829
|
+
_postman_mcp_tools() {
|
|
2830
|
+
if [[ -z "$subcmd" ]]; then
|
|
2831
|
+
if [[ "$cur" == -* ]]; then
|
|
2832
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2833
|
+
else
|
|
2834
|
+
COMPREPLY=( $(compgen -W "list call" -- "$cur") )
|
|
2835
|
+
fi
|
|
2836
|
+
return 0
|
|
2837
|
+
fi
|
|
2838
|
+
case "$subcmd" in
|
|
2839
|
+
list) _postman_mcp_tools_list ;;
|
|
2840
|
+
call) _postman_mcp_tools_call ;;
|
|
2841
|
+
esac
|
|
2842
|
+
}
|
|
2843
|
+
|
|
2844
|
+
_postman_mcp_tools_list() {
|
|
2845
|
+
if [[ "$cur" == -* ]]; then
|
|
2846
|
+
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 -h --help" -- "$cur") )
|
|
2847
|
+
return 0
|
|
2848
|
+
fi
|
|
2849
|
+
case "$prev" in
|
|
2850
|
+
--request)
|
|
2851
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2852
|
+
return 0 ;;
|
|
2853
|
+
-H|--header)
|
|
2854
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2855
|
+
return 0 ;;
|
|
2856
|
+
--command-env)
|
|
2857
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2858
|
+
return 0 ;;
|
|
2859
|
+
-e|--environment)
|
|
2860
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2861
|
+
return 0 ;;
|
|
2862
|
+
--env-var)
|
|
2863
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2864
|
+
return 0 ;;
|
|
2865
|
+
esac
|
|
2866
|
+
}
|
|
2867
|
+
|
|
2868
|
+
_postman_mcp_tools_call() {
|
|
2869
|
+
if [[ "$cur" == -* ]]; then
|
|
2870
|
+
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 -h --help" -- "$cur") )
|
|
2871
|
+
return 0
|
|
2872
|
+
fi
|
|
2873
|
+
case "$prev" in
|
|
2874
|
+
--arg)
|
|
2875
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2876
|
+
return 0 ;;
|
|
2877
|
+
--request)
|
|
2878
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2879
|
+
return 0 ;;
|
|
2880
|
+
-H|--header)
|
|
2881
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2882
|
+
return 0 ;;
|
|
2883
|
+
--command-env)
|
|
2884
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2885
|
+
return 0 ;;
|
|
2886
|
+
-e|--environment)
|
|
2887
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2888
|
+
return 0 ;;
|
|
2889
|
+
--env-var)
|
|
2890
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2891
|
+
return 0 ;;
|
|
2892
|
+
esac
|
|
2893
|
+
}
|
|
2894
|
+
|
|
2895
|
+
_postman_mcp_resources() {
|
|
2896
|
+
if [[ -z "$subcmd" ]]; then
|
|
2897
|
+
if [[ "$cur" == -* ]]; then
|
|
2898
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2899
|
+
else
|
|
2900
|
+
COMPREPLY=( $(compgen -W "list templates read" -- "$cur") )
|
|
2901
|
+
fi
|
|
2902
|
+
return 0
|
|
2903
|
+
fi
|
|
2904
|
+
case "$subcmd" in
|
|
2905
|
+
list) _postman_mcp_resources_list ;;
|
|
2906
|
+
templates) _postman_mcp_resources_templates ;;
|
|
2907
|
+
read) _postman_mcp_resources_read ;;
|
|
2908
|
+
esac
|
|
2909
|
+
}
|
|
2910
|
+
|
|
2911
|
+
_postman_mcp_resources_list() {
|
|
2912
|
+
if [[ "$cur" == -* ]]; then
|
|
2913
|
+
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 -h --help" -- "$cur") )
|
|
2914
|
+
return 0
|
|
2915
|
+
fi
|
|
2916
|
+
case "$prev" in
|
|
2917
|
+
--request)
|
|
2918
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2919
|
+
return 0 ;;
|
|
2920
|
+
-H|--header)
|
|
2921
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2922
|
+
return 0 ;;
|
|
2923
|
+
--command-env)
|
|
2924
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2925
|
+
return 0 ;;
|
|
2926
|
+
-e|--environment)
|
|
2927
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2928
|
+
return 0 ;;
|
|
2929
|
+
--env-var)
|
|
2930
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2931
|
+
return 0 ;;
|
|
2932
|
+
esac
|
|
2933
|
+
}
|
|
2934
|
+
|
|
2935
|
+
_postman_mcp_resources_templates() {
|
|
2936
|
+
if [[ -z "$subcmd" ]]; then
|
|
2937
|
+
if [[ "$cur" == -* ]]; then
|
|
2938
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2939
|
+
else
|
|
2940
|
+
COMPREPLY=( $(compgen -W "list" -- "$cur") )
|
|
2941
|
+
fi
|
|
2942
|
+
return 0
|
|
2943
|
+
fi
|
|
2944
|
+
case "$subcmd" in
|
|
2945
|
+
list) _postman_mcp_resources_templates_list ;;
|
|
2946
|
+
esac
|
|
2947
|
+
}
|
|
2948
|
+
|
|
2949
|
+
_postman_mcp_resources_templates_list() {
|
|
2950
|
+
if [[ "$cur" == -* ]]; then
|
|
2951
|
+
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 -h --help" -- "$cur") )
|
|
2952
|
+
return 0
|
|
2953
|
+
fi
|
|
2954
|
+
case "$prev" in
|
|
2955
|
+
--request)
|
|
2956
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2957
|
+
return 0 ;;
|
|
2958
|
+
-H|--header)
|
|
2959
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2960
|
+
return 0 ;;
|
|
2961
|
+
--command-env)
|
|
2962
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2963
|
+
return 0 ;;
|
|
2964
|
+
-e|--environment)
|
|
2965
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2966
|
+
return 0 ;;
|
|
2967
|
+
--env-var)
|
|
2968
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2969
|
+
return 0 ;;
|
|
2970
|
+
esac
|
|
2971
|
+
}
|
|
2972
|
+
|
|
2973
|
+
_postman_mcp_resources_read() {
|
|
2974
|
+
if [[ "$cur" == -* ]]; then
|
|
2975
|
+
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 -h --help" -- "$cur") )
|
|
2976
|
+
return 0
|
|
2977
|
+
fi
|
|
2978
|
+
case "$prev" in
|
|
2979
|
+
--request)
|
|
2980
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2981
|
+
return 0 ;;
|
|
2982
|
+
-H|--header)
|
|
2983
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2984
|
+
return 0 ;;
|
|
2985
|
+
--command-env)
|
|
2986
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2987
|
+
return 0 ;;
|
|
2988
|
+
-e|--environment)
|
|
2989
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2990
|
+
return 0 ;;
|
|
2991
|
+
--env-var)
|
|
2992
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2993
|
+
return 0 ;;
|
|
2994
|
+
esac
|
|
2995
|
+
}
|
|
2996
|
+
|
|
2997
|
+
_postman_mcp_prompts() {
|
|
2998
|
+
if [[ -z "$subcmd" ]]; then
|
|
2999
|
+
if [[ "$cur" == -* ]]; then
|
|
3000
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
3001
|
+
else
|
|
3002
|
+
COMPREPLY=( $(compgen -W "list get" -- "$cur") )
|
|
3003
|
+
fi
|
|
3004
|
+
return 0
|
|
3005
|
+
fi
|
|
3006
|
+
case "$subcmd" in
|
|
3007
|
+
list) _postman_mcp_prompts_list ;;
|
|
3008
|
+
get) _postman_mcp_prompts_get ;;
|
|
3009
|
+
esac
|
|
3010
|
+
}
|
|
3011
|
+
|
|
3012
|
+
_postman_mcp_prompts_list() {
|
|
3013
|
+
if [[ "$cur" == -* ]]; then
|
|
3014
|
+
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 -h --help" -- "$cur") )
|
|
3015
|
+
return 0
|
|
3016
|
+
fi
|
|
3017
|
+
case "$prev" in
|
|
3018
|
+
--request)
|
|
3019
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
3020
|
+
return 0 ;;
|
|
3021
|
+
-H|--header)
|
|
3022
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
3023
|
+
return 0 ;;
|
|
3024
|
+
--command-env)
|
|
3025
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
3026
|
+
return 0 ;;
|
|
3027
|
+
-e|--environment)
|
|
3028
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
3029
|
+
return 0 ;;
|
|
3030
|
+
--env-var)
|
|
3031
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
3032
|
+
return 0 ;;
|
|
3033
|
+
esac
|
|
3034
|
+
}
|
|
3035
|
+
|
|
3036
|
+
_postman_mcp_prompts_get() {
|
|
3037
|
+
if [[ "$cur" == -* ]]; then
|
|
3038
|
+
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 -h --help" -- "$cur") )
|
|
3039
|
+
return 0
|
|
3040
|
+
fi
|
|
3041
|
+
case "$prev" in
|
|
3042
|
+
--arg)
|
|
3043
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
3044
|
+
return 0 ;;
|
|
3045
|
+
--request)
|
|
3046
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
3047
|
+
return 0 ;;
|
|
3048
|
+
-H|--header)
|
|
3049
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
3050
|
+
return 0 ;;
|
|
3051
|
+
--command-env)
|
|
3052
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
3053
|
+
return 0 ;;
|
|
3054
|
+
-e|--environment)
|
|
3055
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
3056
|
+
return 0 ;;
|
|
3057
|
+
--env-var)
|
|
3058
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
3059
|
+
return 0 ;;
|
|
3060
|
+
esac
|
|
3061
|
+
}
|
|
3062
|
+
|
|
2721
3063
|
_postman_performance() {
|
|
2722
3064
|
if [[ -z "$subcmd" ]]; then
|
|
2723
3065
|
if [[ "$cur" == -* ]]; then
|
|
@@ -3016,9 +3358,11 @@ _postman_team_list() {
|
|
|
3016
3358
|
|
|
3017
3359
|
_postman_update() {
|
|
3018
3360
|
if [[ "$cur" == -* ]]; then
|
|
3019
|
-
COMPREPLY=( $(compgen -W "--check -h --help" -- "$cur") )
|
|
3361
|
+
COMPREPLY=( $(compgen -W "--check --timeout -h --help" -- "$cur") )
|
|
3020
3362
|
return 0
|
|
3021
3363
|
fi
|
|
3364
|
+
case "$prev" in
|
|
3365
|
+
esac
|
|
3022
3366
|
}
|
|
3023
3367
|
|
|
3024
3368
|
_postman_webhook() {
|