postman-cli-completion 1.75.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 +84 -34
- package/completions/fish/postman.fish +189 -131
- package/completions/zsh/_postman +170 -93
- 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 ;;
|
|
@@ -146,7 +147,7 @@ _postman_collection() {
|
|
|
146
147
|
|
|
147
148
|
_postman_collection_new() {
|
|
148
149
|
if [[ "$cur" == -* ]]; then
|
|
149
|
-
COMPREPLY=( $(compgen -W "-w --workspace --force --verbose --json -h --help" -- "$cur") )
|
|
150
|
+
COMPREPLY=( $(compgen -W "-w --workspace --force -m --message --verbose --json -h --help" -- "$cur") )
|
|
150
151
|
return 0
|
|
151
152
|
fi
|
|
152
153
|
case "$prev" in
|
|
@@ -203,7 +204,7 @@ _postman_collection_get() {
|
|
|
203
204
|
|
|
204
205
|
_postman_collection_delete() {
|
|
205
206
|
if [[ "$cur" == -* ]]; then
|
|
206
|
-
COMPREPLY=( $(compgen -W "-y --yes --api-key --verbose --json -h --help" -- "$cur") )
|
|
207
|
+
COMPREPLY=( $(compgen -W "-y --yes --api-key -m --message --verbose --json -h --help" -- "$cur") )
|
|
207
208
|
return 0
|
|
208
209
|
fi
|
|
209
210
|
case "$prev" in
|
|
@@ -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
|
|
@@ -302,7 +315,7 @@ _postman_collection_request() {
|
|
|
302
315
|
|
|
303
316
|
_postman_collection_request_add() {
|
|
304
317
|
if [[ "$cur" == -* ]]; then
|
|
305
|
-
COMPREPLY=( $(compgen -W "--collection --folder --type -w --workspace --json -h --help" -- "$cur") )
|
|
318
|
+
COMPREPLY=( $(compgen -W "--collection --folder --type -w --workspace -m --message --json -h --help" -- "$cur") )
|
|
306
319
|
return 0
|
|
307
320
|
fi
|
|
308
321
|
case "$prev" in
|
|
@@ -320,7 +333,7 @@ _postman_collection_request_get() {
|
|
|
320
333
|
|
|
321
334
|
_postman_collection_request_update() {
|
|
322
335
|
if [[ "$cur" == -* ]]; then
|
|
323
|
-
COMPREPLY=( $(compgen -W "--collection --folder --rename --url --method --param --clear-params -d --body --variables --description --headers --auth --scripts -w --workspace --type --json -h --help" -- "$cur") )
|
|
336
|
+
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") )
|
|
324
337
|
return 0
|
|
325
338
|
fi
|
|
326
339
|
case "$prev" in
|
|
@@ -335,7 +348,7 @@ _postman_collection_request_update() {
|
|
|
335
348
|
|
|
336
349
|
_postman_collection_request_rm() {
|
|
337
350
|
if [[ "$cur" == -* ]]; then
|
|
338
|
-
COMPREPLY=( $(compgen -W "--collection --folder -w --workspace --type --json -h --help" -- "$cur") )
|
|
351
|
+
COMPREPLY=( $(compgen -W "--collection --folder -w --workspace --type -m --message --json -h --help" -- "$cur") )
|
|
339
352
|
return 0
|
|
340
353
|
fi
|
|
341
354
|
case "$prev" in
|
|
@@ -361,7 +374,7 @@ _postman_collection_folder() {
|
|
|
361
374
|
|
|
362
375
|
_postman_collection_folder_add() {
|
|
363
376
|
if [[ "$cur" == -* ]]; then
|
|
364
|
-
COMPREPLY=( $(compgen -W "--collection --folder -w --workspace --json -h --help" -- "$cur") )
|
|
377
|
+
COMPREPLY=( $(compgen -W "--collection --folder -w --workspace -m --message --json -h --help" -- "$cur") )
|
|
365
378
|
return 0
|
|
366
379
|
fi
|
|
367
380
|
case "$prev" in
|
|
@@ -379,7 +392,7 @@ _postman_collection_folder_get() {
|
|
|
379
392
|
|
|
380
393
|
_postman_collection_folder_update() {
|
|
381
394
|
if [[ "$cur" == -* ]]; then
|
|
382
|
-
COMPREPLY=( $(compgen -W "--collection --folder --name --description --auth --scripts -w --workspace --json -h --help" -- "$cur") )
|
|
395
|
+
COMPREPLY=( $(compgen -W "--collection --folder --name --description --auth --scripts -w --workspace -m --message --json -h --help" -- "$cur") )
|
|
383
396
|
return 0
|
|
384
397
|
fi
|
|
385
398
|
case "$prev" in
|
|
@@ -388,7 +401,7 @@ _postman_collection_folder_update() {
|
|
|
388
401
|
|
|
389
402
|
_postman_collection_folder_rm() {
|
|
390
403
|
if [[ "$cur" == -* ]]; then
|
|
391
|
-
COMPREPLY=( $(compgen -W "--collection --folder -y --yes -w --workspace --json -h --help" -- "$cur") )
|
|
404
|
+
COMPREPLY=( $(compgen -W "--collection --folder -y --yes -w --workspace -m --message --json -h --help" -- "$cur") )
|
|
392
405
|
return 0
|
|
393
406
|
fi
|
|
394
407
|
case "$prev" in
|
|
@@ -415,7 +428,7 @@ _postman_collection_example() {
|
|
|
415
428
|
|
|
416
429
|
_postman_collection_example_add() {
|
|
417
430
|
if [[ "$cur" == -* ]]; then
|
|
418
|
-
COMPREPLY=( $(compgen -W "--collection --request --folder --type -w --workspace --json -h --help" -- "$cur") )
|
|
431
|
+
COMPREPLY=( $(compgen -W "--collection --request --folder --type -w --workspace -m --message --json -h --help" -- "$cur") )
|
|
419
432
|
return 0
|
|
420
433
|
fi
|
|
421
434
|
case "$prev" in
|
|
@@ -424,7 +437,7 @@ _postman_collection_example_add() {
|
|
|
424
437
|
|
|
425
438
|
_postman_collection_example_update() {
|
|
426
439
|
if [[ "$cur" == -* ]]; then
|
|
427
|
-
COMPREPLY=( $(compgen -W "--collection --request --folder --status-code --status-text -d --body --headers --description --rename --url --method --request-headers --request-param --request-body --copy-request --clear-request -w --workspace --type --json -h --help" -- "$cur") )
|
|
440
|
+
COMPREPLY=( $(compgen -W "--collection --request --folder --status-code --status-text -d --body --headers --description --rename --url --method --request-headers --request-param --request-body --copy-request --clear-request -w --workspace --type -m --message --json -h --help" -- "$cur") )
|
|
428
441
|
return 0
|
|
429
442
|
fi
|
|
430
443
|
case "$prev" in
|
|
@@ -442,7 +455,7 @@ _postman_collection_example_update() {
|
|
|
442
455
|
|
|
443
456
|
_postman_collection_example_rm() {
|
|
444
457
|
if [[ "$cur" == -* ]]; then
|
|
445
|
-
COMPREPLY=( $(compgen -W "--collection --request --folder -w --workspace --type --json -h --help" -- "$cur") )
|
|
458
|
+
COMPREPLY=( $(compgen -W "--collection --request --folder -w --workspace --type -m --message --json -h --help" -- "$cur") )
|
|
446
459
|
return 0
|
|
447
460
|
fi
|
|
448
461
|
case "$prev" in
|
|
@@ -490,7 +503,7 @@ _postman_collection_list() {
|
|
|
490
503
|
|
|
491
504
|
_postman_collection_run() {
|
|
492
505
|
if [[ "$cur" == -* ]]; then
|
|
493
|
-
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 --
|
|
506
|
+
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") )
|
|
494
507
|
return 0
|
|
495
508
|
fi
|
|
496
509
|
case "$prev" in
|
|
@@ -533,9 +546,6 @@ _postman_collection_run() {
|
|
|
533
546
|
--export-cookie-jar)
|
|
534
547
|
_postman_filematch '!*.@(json)' "$cur"
|
|
535
548
|
return 0 ;;
|
|
536
|
-
--mock)
|
|
537
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
538
|
-
return 0 ;;
|
|
539
549
|
--simulation)
|
|
540
550
|
_postman_filematch '!*.@(json)' "$cur"
|
|
541
551
|
return 0 ;;
|
|
@@ -658,7 +668,7 @@ _postman_dataset_source_list() {
|
|
|
658
668
|
|
|
659
669
|
_postman_dataset_source_add() {
|
|
660
670
|
if [[ "$cur" == -* ]]; then
|
|
661
|
-
COMPREPLY=( $(compgen -W "-d --dataset -n --name --source-id --format --type --file --ref-only --force --upload --driver-jar --driver-class --driver-name --url-template --var --prop --vars-file --from-source --java-path --no-test --ssh-target-host-variable --ssh-target-port-variable --json --host --port --user --password --database --table --ssh-host --ssh-port --ssh-user --ssh-private-key --ssh-host-key --ssh-host-key-vault-id --ssh-host-key-secret-id --ssh-insecure-skip-host-key-verification --schema --encrypt --trust-server-certificate --tls-certificate --host-name-in-certificate --tls-min-version --api-key -h --help" -- "$cur") )
|
|
671
|
+
COMPREPLY=( $(compgen -W "-d --dataset -n --name --source-id --format --type --file --ref-only --force --upload --driver-jar --driver-class --driver-name --url-template --var --prop --vars-file -w --workspace --from-source --java-path --no-test --ssh-target-host-variable --ssh-target-port-variable --json --host --port --user --password --database --table --ssh-host --ssh-port --ssh-user --ssh-private-key --ssh-host-key --ssh-host-key-vault-id --ssh-host-key-secret-id --ssh-insecure-skip-host-key-verification --schema --encrypt --trust-server-certificate --tls-certificate --host-name-in-certificate --tls-min-version --api-key -h --help" -- "$cur") )
|
|
662
672
|
return 0
|
|
663
673
|
fi
|
|
664
674
|
case "$prev" in
|
|
@@ -700,7 +710,7 @@ _postman_dataset_source_remove() {
|
|
|
700
710
|
|
|
701
711
|
_postman_dataset_source_update() {
|
|
702
712
|
if [[ "$cur" == -* ]]; then
|
|
703
|
-
COMPREPLY=( $(compgen -W "-d --dataset -n --name --format --file --ref-only --force --driver-jar --driver-class --driver-name --url-template --var --prop --unset-var --unset-prop --vars-file --ssh-target-host-variable --ssh-target-port-variable --java-path --host --port --user --password --database --table --ssh-host --ssh-port --ssh-user --ssh-private-key --ssh-host-key --ssh-host-key-vault-id --ssh-host-key-secret-id --ssh-insecure-skip-host-key-verification --schema --encrypt --trust-server-certificate --tls-certificate --host-name-in-certificate --tls-min-version --api-key --json -h --help" -- "$cur") )
|
|
713
|
+
COMPREPLY=( $(compgen -W "-d --dataset -n --name --format --file --ref-only --force --driver-jar --driver-class --driver-name --url-template --var --prop --unset-var --unset-prop --vars-file -w --workspace --ssh-target-host-variable --ssh-target-port-variable --java-path --host --port --user --password --database --table --ssh-host --ssh-port --ssh-user --ssh-private-key --ssh-host-key --ssh-host-key-vault-id --ssh-host-key-secret-id --ssh-insecure-skip-host-key-verification --schema --encrypt --trust-server-certificate --tls-certificate --host-name-in-certificate --tls-min-version --api-key --json -h --help" -- "$cur") )
|
|
704
714
|
return 0
|
|
705
715
|
fi
|
|
706
716
|
case "$prev" in
|
|
@@ -852,7 +862,7 @@ _postman_environment() {
|
|
|
852
862
|
if [[ "$cur" == -* ]]; then
|
|
853
863
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
854
864
|
else
|
|
855
|
-
COMPREPLY=( $(compgen -W "new list get delete var lint" -- "$cur") )
|
|
865
|
+
COMPREPLY=( $(compgen -W "new list get share delete var lint" -- "$cur") )
|
|
856
866
|
fi
|
|
857
867
|
return 0
|
|
858
868
|
fi
|
|
@@ -860,6 +870,7 @@ _postman_environment() {
|
|
|
860
870
|
new) _postman_environment_new ;;
|
|
861
871
|
list) _postman_environment_list ;;
|
|
862
872
|
get) _postman_environment_get ;;
|
|
873
|
+
share) _postman_environment_share ;;
|
|
863
874
|
delete) _postman_environment_delete ;;
|
|
864
875
|
var) _postman_environment_var ;;
|
|
865
876
|
lint) _postman_environment_lint ;;
|
|
@@ -892,6 +903,19 @@ _postman_environment_get() {
|
|
|
892
903
|
_postman_filematch '!*.@(json)' "$cur"
|
|
893
904
|
}
|
|
894
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
|
+
|
|
895
919
|
_postman_environment_delete() {
|
|
896
920
|
if [[ "$cur" == -* ]]; then
|
|
897
921
|
COMPREPLY=( $(compgen -W "-y --yes --verbose --json -h --help" -- "$cur") )
|
|
@@ -1201,7 +1225,7 @@ _postman_mock() {
|
|
|
1201
1225
|
|
|
1202
1226
|
_postman_mock_generate() {
|
|
1203
1227
|
if [[ "$cur" == -* ]]; then
|
|
1204
|
-
COMPREPLY=( $(compgen -W "-o --output -n --name --port --stateful --force -u --update -w --workspace --api-key -x --suppress-exit-code -h --help" -- "$cur") )
|
|
1228
|
+
COMPREPLY=( $(compgen -W "-o --output -n --name --port --stateful --force -u --update -w --workspace --deploy --public -s --slug --json --api-key -x --suppress-exit-code -h --help" -- "$cur") )
|
|
1205
1229
|
return 0
|
|
1206
1230
|
fi
|
|
1207
1231
|
case "$prev" in
|
|
@@ -1241,7 +1265,7 @@ _postman_mock_run() {
|
|
|
1241
1265
|
|
|
1242
1266
|
_postman_mock_push() {
|
|
1243
1267
|
if [[ "$cur" == -* ]]; then
|
|
1244
|
-
COMPREPLY=( $(compgen -W "-w --workspace --api-key -h --help" -- "$cur") )
|
|
1268
|
+
COMPREPLY=( $(compgen -W "-w --workspace --api-key --json -h --help" -- "$cur") )
|
|
1245
1269
|
return 0
|
|
1246
1270
|
fi
|
|
1247
1271
|
case "$prev" in
|
|
@@ -1254,7 +1278,7 @@ _postman_mock_push() {
|
|
|
1254
1278
|
|
|
1255
1279
|
_postman_mock_deploy() {
|
|
1256
1280
|
if [[ "$cur" == -* ]]; then
|
|
1257
|
-
COMPREPLY=( $(compgen -W "-w --workspace -n --name -s --slug --public --auto-deploy -y --yes --api-key -h --help" -- "$cur") )
|
|
1281
|
+
COMPREPLY=( $(compgen -W "-w --workspace -n --name -s --slug --public --auto-deploy -y --yes --api-key --json -h --help" -- "$cur") )
|
|
1258
1282
|
return 0
|
|
1259
1283
|
fi
|
|
1260
1284
|
case "$prev" in
|
|
@@ -1306,7 +1330,7 @@ _postman_mock_log() {
|
|
|
1306
1330
|
|
|
1307
1331
|
_postman_mock_delete() {
|
|
1308
1332
|
if [[ "$cur" == -* ]]; then
|
|
1309
|
-
COMPREPLY=( $(compgen -W "-y --yes --api-key -h --help" -- "$cur") )
|
|
1333
|
+
COMPREPLY=( $(compgen -W "-y --yes --api-key --json -h --help" -- "$cur") )
|
|
1310
1334
|
return 0
|
|
1311
1335
|
fi
|
|
1312
1336
|
case "$prev" in
|
|
@@ -1322,7 +1346,7 @@ _postman_monitor() {
|
|
|
1322
1346
|
if [[ "$cur" == -* ]]; then
|
|
1323
1347
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1324
1348
|
else
|
|
1325
|
-
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") )
|
|
1326
1350
|
fi
|
|
1327
1351
|
return 0
|
|
1328
1352
|
fi
|
|
@@ -1338,6 +1362,7 @@ _postman_monitor() {
|
|
|
1338
1362
|
metrics) _postman_monitor_metrics ;;
|
|
1339
1363
|
pause) _postman_monitor_pause ;;
|
|
1340
1364
|
resume) _postman_monitor_resume ;;
|
|
1365
|
+
share) _postman_monitor_share ;;
|
|
1341
1366
|
esac
|
|
1342
1367
|
}
|
|
1343
1368
|
|
|
@@ -1456,7 +1481,7 @@ _postman_monitor_runs_get() {
|
|
|
1456
1481
|
|
|
1457
1482
|
_postman_monitor_list() {
|
|
1458
1483
|
if [[ "$cur" == -* ]]; then
|
|
1459
|
-
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") )
|
|
1460
1485
|
return 0
|
|
1461
1486
|
fi
|
|
1462
1487
|
case "$prev" in
|
|
@@ -1514,6 +1539,18 @@ _postman_monitor_resume() {
|
|
|
1514
1539
|
esac
|
|
1515
1540
|
}
|
|
1516
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
|
+
|
|
1517
1554
|
_postman_request() {
|
|
1518
1555
|
if [[ "$cur" == -* ]]; then
|
|
1519
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") )
|
|
@@ -1943,7 +1980,7 @@ _postman_workspace() {
|
|
|
1943
1980
|
if [[ "$cur" == -* ]]; then
|
|
1944
1981
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1945
1982
|
else
|
|
1946
|
-
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") )
|
|
1947
1984
|
fi
|
|
1948
1985
|
return 0
|
|
1949
1986
|
fi
|
|
@@ -1956,6 +1993,7 @@ _postman_workspace() {
|
|
|
1956
1993
|
activity) _postman_workspace_activity ;;
|
|
1957
1994
|
create) _postman_workspace_create ;;
|
|
1958
1995
|
delete) _postman_workspace_delete ;;
|
|
1996
|
+
share) _postman_workspace_share ;;
|
|
1959
1997
|
pull) _postman_workspace_pull ;;
|
|
1960
1998
|
connect-git) _postman_workspace_connect_git ;;
|
|
1961
1999
|
disconnect-git) _postman_workspace_disconnect_git ;;
|
|
@@ -2036,6 +2074,18 @@ _postman_workspace_delete() {
|
|
|
2036
2074
|
esac
|
|
2037
2075
|
}
|
|
2038
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
|
+
|
|
2039
2089
|
_postman_workspace_pull() {
|
|
2040
2090
|
if [[ "$cur" == -* ]]; then
|
|
2041
2091
|
COMPREPLY=( $(compgen -W "-y --yes --source-workspace --json --verbose -h --help" -- "$cur") )
|
|
@@ -2087,7 +2137,7 @@ _postman_context_graph() {
|
|
|
2087
2137
|
|
|
2088
2138
|
_postman_context_graph_ask() {
|
|
2089
2139
|
if [[ "$cur" == -* ]]; then
|
|
2090
|
-
COMPREPLY=( $(compgen -W "--wait --api-key --json --no-include-answer --
|
|
2140
|
+
COMPREPLY=( $(compgen -W "--wait --api-key --json --no-include-answer --interval --timeout -h --help" -- "$cur") )
|
|
2091
2141
|
return 0
|
|
2092
2142
|
fi
|
|
2093
2143
|
case "$prev" in
|
|
@@ -2338,7 +2388,7 @@ _postman_describe_environment_get() {
|
|
|
2338
2388
|
|
|
2339
2389
|
_postman_init() {
|
|
2340
2390
|
if [[ "$cur" == -* ]]; then
|
|
2341
|
-
COMPREPLY=( $(compgen -W "--json --dry-run --
|
|
2391
|
+
COMPREPLY=( $(compgen -W "--json --dry-run --spec --visibility -y --yes --report-events -h --help" -- "$cur") )
|
|
2342
2392
|
return 0
|
|
2343
2393
|
fi
|
|
2344
2394
|
case "$prev" in
|
|
@@ -2711,7 +2761,7 @@ _postman_secret() {
|
|
|
2711
2761
|
|
|
2712
2762
|
_postman_secret_create() {
|
|
2713
2763
|
if [[ "$cur" == -* ]]; then
|
|
2714
|
-
COMPREPLY=( $(compgen -W "--team-id -w --workspace --api-key --terminal --value-stdin --timeout -h --help" -- "$cur") )
|
|
2764
|
+
COMPREPLY=( $(compgen -W "--team-id -w --workspace --api-key --terminal --value-stdin --timeout --json -h --help" -- "$cur") )
|
|
2715
2765
|
return 0
|
|
2716
2766
|
fi
|
|
2717
2767
|
case "$prev" in
|
|
@@ -2758,7 +2808,7 @@ _postman_simulation() {
|
|
|
2758
2808
|
|
|
2759
2809
|
_postman_simulation_create() {
|
|
2760
2810
|
if [[ "$cur" == -* ]]; then
|
|
2761
|
-
COMPREPLY=( $(compgen -W "-n --name --mock --routing -o --output --force -w --workspace --api-key -h --help" -- "$cur") )
|
|
2811
|
+
COMPREPLY=( $(compgen -W "-n --name --mock --routing -o --output --force -w --workspace --deploy --public -s --slug --json --api-key -h --help" -- "$cur") )
|
|
2762
2812
|
return 0
|
|
2763
2813
|
fi
|
|
2764
2814
|
case "$prev" in
|
|
@@ -2822,7 +2872,7 @@ _postman_simulation_run() {
|
|
|
2822
2872
|
|
|
2823
2873
|
_postman_simulation_push() {
|
|
2824
2874
|
if [[ "$cur" == -* ]]; then
|
|
2825
|
-
COMPREPLY=( $(compgen -W "-w --workspace --api-key -h --help" -- "$cur") )
|
|
2875
|
+
COMPREPLY=( $(compgen -W "-w --workspace --api-key --json -h --help" -- "$cur") )
|
|
2826
2876
|
return 0
|
|
2827
2877
|
fi
|
|
2828
2878
|
case "$prev" in
|
|
@@ -2834,7 +2884,7 @@ _postman_simulation_push() {
|
|
|
2834
2884
|
|
|
2835
2885
|
_postman_simulation_deploy() {
|
|
2836
2886
|
if [[ "$cur" == -* ]]; then
|
|
2837
|
-
COMPREPLY=( $(compgen -W "-w --workspace -n --name -s --slug --private -y --yes --api-key -h --help" -- "$cur") )
|
|
2887
|
+
COMPREPLY=( $(compgen -W "-w --workspace -n --name -s --slug --public --private -y --yes --api-key --json -h --help" -- "$cur") )
|
|
2838
2888
|
return 0
|
|
2839
2889
|
fi
|
|
2840
2890
|
case "$prev" in
|
|
@@ -2877,7 +2927,7 @@ _postman_simulation_log() {
|
|
|
2877
2927
|
|
|
2878
2928
|
_postman_simulation_delete() {
|
|
2879
2929
|
if [[ "$cur" == -* ]]; then
|
|
2880
|
-
COMPREPLY=( $(compgen -W "-y --yes --api-key -h --help" -- "$cur") )
|
|
2930
|
+
COMPREPLY=( $(compgen -W "-y --yes --api-key --json -h --help" -- "$cur") )
|
|
2881
2931
|
return 0
|
|
2882
2932
|
fi
|
|
2883
2933
|
case "$prev" in
|