postman-cli-completion 1.76.0 → 1.77.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 +64 -11
- package/completions/fish/postman.fish +144 -109
- package/completions/zsh/_postman +125 -71
- 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.77.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
|
|
@@ -121,7 +121,7 @@ _postman_collection() {
|
|
|
121
121
|
if [[ "$cur" == -* ]]; then
|
|
122
122
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
123
123
|
else
|
|
124
|
-
COMPREPLY=( $(compgen -W "new migrate lint ai-readiness get delete publish generate sync request folder example import list run" -- "$cur") )
|
|
124
|
+
COMPREPLY=( $(compgen -W "new migrate lint ai-readiness get delete publish generate sync share request folder example import list run" -- "$cur") )
|
|
125
125
|
fi
|
|
126
126
|
return 0
|
|
127
127
|
fi
|
|
@@ -135,6 +135,7 @@ _postman_collection() {
|
|
|
135
135
|
publish) _postman_collection_publish ;;
|
|
136
136
|
generate) _postman_collection_generate ;;
|
|
137
137
|
sync) _postman_collection_sync ;;
|
|
138
|
+
share) _postman_collection_share ;;
|
|
138
139
|
request) _postman_collection_request ;;
|
|
139
140
|
folder) _postman_collection_folder ;;
|
|
140
141
|
example) _postman_collection_example ;;
|
|
@@ -283,6 +284,18 @@ _postman_collection_sync_spec() {
|
|
|
283
284
|
_postman_filematch '!*.@(json)' "$cur"
|
|
284
285
|
}
|
|
285
286
|
|
|
287
|
+
_postman_collection_share() {
|
|
288
|
+
if [[ "$cur" == -* ]]; then
|
|
289
|
+
COMPREPLY=( $(compgen -W "--user --role --json --timeout --api-key -h --help" -- "$cur") )
|
|
290
|
+
return 0
|
|
291
|
+
fi
|
|
292
|
+
case "$prev" in
|
|
293
|
+
--api-key)
|
|
294
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
295
|
+
return 0 ;;
|
|
296
|
+
esac
|
|
297
|
+
}
|
|
298
|
+
|
|
286
299
|
_postman_collection_request() {
|
|
287
300
|
if [[ -z "$subcmd" ]]; then
|
|
288
301
|
if [[ "$cur" == -* ]]; then
|
|
@@ -849,7 +862,7 @@ _postman_environment() {
|
|
|
849
862
|
if [[ "$cur" == -* ]]; then
|
|
850
863
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
851
864
|
else
|
|
852
|
-
COMPREPLY=( $(compgen -W "new list get delete var lint" -- "$cur") )
|
|
865
|
+
COMPREPLY=( $(compgen -W "new list get share delete var lint" -- "$cur") )
|
|
853
866
|
fi
|
|
854
867
|
return 0
|
|
855
868
|
fi
|
|
@@ -857,6 +870,7 @@ _postman_environment() {
|
|
|
857
870
|
new) _postman_environment_new ;;
|
|
858
871
|
list) _postman_environment_list ;;
|
|
859
872
|
get) _postman_environment_get ;;
|
|
873
|
+
share) _postman_environment_share ;;
|
|
860
874
|
delete) _postman_environment_delete ;;
|
|
861
875
|
var) _postman_environment_var ;;
|
|
862
876
|
lint) _postman_environment_lint ;;
|
|
@@ -889,6 +903,19 @@ _postman_environment_get() {
|
|
|
889
903
|
_postman_filematch '!*.@(json)' "$cur"
|
|
890
904
|
}
|
|
891
905
|
|
|
906
|
+
_postman_environment_share() {
|
|
907
|
+
if [[ "$cur" == -* ]]; then
|
|
908
|
+
COMPREPLY=( $(compgen -W "--user --role --json --timeout --api-key -h --help" -- "$cur") )
|
|
909
|
+
return 0
|
|
910
|
+
fi
|
|
911
|
+
case "$prev" in
|
|
912
|
+
--api-key)
|
|
913
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
914
|
+
return 0 ;;
|
|
915
|
+
esac
|
|
916
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
917
|
+
}
|
|
918
|
+
|
|
892
919
|
_postman_environment_delete() {
|
|
893
920
|
if [[ "$cur" == -* ]]; then
|
|
894
921
|
COMPREPLY=( $(compgen -W "-y --yes --verbose --json -h --help" -- "$cur") )
|
|
@@ -1238,7 +1265,7 @@ _postman_mock_run() {
|
|
|
1238
1265
|
|
|
1239
1266
|
_postman_mock_push() {
|
|
1240
1267
|
if [[ "$cur" == -* ]]; then
|
|
1241
|
-
COMPREPLY=( $(compgen -W "-w --workspace --api-key -h --help" -- "$cur") )
|
|
1268
|
+
COMPREPLY=( $(compgen -W "-w --workspace --api-key --json -h --help" -- "$cur") )
|
|
1242
1269
|
return 0
|
|
1243
1270
|
fi
|
|
1244
1271
|
case "$prev" in
|
|
@@ -1303,7 +1330,7 @@ _postman_mock_log() {
|
|
|
1303
1330
|
|
|
1304
1331
|
_postman_mock_delete() {
|
|
1305
1332
|
if [[ "$cur" == -* ]]; then
|
|
1306
|
-
COMPREPLY=( $(compgen -W "-y --yes --api-key -h --help" -- "$cur") )
|
|
1333
|
+
COMPREPLY=( $(compgen -W "-y --yes --api-key --json -h --help" -- "$cur") )
|
|
1307
1334
|
return 0
|
|
1308
1335
|
fi
|
|
1309
1336
|
case "$prev" in
|
|
@@ -1319,7 +1346,7 @@ _postman_monitor() {
|
|
|
1319
1346
|
if [[ "$cur" == -* ]]; then
|
|
1320
1347
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1321
1348
|
else
|
|
1322
|
-
COMPREPLY=( $(compgen -W "run create update delete jobs runs list get metrics pause resume" -- "$cur") )
|
|
1349
|
+
COMPREPLY=( $(compgen -W "run create update delete jobs runs list get metrics pause resume share" -- "$cur") )
|
|
1323
1350
|
fi
|
|
1324
1351
|
return 0
|
|
1325
1352
|
fi
|
|
@@ -1335,6 +1362,7 @@ _postman_monitor() {
|
|
|
1335
1362
|
metrics) _postman_monitor_metrics ;;
|
|
1336
1363
|
pause) _postman_monitor_pause ;;
|
|
1337
1364
|
resume) _postman_monitor_resume ;;
|
|
1365
|
+
share) _postman_monitor_share ;;
|
|
1338
1366
|
esac
|
|
1339
1367
|
}
|
|
1340
1368
|
|
|
@@ -1453,7 +1481,7 @@ _postman_monitor_runs_get() {
|
|
|
1453
1481
|
|
|
1454
1482
|
_postman_monitor_list() {
|
|
1455
1483
|
if [[ "$cur" == -* ]]; then
|
|
1456
|
-
COMPREPLY=( $(compgen -W "--api-key -w --workspace -c --collection -e --environment --runner --owner --
|
|
1484
|
+
COMPREPLY=( $(compgen -W "--api-key -w --workspace -c --collection -e --environment --runner --owner --active --limit --cursor --columns --no-headers -f --filter --sort --json -h --help" -- "$cur") )
|
|
1457
1485
|
return 0
|
|
1458
1486
|
fi
|
|
1459
1487
|
case "$prev" in
|
|
@@ -1511,6 +1539,18 @@ _postman_monitor_resume() {
|
|
|
1511
1539
|
esac
|
|
1512
1540
|
}
|
|
1513
1541
|
|
|
1542
|
+
_postman_monitor_share() {
|
|
1543
|
+
if [[ "$cur" == -* ]]; then
|
|
1544
|
+
COMPREPLY=( $(compgen -W "--user --role --json --timeout --api-key -h --help" -- "$cur") )
|
|
1545
|
+
return 0
|
|
1546
|
+
fi
|
|
1547
|
+
case "$prev" in
|
|
1548
|
+
--api-key)
|
|
1549
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1550
|
+
return 0 ;;
|
|
1551
|
+
esac
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1514
1554
|
_postman_request() {
|
|
1515
1555
|
if [[ "$cur" == -* ]]; then
|
|
1516
1556
|
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") )
|
|
@@ -1940,7 +1980,7 @@ _postman_workspace() {
|
|
|
1940
1980
|
if [[ "$cur" == -* ]]; then
|
|
1941
1981
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1942
1982
|
else
|
|
1943
|
-
COMPREPLY=( $(compgen -W "list prepare push lint get activity create delete pull connect-git disconnect-git diff" -- "$cur") )
|
|
1983
|
+
COMPREPLY=( $(compgen -W "list prepare push lint get activity create delete share pull connect-git disconnect-git diff" -- "$cur") )
|
|
1944
1984
|
fi
|
|
1945
1985
|
return 0
|
|
1946
1986
|
fi
|
|
@@ -1953,6 +1993,7 @@ _postman_workspace() {
|
|
|
1953
1993
|
activity) _postman_workspace_activity ;;
|
|
1954
1994
|
create) _postman_workspace_create ;;
|
|
1955
1995
|
delete) _postman_workspace_delete ;;
|
|
1996
|
+
share) _postman_workspace_share ;;
|
|
1956
1997
|
pull) _postman_workspace_pull ;;
|
|
1957
1998
|
connect-git) _postman_workspace_connect_git ;;
|
|
1958
1999
|
disconnect-git) _postman_workspace_disconnect_git ;;
|
|
@@ -2033,6 +2074,18 @@ _postman_workspace_delete() {
|
|
|
2033
2074
|
esac
|
|
2034
2075
|
}
|
|
2035
2076
|
|
|
2077
|
+
_postman_workspace_share() {
|
|
2078
|
+
if [[ "$cur" == -* ]]; then
|
|
2079
|
+
COMPREPLY=( $(compgen -W "--user --role --json --timeout --api-key -h --help" -- "$cur") )
|
|
2080
|
+
return 0
|
|
2081
|
+
fi
|
|
2082
|
+
case "$prev" in
|
|
2083
|
+
--api-key)
|
|
2084
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2085
|
+
return 0 ;;
|
|
2086
|
+
esac
|
|
2087
|
+
}
|
|
2088
|
+
|
|
2036
2089
|
_postman_workspace_pull() {
|
|
2037
2090
|
if [[ "$cur" == -* ]]; then
|
|
2038
2091
|
COMPREPLY=( $(compgen -W "-y --yes --source-workspace --json --verbose -h --help" -- "$cur") )
|
|
@@ -2335,7 +2388,7 @@ _postman_describe_environment_get() {
|
|
|
2335
2388
|
|
|
2336
2389
|
_postman_init() {
|
|
2337
2390
|
if [[ "$cur" == -* ]]; then
|
|
2338
|
-
COMPREPLY=( $(compgen -W "--json --dry-run --
|
|
2391
|
+
COMPREPLY=( $(compgen -W "--json --dry-run --spec --visibility -y --yes --report-events -h --help" -- "$cur") )
|
|
2339
2392
|
return 0
|
|
2340
2393
|
fi
|
|
2341
2394
|
case "$prev" in
|
|
@@ -2819,7 +2872,7 @@ _postman_simulation_run() {
|
|
|
2819
2872
|
|
|
2820
2873
|
_postman_simulation_push() {
|
|
2821
2874
|
if [[ "$cur" == -* ]]; then
|
|
2822
|
-
COMPREPLY=( $(compgen -W "-w --workspace --api-key -h --help" -- "$cur") )
|
|
2875
|
+
COMPREPLY=( $(compgen -W "-w --workspace --api-key --json -h --help" -- "$cur") )
|
|
2823
2876
|
return 0
|
|
2824
2877
|
fi
|
|
2825
2878
|
case "$prev" in
|
|
@@ -2874,7 +2927,7 @@ _postman_simulation_log() {
|
|
|
2874
2927
|
|
|
2875
2928
|
_postman_simulation_delete() {
|
|
2876
2929
|
if [[ "$cur" == -* ]]; then
|
|
2877
|
-
COMPREPLY=( $(compgen -W "-y --yes --api-key -h --help" -- "$cur") )
|
|
2930
|
+
COMPREPLY=( $(compgen -W "-y --yes --api-key --json -h --help" -- "$cur") )
|
|
2878
2931
|
return 0
|
|
2879
2932
|
fi
|
|
2880
2933
|
case "$prev" in
|