postman-cli-completion 1.65.0 → 1.66.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.
|
|
1
|
+
# Bash completion for Postman CLI (postman v1.66.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
|
|
@@ -708,7 +708,7 @@ _postman_spec() {
|
|
|
708
708
|
if [[ "$cur" == -* ]]; then
|
|
709
709
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
710
710
|
else
|
|
711
|
-
COMPREPLY=( $(compgen -W "lint ai-readiness list get file create generate sync" -- "$cur") )
|
|
711
|
+
COMPREPLY=( $(compgen -W "lint ai-readiness list get file create generate sync delete" -- "$cur") )
|
|
712
712
|
fi
|
|
713
713
|
return 0
|
|
714
714
|
fi
|
|
@@ -721,6 +721,7 @@ _postman_spec() {
|
|
|
721
721
|
create) _postman_spec_create ;;
|
|
722
722
|
generate) _postman_spec_generate ;;
|
|
723
723
|
sync) _postman_spec_sync ;;
|
|
724
|
+
delete) _postman_spec_delete ;;
|
|
724
725
|
esac
|
|
725
726
|
}
|
|
726
727
|
|
|
@@ -854,7 +855,7 @@ _postman_spec_generate() {
|
|
|
854
855
|
|
|
855
856
|
_postman_spec_generate_collection() {
|
|
856
857
|
if [[ "$cur" == -* ]]; then
|
|
857
|
-
COMPREPLY=( $(compgen -W "-n --name --folder-strategy -w --workspace --api-key -h --help" -- "$cur") )
|
|
858
|
+
COMPREPLY=( $(compgen -W "-n --name --folder-strategy -w --workspace --api-key --force -h --help" -- "$cur") )
|
|
858
859
|
return 0
|
|
859
860
|
fi
|
|
860
861
|
case "$prev" in
|
|
@@ -890,6 +891,18 @@ _postman_spec_sync_collection() {
|
|
|
890
891
|
esac
|
|
891
892
|
}
|
|
892
893
|
|
|
894
|
+
_postman_spec_delete() {
|
|
895
|
+
if [[ "$cur" == -* ]]; then
|
|
896
|
+
COMPREPLY=( $(compgen -W "-y --yes --api-key -h --help" -- "$cur") )
|
|
897
|
+
return 0
|
|
898
|
+
fi
|
|
899
|
+
case "$prev" in
|
|
900
|
+
--api-key)
|
|
901
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
902
|
+
return 0 ;;
|
|
903
|
+
esac
|
|
904
|
+
}
|
|
905
|
+
|
|
893
906
|
_postman_monitor() {
|
|
894
907
|
if [[ -z "$subcmd" ]]; then
|
|
895
908
|
if [[ "$cur" == -* ]]; then
|
|
@@ -1248,7 +1261,7 @@ _postman_performance() {
|
|
|
1248
1261
|
|
|
1249
1262
|
_postman_performance_run() {
|
|
1250
1263
|
if [[ "$cur" == -* ]]; then
|
|
1251
|
-
COMPREPLY=( $(compgen -W "-e --environment -g --globals --setup-collection --teardown-collection --vu-count -d --duration -p --load-profile --data-file --ssl-client-cert-list --ssl-client-cert --ssl-client-key --ssl-client-passphrase -k --insecure --ssl-extra-ca-certs --dataset-id --dataset-view-id --dataset-distribution --postman-api-key --output --runner --pass-if --use-mock -h --help" -- "$cur") )
|
|
1264
|
+
COMPREPLY=( $(compgen -W "-e --environment -g --globals --setup-collection --teardown-collection --vu-count -d --duration -p --load-profile --data-file --ssl-client-cert-list --ssl-client-cert --ssl-client-key --ssl-client-passphrase -k --insecure --ssl-extra-ca-certs --dataset-id --dataset-view-id --dataset-distribution --postman-api-key --output --runner --pass-if --use-mock --dataset -h --help" -- "$cur") )
|
|
1252
1265
|
return 0
|
|
1253
1266
|
fi
|
|
1254
1267
|
case "$prev" in
|
|
@@ -1267,6 +1280,9 @@ _postman_performance_run() {
|
|
|
1267
1280
|
--ssl-extra-ca-certs)
|
|
1268
1281
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1269
1282
|
return 0 ;;
|
|
1283
|
+
--dataset)
|
|
1284
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1285
|
+
return 0 ;;
|
|
1270
1286
|
esac
|
|
1271
1287
|
_postman_filematch '!*.@(json)' "$cur"
|
|
1272
1288
|
}
|
|
@@ -1566,7 +1582,7 @@ _postman_mock_generate() {
|
|
|
1566
1582
|
|
|
1567
1583
|
_postman_mock_run() {
|
|
1568
1584
|
if [[ "$cur" == -* ]]; then
|
|
1569
|
-
COMPREPLY=( $(compgen -W "-e --environment -g --globals -p --port --api-key -w --workspace --no-history -h --help" -- "$cur") )
|
|
1585
|
+
COMPREPLY=( $(compgen -W "-e --environment -g --globals -p --port --api-key -w --workspace --no-history --dataset -h --help" -- "$cur") )
|
|
1570
1586
|
return 0
|
|
1571
1587
|
fi
|
|
1572
1588
|
case "$prev" in
|
|
@@ -1579,6 +1595,9 @@ _postman_mock_run() {
|
|
|
1579
1595
|
--api-key)
|
|
1580
1596
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1581
1597
|
return 0 ;;
|
|
1598
|
+
--dataset)
|
|
1599
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1600
|
+
return 0 ;;
|
|
1582
1601
|
esac
|
|
1583
1602
|
_postman_filematch '!*.@(json)' "$cur"
|
|
1584
1603
|
}
|
|
@@ -2530,7 +2549,7 @@ _postman_dependency() {
|
|
|
2530
2549
|
if [[ "$cur" == -* ]]; then
|
|
2531
2550
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2532
2551
|
else
|
|
2533
|
-
COMPREPLY=( $(compgen -W "add list install update" -- "$cur") )
|
|
2552
|
+
COMPREPLY=( $(compgen -W "add list install update remove" -- "$cur") )
|
|
2534
2553
|
fi
|
|
2535
2554
|
return 0
|
|
2536
2555
|
fi
|
|
@@ -2539,6 +2558,7 @@ _postman_dependency() {
|
|
|
2539
2558
|
list) _postman_dependency_list ;;
|
|
2540
2559
|
install) _postman_dependency_install ;;
|
|
2541
2560
|
update) _postman_dependency_update ;;
|
|
2561
|
+
remove) _postman_dependency_remove ;;
|
|
2542
2562
|
esac
|
|
2543
2563
|
}
|
|
2544
2564
|
|
|
@@ -2578,4 +2598,13 @@ _postman_dependency_update() {
|
|
|
2578
2598
|
esac
|
|
2579
2599
|
}
|
|
2580
2600
|
|
|
2601
|
+
_postman_dependency_remove() {
|
|
2602
|
+
if [[ "$cur" == -* ]]; then
|
|
2603
|
+
COMPREPLY=( $(compgen -W "--type -y --yes --json -h --help" -- "$cur") )
|
|
2604
|
+
return 0
|
|
2605
|
+
fi
|
|
2606
|
+
case "$prev" in
|
|
2607
|
+
esac
|
|
2608
|
+
}
|
|
2609
|
+
|
|
2581
2610
|
complete -F _postman postman
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Fish completion for Postman CLI (postman v1.
|
|
1
|
+
# Fish completion for Postman CLI (postman v1.66.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
|
|
@@ -251,7 +251,7 @@ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_
|
|
|
251
251
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -s d -l iteration-data -d 'Specify a data file to use for iterations (either JSON or CSV)' -r
|
|
252
252
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l iteration-data-dataset -d '[BETA] Path to a .dataset.yaml (local collection) or a cloud dataset id (cloud collection) whose view drives the iteration data. Mutually exclusive with --iteration-data. Requires --iteration-data-view.' -r
|
|
253
253
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l iteration-data-view -d '[BETA] Name or id of the view to execute (within --iteration-data-dataset). The view\'s result set drives one iteration per row.' -x
|
|
254
|
-
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l dataset -d '[BETA] Pass --dataset multiple times to load several .dataset.yaml files (or directories containing them). Each is made available to scripts as pm.datasets(<id>). When provided, auto-discovery of .dataset.yaml files from the collection\'s parent repo is disabled. For a cloud collection, scripts address cloud datasets by id via pm.datasets(<id>) (resolved from your `postman login` session). SECURITY: for a cloud collection this does NOT scope access — a script can pm.datasets(<anyId>) for any dataset your session can read. Only run collections you trust against a logged-in cloud session. (default: [])' -r
|
|
254
|
+
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l dataset -d '[BETA] Pass --dataset multiple times to load several .dataset.yaml files (or directories containing them). Each is made available to collection scripts and local mock handlers as pm.datasets(<id>). When provided, auto-discovery of .dataset.yaml files from the collection\'s parent repo is disabled. For a cloud collection, scripts address cloud datasets by id via pm.datasets(<id>) (resolved from your `postman login` session). SECURITY: for a cloud collection this does NOT scope access — a script can pm.datasets(<anyId>) for any dataset your session can read. Only run collections you trust against a logged-in cloud session. (default: [])' -r
|
|
255
255
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -s i -d 'Specify the request/folder id, name, or path to run from the collection. Use a path (e.g. "FolderName/RequestName") to disambiguate items with the same name. Can be specified multiple times to run multiple items (default: [])' -x
|
|
256
256
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l global-var -d 'Allows the specification of global variables via the command line, in a key=value format' -x
|
|
257
257
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l env-var -d 'Allows the specification of environment variables via the command line, in a key=value format (default: [])' -x
|
|
@@ -412,14 +412,15 @@ complete -c postman -n '__fish_seen_subcommand_from runner; and __fish_seen_subc
|
|
|
412
412
|
complete -c postman -n '__fish_seen_subcommand_from runner; and __fish_seen_subcommand_from regions' -s h -l help -d 'display help for command'
|
|
413
413
|
|
|
414
414
|
# ---------- spec ----------
|
|
415
|
-
complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create generate sync' -a lint -d 'Run linting on the given specification by ID or local file path.'
|
|
416
|
-
complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create generate sync' -a ai-readiness -d 'Score an OpenAPI specification for AI readiness by ID or local file path.'
|
|
417
|
-
complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create generate sync' -a list -d 'List local spec files under a path, or (no path) a workspace\'s cloud specs.'
|
|
418
|
-
complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create generate sync' -a get -d 'Read a spec definition, including every file of a multi-file spec.'
|
|
419
|
-
complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create generate sync' -a file -d 'Add, update, or remove files in a spec (cloud ID or local directory).'
|
|
420
|
-
complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create generate sync' -a create -d 'Create a new spec in a workspace, or (with path) scaffold a local spec file.'
|
|
421
|
-
complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create generate sync' -a generate -d 'Generate artifacts from a specification.'
|
|
422
|
-
complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create generate sync' -a sync -d 'Sync a generated collection with its source specification.'
|
|
415
|
+
complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create generate sync delete' -a lint -d 'Run linting on the given specification by ID or local file path.'
|
|
416
|
+
complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create generate sync delete' -a ai-readiness -d 'Score an OpenAPI specification for AI readiness by ID or local file path.'
|
|
417
|
+
complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create generate sync delete' -a list -d 'List local spec files under a path, or (no path) a workspace\'s cloud specs.'
|
|
418
|
+
complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create generate sync delete' -a get -d 'Read a spec definition, including every file of a multi-file spec.'
|
|
419
|
+
complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create generate sync delete' -a file -d 'Add, update, or remove files in a spec (cloud ID or local directory).'
|
|
420
|
+
complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create generate sync delete' -a create -d 'Create a new spec in a workspace, or (with path) scaffold a local spec file.'
|
|
421
|
+
complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create generate sync delete' -a generate -d 'Generate artifacts from a specification.'
|
|
422
|
+
complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create generate sync delete' -a sync -d 'Sync a generated collection with its source specification.'
|
|
423
|
+
complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create generate sync delete' -a delete -d 'Delete a spec by its cloud ID or local file path. Cannot be undone.'
|
|
423
424
|
complete -c postman -n '__fish_seen_subcommand_from spec' -s h -l help -d 'display help for command'
|
|
424
425
|
# ---------- spec lint ----------
|
|
425
426
|
complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from lint' -s f -l fail-severity -d 'Results of this level or above will trigger a failure exit code. [choices: "error", "warning", "info", "hint"] (default: "ERROR")' -x
|
|
@@ -481,6 +482,7 @@ complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcom
|
|
|
481
482
|
complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from generate; and __fish_seen_subcommand_from collection' -l folder-strategy -d 'Folder strategy: Paths or Tags (default: Paths) (default: "Paths")' -x
|
|
482
483
|
complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from generate; and __fish_seen_subcommand_from collection' -s w -l workspace -d 'Workspace ID (cloud mode)' -x
|
|
483
484
|
complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from generate; and __fish_seen_subcommand_from collection' -l api-key -d 'Postman API key' -r
|
|
485
|
+
complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from generate; and __fish_seen_subcommand_from collection' -l force -d 'Overwrite the collection if one with this name already exists (local mode)'
|
|
484
486
|
complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from generate; and __fish_seen_subcommand_from collection' -s h -l help -d 'display help for command'
|
|
485
487
|
# ---------- spec sync ----------
|
|
486
488
|
complete -c postman -n '__postman_using_subcommand sync collection' -a collection -d 'Sync a collection from a linked specification (local path or cloud UUID).'
|
|
@@ -489,6 +491,10 @@ complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcom
|
|
|
489
491
|
complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from sync; and __fish_seen_subcommand_from collection' -l collection-id -d 'Collection ID to sync (required for cloud mode)' -x
|
|
490
492
|
complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from sync; and __fish_seen_subcommand_from collection' -l api-key -d 'Postman API key' -r
|
|
491
493
|
complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from sync; and __fish_seen_subcommand_from collection' -s h -l help -d 'display help for command'
|
|
494
|
+
# ---------- spec delete ----------
|
|
495
|
+
complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from delete' -s y -l yes -d 'Delete without asking for confirmation first'
|
|
496
|
+
complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from delete' -l api-key -d 'Postman API key, used with a cloud ID (defaults to your `postman login` session)' -r
|
|
497
|
+
complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from delete' -s h -l help -d 'display help for command'
|
|
492
498
|
|
|
493
499
|
# ---------- monitor ----------
|
|
494
500
|
complete -c postman -n '__postman_using_subcommand monitor run create update delete jobs runs list get metrics pause resume' -a run -d 'Invoke a monitor run and display results.'
|
|
@@ -745,6 +751,7 @@ complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen
|
|
|
745
751
|
complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -l runner -d 'Runner to execute the performance test on: local, postman-cloud, or postman-cloud-static-ip (egress from your account region\'s static-IP cluster) (default: local)' -x
|
|
746
752
|
complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -l pass-if -d 'Pass condition in format: function(metric, value). Functions: less_than, greater_than, less_than_eq, greater_than_eq. Metrics: avg, p90, p95, p99, error_rate, rps. Example: less_than(p95, 500) or less_than(error_rate, 5)' -x
|
|
747
753
|
complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -l use-mock -d 'Redirect a variable/host to a local code mock or cloud Mock Server (repeatable). Format: "<{{var}}|host> mock|mock-server:<path|id> [scenario]" (default: [])' -x
|
|
754
|
+
complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -l dataset -d 'Pass --dataset multiple times to load several .dataset.yaml files (or directories containing them). Each is made available to the handlers of the local mocks started by --use-mock as pm.datasets(<id>). Local runner only. (default: [])' -r
|
|
748
755
|
complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -s h -l help -d 'display help for command'
|
|
749
756
|
complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -r -k -a '(__fish_complete_suffix .json)'
|
|
750
757
|
# ---------- performance list ----------
|
|
@@ -990,6 +997,7 @@ complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcom
|
|
|
990
997
|
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from run' -l api-key -d 'Postman API key, used with a Postman cloud id (defaults to your `postman login` session)' -r
|
|
991
998
|
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from run' -s w -l workspace -d 'Workspace that owns the run, for recording its start history. Auto-resolved for a Postman cloud id; required to record history for a path.' -x
|
|
992
999
|
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from run' -l no-history -d 'Do not record this run in the mock\'s start history.'
|
|
1000
|
+
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from run' -l dataset -d 'Pass --dataset multiple times to load several .dataset.yaml files (or directories containing them). Each is made available to the mock\'s handlers as pm.datasets(<id>). (default: [])' -r
|
|
993
1001
|
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from run' -s h -l help -d 'display help for command'
|
|
994
1002
|
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from run' -r -k -a '(__fish_complete_suffix .json)'
|
|
995
1003
|
# ---------- mock push ----------
|
|
@@ -1455,10 +1463,11 @@ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_sub
|
|
|
1455
1463
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from jdbc; and __fish_seen_subcommand_from inspect' -s h -l help -d 'display help for command'
|
|
1456
1464
|
|
|
1457
1465
|
# ---------- dependency ----------
|
|
1458
|
-
complete -c postman -n '__postman_using_subcommand dependency add list install update' -a add -d 'Add a Postman collection, environment, or mock as a workspace dependency.'
|
|
1459
|
-
complete -c postman -n '__postman_using_subcommand dependency add list install update' -a list -d 'List the workspace dependencies declared in .postman/resources.yaml.'
|
|
1460
|
-
complete -c postman -n '__postman_using_subcommand dependency add list install update' -a install -d 'Materialise the dependencies declared in .postman/resources.yaml (all, or one).'
|
|
1461
|
-
complete -c postman -n '__postman_using_subcommand dependency add list install update' -a update -d 'Refresh declared dependencies to the latest content from their source (all, or one).'
|
|
1466
|
+
complete -c postman -n '__postman_using_subcommand dependency add list install update remove' -a add -d 'Add a Postman collection, environment, or mock as a workspace dependency.'
|
|
1467
|
+
complete -c postman -n '__postman_using_subcommand dependency add list install update remove' -a list -d 'List the workspace dependencies declared in .postman/resources.yaml.'
|
|
1468
|
+
complete -c postman -n '__postman_using_subcommand dependency add list install update remove' -a install -d 'Materialise the dependencies declared in .postman/resources.yaml (all, or one).'
|
|
1469
|
+
complete -c postman -n '__postman_using_subcommand dependency add list install update remove' -a update -d 'Refresh declared dependencies to the latest content from their source (all, or one).'
|
|
1470
|
+
complete -c postman -n '__postman_using_subcommand dependency add list install update remove' -a remove -d 'Remove a workspace dependency and delete its local files.'
|
|
1462
1471
|
complete -c postman -n '__fish_seen_subcommand_from dependency' -s h -l help -d 'display help for command'
|
|
1463
1472
|
# ---------- dependency add ----------
|
|
1464
1473
|
complete -c postman -n '__fish_seen_subcommand_from dependency; and __fish_seen_subcommand_from add' -s w -l workspace -d 'Workspace id to resolve a name in (defaults to the current workspace).' -x
|
|
@@ -1477,3 +1486,8 @@ complete -c postman -n '__fish_seen_subcommand_from dependency; and __fish_seen_
|
|
|
1477
1486
|
complete -c postman -n '__fish_seen_subcommand_from dependency; and __fish_seen_subcommand_from update' -l type -d 'Only update dependencies of this type (collection, environment, or mock).' -x
|
|
1478
1487
|
complete -c postman -n '__fish_seen_subcommand_from dependency; and __fish_seen_subcommand_from update' -l json -d 'Output the result as JSON.'
|
|
1479
1488
|
complete -c postman -n '__fish_seen_subcommand_from dependency; and __fish_seen_subcommand_from update' -s h -l help -d 'display help for command'
|
|
1489
|
+
# ---------- dependency remove ----------
|
|
1490
|
+
complete -c postman -n '__fish_seen_subcommand_from dependency; and __fish_seen_subcommand_from remove' -l type -d 'Only match dependencies of this type (collection, environment, or mock).' -x
|
|
1491
|
+
complete -c postman -n '__fish_seen_subcommand_from dependency; and __fish_seen_subcommand_from remove' -s y -l yes -d 'Skip the confirmation prompt (required outside an interactive terminal).'
|
|
1492
|
+
complete -c postman -n '__fish_seen_subcommand_from dependency; and __fish_seen_subcommand_from remove' -l json -d 'Output the result as JSON.'
|
|
1493
|
+
complete -c postman -n '__fish_seen_subcommand_from dependency; and __fish_seen_subcommand_from remove' -s h -l help -d 'display help for command'
|
package/completions/zsh/_postman
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#compdef postman
|
|
2
2
|
compdef _postman postman
|
|
3
|
-
# Zsh completion for Postman CLI (postman v1.
|
|
3
|
+
# Zsh completion for Postman CLI (postman v1.66.0)
|
|
4
4
|
# Auto-generated by scripts/generate.mjs — DO NOT EDIT
|
|
5
5
|
# Source: spec/commands.json
|
|
6
6
|
# https://github.com/yokawasa/postman-cli-completion
|
|
@@ -503,7 +503,7 @@ _postman_collection_run() {
|
|
|
503
503
|
'(-d --iteration-data)'{-d,--iteration-data}'[Specify a data file to use for iterations (either JSON or CSV)]:path:_files -g "*.(json|csv)"' \
|
|
504
504
|
'--iteration-data-dataset[\[BETA\] Path to a .dataset.yaml (local collection) or a cloud dataset id (cloud collection) whose view drives the iteration data. Mutually exclusive with --iteration-data. Requires --iteration-data-view.]:pathOrId:_files -g "*.(json|csv)"' \
|
|
505
505
|
'--iteration-data-view[\[BETA\] Name or id of the view to execute (within --iteration-data-dataset). The view'\''s result set drives one iteration per row.]:nameOrId' \
|
|
506
|
-
'--dataset[\[BETA\] Pass --dataset multiple times to load several .dataset.yaml files (or directories containing them). Each is made available to scripts as pm.datasets(<id>). When provided, auto-discovery of .dataset.yaml files from the collection'\''s parent repo is disabled. For a cloud collection, scripts address cloud datasets by id via pm.datasets(<id>) (resolved from your `postman login` session). SECURITY\: for a cloud collection this does NOT scope access — a script can pm.datasets(<anyId>) for any dataset your session can read. Only run collections you trust against a logged-in cloud session. (default\: \[\])]:pathOrDir:_files -g "*.json"' \
|
|
506
|
+
'--dataset[\[BETA\] Pass --dataset multiple times to load several .dataset.yaml files (or directories containing them). Each is made available to collection scripts and local mock handlers as pm.datasets(<id>). When provided, auto-discovery of .dataset.yaml files from the collection'\''s parent repo is disabled. For a cloud collection, scripts address cloud datasets by id via pm.datasets(<id>) (resolved from your `postman login` session). SECURITY\: for a cloud collection this does NOT scope access — a script can pm.datasets(<anyId>) for any dataset your session can read. Only run collections you trust against a logged-in cloud session. (default\: \[\])]:pathOrDir:_files -g "*.json"' \
|
|
507
507
|
'-i[Specify the request/folder id, name, or path to run from the collection. Use a path (e.g. "FolderName/RequestName") to disambiguate items with the same name. Can be specified multiple times to run multiple items (default\: \[\])]:id' \
|
|
508
508
|
'--global-var[Allows the specification of global variables via the command line, in a key=value format]:value' \
|
|
509
509
|
'--env-var[Allows the specification of environment variables via the command line, in a key=value format (default\: \[\])]:value' \
|
|
@@ -836,6 +836,7 @@ _postman_spec() {
|
|
|
836
836
|
create) _postman_spec_create ;;
|
|
837
837
|
generate) _postman_spec_generate ;;
|
|
838
838
|
sync) _postman_spec_sync ;;
|
|
839
|
+
delete) _postman_spec_delete ;;
|
|
839
840
|
esac
|
|
840
841
|
;;
|
|
841
842
|
esac
|
|
@@ -852,6 +853,7 @@ _postman_spec_commands() {
|
|
|
852
853
|
'create:Create a new spec in a workspace, or (with path) scaffold a local spec file.'
|
|
853
854
|
'generate:Generate artifacts from a specification.'
|
|
854
855
|
'sync:Sync a generated collection with its source specification.'
|
|
856
|
+
'delete:Delete a spec by its cloud ID or local file path. Cannot be undone.'
|
|
855
857
|
)
|
|
856
858
|
_describe -t commands 'spec command' sub
|
|
857
859
|
}
|
|
@@ -988,6 +990,7 @@ _postman_spec_generate_collection() {
|
|
|
988
990
|
'--folder-strategy[Folder strategy\: Paths or Tags (default\: Paths) (default\: "Paths")]:strategy' \
|
|
989
991
|
'(-w --workspace)'{-w,--workspace}'[Workspace ID (cloud mode)]:id' \
|
|
990
992
|
'--api-key[Postman API key]:key:_files -g "*.(pem|crt|key)"' \
|
|
993
|
+
'--force[Overwrite the collection if one with this name already exists (local mode)]' \
|
|
991
994
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
992
995
|
'*:spec:'
|
|
993
996
|
}
|
|
@@ -1024,6 +1027,14 @@ _postman_spec_sync_collection() {
|
|
|
1024
1027
|
'*:spec:'
|
|
1025
1028
|
}
|
|
1026
1029
|
|
|
1030
|
+
_postman_spec_delete() {
|
|
1031
|
+
_arguments \
|
|
1032
|
+
'(-y --yes)'{-y,--yes}'[Delete without asking for confirmation first]' \
|
|
1033
|
+
'--api-key[Postman API key, used with a cloud ID (defaults to your `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1034
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1035
|
+
'*:spec:'
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1027
1038
|
_postman_monitor() {
|
|
1028
1039
|
local context state state_descr line
|
|
1029
1040
|
typeset -A opt_args
|
|
@@ -1512,6 +1523,7 @@ _postman_performance_run() {
|
|
|
1512
1523
|
'--runner[Runner to execute the performance test on\: local, postman-cloud, or postman-cloud-static-ip (egress from your account region'\''s static-IP cluster) (default\: local)]:runner' \
|
|
1513
1524
|
'--pass-if[Pass condition in format\: function(metric, value). Functions\: less_than, greater_than, less_than_eq, greater_than_eq. Metrics\: avg, p90, p95, p99, error_rate, rps. Example\: less_than(p95, 500) or less_than(error_rate, 5)]:condition' \
|
|
1514
1525
|
'--use-mock[Redirect a variable/host to a local code mock or cloud Mock Server (repeatable). Format\: "<{{var}}|host> mock|mock-server\:<path|id> \[scenario\]" (default\: \[\])]:mapping' \
|
|
1526
|
+
'--dataset[Pass --dataset multiple times to load several .dataset.yaml files (or directories containing them). Each is made available to the handlers of the local mocks started by --use-mock as pm.datasets(<id>). Local runner only. (default\: \[\])]:pathOrDir:_files -g "*.json"' \
|
|
1515
1527
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1516
1528
|
'*:collectionId:_files -g "*.json"'
|
|
1517
1529
|
}
|
|
@@ -1926,6 +1938,7 @@ _postman_mock_run() {
|
|
|
1926
1938
|
'--api-key[Postman API key, used with a Postman cloud id (defaults to your `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1927
1939
|
'(-w --workspace)'{-w,--workspace}'[Workspace that owns the run, for recording its start history. Auto-resolved for a Postman cloud id; required to record history for a path.]:id' \
|
|
1928
1940
|
'--no-history[Do not record this run in the mock'\''s start history.]' \
|
|
1941
|
+
'--dataset[Pass --dataset multiple times to load several .dataset.yaml files (or directories containing them). Each is made available to the mock'\''s handlers as pm.datasets(<id>). (default\: \[\])]:pathOrDir:_files -g "*.json"' \
|
|
1929
1942
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1930
1943
|
'*:mockIdOrPath:_files -g "*.json"'
|
|
1931
1944
|
}
|
|
@@ -3013,6 +3026,7 @@ _postman_dependency() {
|
|
|
3013
3026
|
list) _postman_dependency_list ;;
|
|
3014
3027
|
install) _postman_dependency_install ;;
|
|
3015
3028
|
update) _postman_dependency_update ;;
|
|
3029
|
+
remove) _postman_dependency_remove ;;
|
|
3016
3030
|
esac
|
|
3017
3031
|
;;
|
|
3018
3032
|
esac
|
|
@@ -3025,6 +3039,7 @@ _postman_dependency_commands() {
|
|
|
3025
3039
|
'list:List the workspace dependencies declared in .postman/resources.yaml.'
|
|
3026
3040
|
'install:Materialise the dependencies declared in .postman/resources.yaml (all, or one).'
|
|
3027
3041
|
'update:Refresh declared dependencies to the latest content from their source (all, or one).'
|
|
3042
|
+
'remove:Remove a workspace dependency and delete its local files.'
|
|
3028
3043
|
)
|
|
3029
3044
|
_describe -t commands 'dependency command' sub
|
|
3030
3045
|
}
|
|
@@ -3061,6 +3076,15 @@ _postman_dependency_update() {
|
|
|
3061
3076
|
'*:nameOrId:'
|
|
3062
3077
|
}
|
|
3063
3078
|
|
|
3079
|
+
_postman_dependency_remove() {
|
|
3080
|
+
_arguments \
|
|
3081
|
+
'--type[Only match dependencies of this type (collection, environment, or mock).]:type' \
|
|
3082
|
+
'(-y --yes)'{-y,--yes}'[Skip the confirmation prompt (required outside an interactive terminal).]' \
|
|
3083
|
+
'--json[Output the result as JSON.]' \
|
|
3084
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
3085
|
+
'*:nameOrId:'
|
|
3086
|
+
}
|
|
3087
|
+
|
|
3064
3088
|
# When loaded via fpath + compinit, the file body becomes the function body of
|
|
3065
3089
|
# `_postman`. In that case `funcstack[1]` is `_postman` and we must actually
|
|
3066
3090
|
# invoke the completion. When sourced directly, this is a no-op — `_postman`
|