postman-cli-completion 1.80.0 → 1.82.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.82.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
|
|
@@ -994,11 +994,12 @@ _postman_flows() {
|
|
|
994
994
|
if [[ "$cur" == -* ]]; then
|
|
995
995
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
996
996
|
else
|
|
997
|
-
COMPREPLY=( $(compgen -W "list trigger deploy run update delete list-runs get-run" -- "$cur") )
|
|
997
|
+
COMPREPLY=( $(compgen -W "create list trigger deploy run update delete list-runs get-run" -- "$cur") )
|
|
998
998
|
fi
|
|
999
999
|
return 0
|
|
1000
1000
|
fi
|
|
1001
1001
|
case "$subcmd" in
|
|
1002
|
+
create) _postman_flows_create ;;
|
|
1002
1003
|
list) _postman_flows_list ;;
|
|
1003
1004
|
trigger) _postman_flows_trigger ;;
|
|
1004
1005
|
deploy) _postman_flows_deploy ;;
|
|
@@ -1010,6 +1011,15 @@ _postman_flows() {
|
|
|
1010
1011
|
esac
|
|
1011
1012
|
}
|
|
1012
1013
|
|
|
1014
|
+
_postman_flows_create() {
|
|
1015
|
+
if [[ "$cur" == -* ]]; then
|
|
1016
|
+
COMPREPLY=( $(compgen -W "-n --name --verbose --debug --json -h --help" -- "$cur") )
|
|
1017
|
+
return 0
|
|
1018
|
+
fi
|
|
1019
|
+
case "$prev" in
|
|
1020
|
+
esac
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1013
1023
|
_postman_flows_list() {
|
|
1014
1024
|
if [[ "$cur" == -* ]]; then
|
|
1015
1025
|
COMPREPLY=( $(compgen -W "-w --workspace -p --paginate -f --filter -s --sort --verbose --debug --json -h --help" -- "$cur") )
|
|
@@ -1994,7 +2004,8 @@ _postman_workspace() {
|
|
|
1994
2004
|
push) _postman_workspace_push ;;
|
|
1995
2005
|
lint) _postman_workspace_lint ;;
|
|
1996
2006
|
get) _postman_workspace_get ;;
|
|
1997
|
-
context
|
|
2007
|
+
context) _postman_workspace_context ;;
|
|
2008
|
+
activity) _postman_workspace_activity ;;
|
|
1998
2009
|
create) _postman_workspace_create ;;
|
|
1999
2010
|
delete) _postman_workspace_delete ;;
|
|
2000
2011
|
share) _postman_workspace_share ;;
|
|
@@ -2049,6 +2060,15 @@ _postman_workspace_get() {
|
|
|
2049
2060
|
}
|
|
2050
2061
|
|
|
2051
2062
|
_postman_workspace_context() {
|
|
2063
|
+
if [[ "$cur" == -* ]]; then
|
|
2064
|
+
COMPREPLY=( $(compgen -W "--section --limit --type --contributor --cursor --markdown --brief --json --text --timeout -h --help" -- "$cur") )
|
|
2065
|
+
return 0
|
|
2066
|
+
fi
|
|
2067
|
+
case "$prev" in
|
|
2068
|
+
esac
|
|
2069
|
+
}
|
|
2070
|
+
|
|
2071
|
+
_postman_workspace_activity() {
|
|
2052
2072
|
if [[ "$cur" == -* ]]; then
|
|
2053
2073
|
COMPREPLY=( $(compgen -W "--type --contributor --cursor --limit --markdown --json --brief --timeout -h --help" -- "$cur") )
|
|
2054
2074
|
return 0
|
|
@@ -2513,7 +2533,7 @@ _postman_skills_update() {
|
|
|
2513
2533
|
|
|
2514
2534
|
_postman_login() {
|
|
2515
2535
|
if [[ "$cur" == -* ]]; then
|
|
2516
|
-
COMPREPLY=( $(compgen -W "--alias --with-api-key --region --verbose -h --help" -- "$cur") )
|
|
2536
|
+
COMPREPLY=( $(compgen -W "--alias --with-api-key --region --migrate-guest-workspace --no-migrate-guest-workspace --verbose -h --help" -- "$cur") )
|
|
2517
2537
|
return 0
|
|
2518
2538
|
fi
|
|
2519
2539
|
case "$prev" in
|
|
@@ -2704,7 +2724,7 @@ _postman_performance() {
|
|
|
2704
2724
|
|
|
2705
2725
|
_postman_performance_run() {
|
|
2706
2726
|
if [[ "$cur" == -* ]]; then
|
|
2707
|
-
COMPREPLY=( $(compgen -W "-e --environment -g --globals --setup-collection --teardown-collection --peak-vu --vu-count --base-vu -d --duration -p --load-profile -s --load-segments --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 --disable-unicode --pass-if --use-mock --dataset -h --help" -- "$cur") )
|
|
2727
|
+
COMPREPLY=( $(compgen -W "-e --environment -g --globals --setup-collection --teardown-collection --peak-vu --vu-count --base-vu -d --duration -p --load-profile -s --load-segments --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 --disable-unicode --pass-if --use-mock --dataset --workspace-id -h --help" -- "$cur") )
|
|
2708
2728
|
return 0
|
|
2709
2729
|
fi
|
|
2710
2730
|
case "$prev" in
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Fish completion for Postman CLI (postman v1.
|
|
1
|
+
# Fish completion for Postman CLI (postman v1.82.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
|
|
@@ -89,7 +89,7 @@ complete -c postman -n '__postman_using_subcommand collection new migrate lint a
|
|
|
89
89
|
complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get delete publish generate sync share request folder example import list run' -a request -d 'Add, get, update, or remove requests in a local v3 collection.'
|
|
90
90
|
complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get delete publish generate sync share request folder example import list run' -a folder -d 'Add, get, update, or remove folders in a local v3 collection.'
|
|
91
91
|
complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get delete publish generate sync share request folder example import list run' -a example -d 'Add, update, remove, get, or list examples (saved responses) under a request.'
|
|
92
|
-
complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get delete publish generate sync share request folder example import list run' -a import -d 'Import a cURL or
|
|
92
|
+
complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get delete publish generate sync share request folder example import list run' -a import -d 'Import a cURL, HAR, or JMeter (.jmx) source into a v3 collection (local, or cloud with --workspace).'
|
|
93
93
|
complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get delete publish generate sync share request folder example import list run' -a list -d 'List collections: your local project\'s collections by default, or a Postman cloud workspace\'s collections with --workspace.'
|
|
94
94
|
complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get delete publish generate sync share request folder example import list run' -a run -d 'Initiate a Postman collection run from a given ID or path.'
|
|
95
95
|
complete -c postman -n '__fish_seen_subcommand_from collection' -s h -l help -d 'display help for command'
|
|
@@ -313,7 +313,7 @@ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_
|
|
|
313
313
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from example; and __fish_seen_subcommand_from list' -l json -d 'JSON output.'
|
|
314
314
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from example; and __fish_seen_subcommand_from list' -s h -l help -d 'display help for command'
|
|
315
315
|
# ---------- collection import ----------
|
|
316
|
-
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from import' -l type -d 'Source format: curl or
|
|
316
|
+
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from import' -l type -d 'Source format: curl, har, or jmeter. Auto-detected from the extension/content when omitted.' -x
|
|
317
317
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from import' -l name -d 'Collection display name. Defaults to a per-format fallback.' -x
|
|
318
318
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from import' -s o -l output -d 'Output directory for the local collection (default: postman/collections/<name>).' -r
|
|
319
319
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from import' -s w -l workspace -d 'Create the collection in a Postman cloud workspace by id (cloud mode).' -x
|
|
@@ -648,15 +648,22 @@ complete -c postman -n '__fish_seen_subcommand_from environment; and __fish_seen
|
|
|
648
648
|
complete -c postman -n '__fish_seen_subcommand_from environment; and __fish_seen_subcommand_from lint' -r -k -a '(__fish_complete_suffix .json)'
|
|
649
649
|
|
|
650
650
|
# ---------- flows ----------
|
|
651
|
-
complete -c postman -n '__postman_using_subcommand flows list trigger deploy run update delete list-runs get-run' -a
|
|
652
|
-
complete -c postman -n '__postman_using_subcommand flows list trigger deploy run update delete list-runs get-run' -a
|
|
653
|
-
complete -c postman -n '__postman_using_subcommand flows list trigger deploy run update delete list-runs get-run' -a
|
|
654
|
-
complete -c postman -n '__postman_using_subcommand flows list trigger deploy run update delete list-runs get-run' -a
|
|
655
|
-
complete -c postman -n '__postman_using_subcommand flows list trigger deploy run update delete list-runs get-run' -a
|
|
656
|
-
complete -c postman -n '__postman_using_subcommand flows list trigger deploy run update delete list-runs get-run' -a
|
|
657
|
-
complete -c postman -n '__postman_using_subcommand flows list trigger deploy run update delete list-runs get-run' -a
|
|
658
|
-
complete -c postman -n '__postman_using_subcommand flows list trigger deploy run update delete list-runs get-run' -a
|
|
651
|
+
complete -c postman -n '__postman_using_subcommand flows create list trigger deploy run update delete list-runs get-run' -a create -d 'Create a flow in the current repository, the same way "New flow" does in the Postman app. Run it from the root of a repository connected to a Postman workspace.'
|
|
652
|
+
complete -c postman -n '__postman_using_subcommand flows create list trigger deploy run update delete list-runs get-run' -a list -d 'List all flows'
|
|
653
|
+
complete -c postman -n '__postman_using_subcommand flows create list trigger deploy run update delete list-runs get-run' -a trigger -d 'Trigger a deployed flow'
|
|
654
|
+
complete -c postman -n '__postman_using_subcommand flows create list trigger deploy run update delete list-runs get-run' -a deploy -d 'Deploy a flow (required to trigger it)'
|
|
655
|
+
complete -c postman -n '__postman_using_subcommand flows create list trigger deploy run update delete list-runs get-run' -a run -d 'Run a single flow from a file (e.g. ./path/to/flow.json)'
|
|
656
|
+
complete -c postman -n '__postman_using_subcommand flows create list trigger deploy run update delete list-runs get-run' -a update -d 'Update settings for a deployed flow'
|
|
657
|
+
complete -c postman -n '__postman_using_subcommand flows create list trigger deploy run update delete list-runs get-run' -a delete -d 'Delete a flow. A flow id deletes the cloud flow; a local flow file path deletes that file only. Prompts for confirmation unless --yes is passed.'
|
|
658
|
+
complete -c postman -n '__postman_using_subcommand flows create list trigger deploy run update delete list-runs get-run' -a list-runs -d 'List run history for a deployed flow'
|
|
659
|
+
complete -c postman -n '__postman_using_subcommand flows create list trigger deploy run update delete list-runs get-run' -a get-run -d 'Analyze a specific flow run'
|
|
659
660
|
complete -c postman -n '__fish_seen_subcommand_from flows' -s h -l help -d 'display help for command'
|
|
661
|
+
# ---------- flows create ----------
|
|
662
|
+
complete -c postman -n '__fish_seen_subcommand_from flows; and __fish_seen_subcommand_from create' -s n -l name -d 'Specify the flow name (default: "New flow")' -x
|
|
663
|
+
complete -c postman -n '__fish_seen_subcommand_from flows; and __fish_seen_subcommand_from create' -l verbose -d 'Verbose output'
|
|
664
|
+
complete -c postman -n '__fish_seen_subcommand_from flows; and __fish_seen_subcommand_from create' -l debug -d 'Debug output'
|
|
665
|
+
complete -c postman -n '__fish_seen_subcommand_from flows; and __fish_seen_subcommand_from create' -l json -d 'JSON output'
|
|
666
|
+
complete -c postman -n '__fish_seen_subcommand_from flows; and __fish_seen_subcommand_from create' -s h -l help -d 'display help for command'
|
|
660
667
|
# ---------- flows list ----------
|
|
661
668
|
complete -c postman -n '__fish_seen_subcommand_from flows; and __fish_seen_subcommand_from list' -s w -l workspace -d 'Specify the workspace ID to list flows from' -x
|
|
662
669
|
complete -c postman -n '__fish_seen_subcommand_from flows; and __fish_seen_subcommand_from list' -s p -l paginate -d 'Paginates the list of flows'
|
|
@@ -1282,8 +1289,8 @@ complete -c postman -n '__postman_using_subcommand workspace list prepare push l
|
|
|
1282
1289
|
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get context activity create delete share pull connect-git disconnect-git diff' -a push -d 'Push local workspace entities (collections, environments, specifications, mocks and more) to Postman workspace.'
|
|
1283
1290
|
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get context activity create delete share pull connect-git disconnect-git diff' -a lint -d 'Lint the current local Postman workspace: its configuration (.postman/resources.yaml) plus every discovered entity. Use --meta to lint only the configuration.'
|
|
1284
1291
|
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get context activity create delete share pull connect-git disconnect-git diff' -a get -d 'Read a workspace\'s metadata, and optionally the ids of what it holds.'
|
|
1285
|
-
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get context activity create delete share pull connect-git disconnect-git diff' -a context -d '
|
|
1286
|
-
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get context activity create delete share pull connect-git disconnect-git diff' -a activity -d '
|
|
1292
|
+
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get context activity create delete share pull connect-git disconnect-git diff' -a context -d 'Everything about a workspace: collections, environments, monitors, mocks, specs and flows, and how they relate (which monitor runs which collection). Add `--section activity` for the change feed. Prints JSON when piped.'
|
|
1293
|
+
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get context activity create delete share pull connect-git disconnect-git diff' -a activity -d 'Shorthand for `workspace context --section activity`: who changed what, and the messages left on pushes.'
|
|
1287
1294
|
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get context activity create delete share pull connect-git disconnect-git diff' -a create -d 'Create a Postman workspace and bind it to this git repository.'
|
|
1288
1295
|
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get context activity create delete share pull connect-git disconnect-git diff' -a delete -d 'Permanently delete a workspace and everything in it. Prompts for confirmation unless --yes is passed.'
|
|
1289
1296
|
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get context activity create delete share pull connect-git disconnect-git diff' -a share -d 'Grant a role on a workspace to one or more people.'
|
|
@@ -1327,15 +1334,27 @@ complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_s
|
|
|
1327
1334
|
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from get' -l timeout -d 'Milliseconds to wait for the API (default 30000).' -x
|
|
1328
1335
|
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from get' -s h -l help -d 'display help for command'
|
|
1329
1336
|
# ---------- workspace context ----------
|
|
1330
|
-
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from context' -l
|
|
1331
|
-
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from context' -l
|
|
1332
|
-
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from context' -l
|
|
1333
|
-
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from context' -l
|
|
1334
|
-
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from context' -l
|
|
1335
|
-
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from context' -l
|
|
1336
|
-
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from context' -l brief -d '
|
|
1337
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from context' -l section -d 'Comma-separated sections to show (collection, environment, monitor, mock, spec, flow, activity). Default: everything but activity. Counts are always reported for every inventory section.' -x
|
|
1338
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from context' -l limit -d 'Max items per section, or entries for activity (default 25 items). A cut section says how many were left out.' -x
|
|
1339
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from context' -l type -d 'Activity only: comma-separated element types, e.g. "api,collection". Use "workspacePush" for the messages left with `workspace push -m`.' -x
|
|
1340
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from context' -l contributor -d 'Activity only: comma-separated user ids.' -x
|
|
1341
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from context' -l cursor -d 'Activity only: the page of entries that follows this cursor.' -x
|
|
1342
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from context' -l markdown -d 'Activity only: ask the API for a human-readable description of each entry.'
|
|
1343
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from context' -l brief -d 'With only `--section activity`: one plain line per entry (time, who, message).'
|
|
1344
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from context' -l json -d 'Print JSON (schemaVersion 1.0). This is already the default when piped.'
|
|
1345
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from context' -l text -d 'Print prose even when piped.'
|
|
1337
1346
|
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from context' -l timeout -d 'Milliseconds to wait for the API (default 30000).' -x
|
|
1338
1347
|
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from context' -s h -l help -d 'display help for command'
|
|
1348
|
+
# ---------- workspace activity ----------
|
|
1349
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from activity' -l type -d 'Comma-separated element types to filter on, e.g. "api,collection". Use "workspacePush" for the messages left with `workspace push -m`.' -x
|
|
1350
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from activity' -l contributor -d 'Comma-separated user ids to filter on.' -x
|
|
1351
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from activity' -l cursor -d 'Fetch the page of entries that follows this cursor.' -x
|
|
1352
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from activity' -l limit -d 'Max entries to return.' -x
|
|
1353
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from activity' -l markdown -d 'Ask the API for a human-readable description of each entry.'
|
|
1354
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from activity' -l json -d 'Print the feed as machine-readable JSON.'
|
|
1355
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from activity' -l brief -d 'Print one plain line per entry (time, who, message), for a prompt or a log. Prints nothing when there are no entries.'
|
|
1356
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from activity' -l timeout -d 'Milliseconds to wait for the API (default 30000).' -x
|
|
1357
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from activity' -s h -l help -d 'display help for command'
|
|
1339
1358
|
# ---------- workspace create ----------
|
|
1340
1359
|
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from create' -l visibility -d 'Required. One of: personal, private, team, public, partner.' -x
|
|
1341
1360
|
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from create' -l name -d 'Workspace name (defaults to owner/repo from the git remote)' -x
|
|
@@ -1547,6 +1566,8 @@ complete -c postman -n '__fish_seen_subcommand_from skills; and __fish_seen_subc
|
|
|
1547
1566
|
complete -c postman -n '__fish_seen_subcommand_from login' -l alias -d 'Specify the alias of the API key to fetch your resources using it. (This option is discontinued and will be removed in a future release.)' -x
|
|
1548
1567
|
complete -c postman -n '__fish_seen_subcommand_from login' -l with-api-key -d 'Specify the API key directly.' -x
|
|
1549
1568
|
complete -c postman -n '__fish_seen_subcommand_from login' -l region -d 'Specify the region for authentication. Use "eu" for EU region.' -x -a 'us eu'
|
|
1569
|
+
complete -c postman -n '__fish_seen_subcommand_from login' -l migrate-guest-workspace -d 'Copy this repository\'s local work into a new workspace in the account you sign in to, even when this session is no longer a guest (for example after a logout).'
|
|
1570
|
+
complete -c postman -n '__fish_seen_subcommand_from login' -l no-migrate-guest-workspace -d 'Do not copy a guest\'s local work into the account you sign in to. By default a guest\'s local work is copied.'
|
|
1550
1571
|
complete -c postman -n '__fish_seen_subcommand_from login' -l verbose -d 'Show detailed error information'
|
|
1551
1572
|
complete -c postman -n '__fish_seen_subcommand_from login' -s h -l help -d 'display help for command'
|
|
1552
1573
|
|
|
@@ -1673,6 +1694,7 @@ complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen
|
|
|
1673
1694
|
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) (repeatable; all conditions must hold). Functions: less_than, greater_than, less_than_eq, greater_than_eq. Metrics: avg, p90, p95, p99, error_rate, rps. Example: less_than(p95, 500)' -x
|
|
1674
1695
|
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
|
|
1675
1696
|
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
|
|
1697
|
+
complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -l workspace-id -d 'Workspace that owns the shared vault for the collection\'s v12 secret variables. Required on cloud runs to resolve those secrets; omit if the run uses no vault secrets.' -x
|
|
1676
1698
|
complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -s h -l help -d 'display help for command'
|
|
1677
1699
|
complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -r -k -a '(__fish_complete_suffix .json)'
|
|
1678
1700
|
# ---------- performance list ----------
|
|
@@ -1754,7 +1776,7 @@ complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_
|
|
|
1754
1776
|
complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from run' -l output -d 'Live output format: auto (default, human-readable logs) or ndjson (one JSON event per line on stdout, ending with a "summary" event — for CI or other non-interactive use) (default: "auto")' -x
|
|
1755
1777
|
complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from run' -l verbose -d 'Show request and response headers and bodies for each request. By default each request prints one line, plus any applied scenario or error.'
|
|
1756
1778
|
complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from run' -l proxy -d 'Serve the mocks behind a local HTTP(S) forward proxy instead of one routed port, so a repo under test can point HTTP_PROXY/HTTPS_PROXY at it and reach each mock by hostname without code changes. Each mock is reached on the hostnames its `origin:` declares; a request to any other host reaches the real host unchanged.'
|
|
1757
|
-
complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from run' -l proxy-port -d 'Port for the proxy server. Distinct from --port, which is the one-port run\'s own port. Bound to 127.0.0.1, so point clients there rather than at "localhost" — a client that resolves localhost to ::1 first will not reach it.
|
|
1779
|
+
complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from run' -l proxy-port -d 'Port for the proxy server, or "auto" for a free one. Omitted, it prefers 7001 but falls back to a free port when that one is busy, so an omitted port is not guaranteed: pass one to pin it, or read the bound port from the startup banner. A port passed here exits 1 when it is busy. Distinct from --port, which is the one-port run\'s own port. Bound to 127.0.0.1, so point clients there rather than at "localhost" — a client that resolves localhost to ::1 first will not reach it.' -x
|
|
1758
1780
|
complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from run' -l scenario -d 'Scenario each mock serves, sent as both pm-mock-scenario and x-mock-scenario. A member that defines no scenario by this name serves its default. (default: "default")' -x
|
|
1759
1781
|
complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from run' -l session -d 'Session id to select via the x-mock-session header (default: a generated id).' -x
|
|
1760
1782
|
complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from run' -l log-format -d 'Proxy request log format: text or json. Each line carries the method, host, path, destination (a routeKey, or "passthrough"), status and duration; json adds a timestamp, the scenario and the session. (default: "text")' -x
|
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.82.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
|
|
@@ -193,7 +193,7 @@ _postman_collection_commands() {
|
|
|
193
193
|
'request:Add, get, update, or remove requests in a local v3 collection.'
|
|
194
194
|
'folder:Add, get, update, or remove folders in a local v3 collection.'
|
|
195
195
|
'example:Add, update, remove, get, or list examples (saved responses) under a request.'
|
|
196
|
-
'import:Import a cURL or
|
|
196
|
+
'import:Import a cURL, HAR, or JMeter (.jmx) source into a v3 collection (local, or cloud with --workspace).'
|
|
197
197
|
'list:List collections\: your local project'\''s collections by default, or a Postman cloud workspace'\''s collections with --workspace.'
|
|
198
198
|
'run:Initiate a Postman collection run from a given ID or path.'
|
|
199
199
|
)
|
|
@@ -621,7 +621,7 @@ _postman_collection_example_list() {
|
|
|
621
621
|
|
|
622
622
|
_postman_collection_import() {
|
|
623
623
|
_arguments \
|
|
624
|
-
'--type[Source format\: curl or
|
|
624
|
+
'--type[Source format\: curl, har, or jmeter. Auto-detected from the extension/content when omitted.]:format' \
|
|
625
625
|
'--name[Collection display name. Defaults to a per-format fallback.]:name' \
|
|
626
626
|
'(-o --output)'{-o,--output}'[Output directory for the local collection (default\: postman/collections/<name>).]:dir:_files -g "*.json"' \
|
|
627
627
|
'(-w --workspace)'{-w,--workspace}'[Create the collection in a Postman cloud workspace by id (cloud mode).]:id' \
|
|
@@ -1208,6 +1208,7 @@ _postman_flows() {
|
|
|
1208
1208
|
case $state in
|
|
1209
1209
|
args)
|
|
1210
1210
|
case $words[1] in
|
|
1211
|
+
create) _postman_flows_create ;;
|
|
1211
1212
|
list) _postman_flows_list ;;
|
|
1212
1213
|
trigger) _postman_flows_trigger ;;
|
|
1213
1214
|
deploy) _postman_flows_deploy ;;
|
|
@@ -1224,6 +1225,7 @@ _postman_flows() {
|
|
|
1224
1225
|
_postman_flows_commands() {
|
|
1225
1226
|
local -a sub
|
|
1226
1227
|
sub=(
|
|
1228
|
+
'create:Create a flow in the current repository, the same way "New flow" does in the Postman app. Run it from the root of a repository connected to a Postman workspace.'
|
|
1227
1229
|
'list:List all flows'
|
|
1228
1230
|
'trigger:Trigger a deployed flow'
|
|
1229
1231
|
'deploy:Deploy a flow (required to trigger it)'
|
|
@@ -1236,6 +1238,15 @@ _postman_flows_commands() {
|
|
|
1236
1238
|
_describe -t commands 'flows command' sub
|
|
1237
1239
|
}
|
|
1238
1240
|
|
|
1241
|
+
_postman_flows_create() {
|
|
1242
|
+
_arguments \
|
|
1243
|
+
'(-n --name)'{-n,--name}'[Specify the flow name (default\: "New flow")]:name' \
|
|
1244
|
+
'--verbose[Verbose output]' \
|
|
1245
|
+
'--debug[Debug output]' \
|
|
1246
|
+
'--json[JSON output]' \
|
|
1247
|
+
'(-h --help)'{-h,--help}'[display help for command]'
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1239
1250
|
_postman_flows_list() {
|
|
1240
1251
|
_arguments \
|
|
1241
1252
|
'(-w --workspace)'{-w,--workspace}'[Specify the workspace ID to list flows from]:workspaceId' \
|
|
@@ -2382,7 +2393,8 @@ _postman_workspace() {
|
|
|
2382
2393
|
push) _postman_workspace_push ;;
|
|
2383
2394
|
lint) _postman_workspace_lint ;;
|
|
2384
2395
|
get) _postman_workspace_get ;;
|
|
2385
|
-
context
|
|
2396
|
+
context) _postman_workspace_context ;;
|
|
2397
|
+
activity) _postman_workspace_activity ;;
|
|
2386
2398
|
create) _postman_workspace_create ;;
|
|
2387
2399
|
delete) _postman_workspace_delete ;;
|
|
2388
2400
|
share) _postman_workspace_share ;;
|
|
@@ -2403,8 +2415,8 @@ _postman_workspace_commands() {
|
|
|
2403
2415
|
'push:Push local workspace entities (collections, environments, specifications, mocks and more) to Postman workspace.'
|
|
2404
2416
|
'lint:Lint the current local Postman workspace\: its configuration (.postman/resources.yaml) plus every discovered entity. Use --meta to lint only the configuration.'
|
|
2405
2417
|
'get:Read a workspace'\''s metadata, and optionally the ids of what it holds.'
|
|
2406
|
-
'context:
|
|
2407
|
-
'activity:
|
|
2418
|
+
'context:Everything about a workspace\: collections, environments, monitors, mocks, specs and flows, and how they relate (which monitor runs which collection). Add `--section activity` for the change feed. Prints JSON when piped.'
|
|
2419
|
+
'activity:Shorthand for `workspace context --section activity`\: who changed what, and the messages left on pushes.'
|
|
2408
2420
|
'create:Create a Postman workspace and bind it to this git repository.'
|
|
2409
2421
|
'delete:Permanently delete a workspace and everything in it. Prompts for confirmation unless --yes is passed.'
|
|
2410
2422
|
'share:Grant a role on a workspace to one or more people.'
|
|
@@ -2467,6 +2479,22 @@ _postman_workspace_get() {
|
|
|
2467
2479
|
}
|
|
2468
2480
|
|
|
2469
2481
|
_postman_workspace_context() {
|
|
2482
|
+
_arguments \
|
|
2483
|
+
'--section[Comma-separated sections to show (collection, environment, monitor, mock, spec, flow, activity). Default\: everything but activity. Counts are always reported for every inventory section.]:names' \
|
|
2484
|
+
'--limit[Max items per section, or entries for activity (default 25 items). A cut section says how many were left out.]:n' \
|
|
2485
|
+
'--type[Activity only\: comma-separated element types, e.g. "api,collection". Use "workspacePush" for the messages left with `workspace push -m`.]:types' \
|
|
2486
|
+
'--contributor[Activity only\: comma-separated user ids.]:ids' \
|
|
2487
|
+
'--cursor[Activity only\: the page of entries that follows this cursor.]:cursor' \
|
|
2488
|
+
'--markdown[Activity only\: ask the API for a human-readable description of each entry.]' \
|
|
2489
|
+
'--brief[With only `--section activity`\: one plain line per entry (time, who, message).]' \
|
|
2490
|
+
'--json[Print JSON (schemaVersion 1.0). This is already the default when piped.]' \
|
|
2491
|
+
'--text[Print prose even when piped.]' \
|
|
2492
|
+
'--timeout[Milliseconds to wait for the API (default 30000).]:ms' \
|
|
2493
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
2494
|
+
'*:id:'
|
|
2495
|
+
}
|
|
2496
|
+
|
|
2497
|
+
_postman_workspace_activity() {
|
|
2470
2498
|
_arguments \
|
|
2471
2499
|
'--type[Comma-separated element types to filter on, e.g. "api,collection". Use "workspacePush" for the messages left with `workspace push -m`.]:types' \
|
|
2472
2500
|
'--contributor[Comma-separated user ids to filter on.]:ids' \
|
|
@@ -3046,6 +3074,8 @@ _postman_login() {
|
|
|
3046
3074
|
'--alias[Specify the alias of the API key to fetch your resources using it. (This option is discontinued and will be removed in a future release.)]:alias' \
|
|
3047
3075
|
'--with-api-key[Specify the API key directly.]:apikey' \
|
|
3048
3076
|
'--region[Specify the region for authentication. Use "eu" for EU region.]:region:(us eu)' \
|
|
3077
|
+
'--migrate-guest-workspace[Copy this repository'\''s local work into a new workspace in the account you sign in to, even when this session is no longer a guest (for example after a logout).]' \
|
|
3078
|
+
'--no-migrate-guest-workspace[Do not copy a guest'\''s local work into the account you sign in to. By default a guest'\''s local work is copied.]' \
|
|
3049
3079
|
'--verbose[Show detailed error information]' \
|
|
3050
3080
|
'(-h --help)'{-h,--help}'[display help for command]'
|
|
3051
3081
|
}
|
|
@@ -3285,6 +3315,7 @@ _postman_performance_run() {
|
|
|
3285
3315
|
'--pass-if[Pass condition in format\: function(metric, value) (repeatable; all conditions must hold). Functions\: less_than, greater_than, less_than_eq, greater_than_eq. Metrics\: avg, p90, p95, p99, error_rate, rps. Example\: less_than(p95, 500)]:condition' \
|
|
3286
3316
|
'--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' \
|
|
3287
3317
|
'--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"' \
|
|
3318
|
+
'--workspace-id[Workspace that owns the shared vault for the collection'\''s v12 secret variables. Required on cloud runs to resolve those secrets; omit if the run uses no vault secrets.]:id' \
|
|
3288
3319
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
3289
3320
|
'*:collectionId:_files -g "*.json"'
|
|
3290
3321
|
}
|
|
@@ -3442,7 +3473,7 @@ _postman_simulation_run() {
|
|
|
3442
3473
|
'--output[Live output format\: auto (default, human-readable logs) or ndjson (one JSON event per line on stdout, ending with a "summary" event — for CI or other non-interactive use) (default\: "auto")]:format' \
|
|
3443
3474
|
'--verbose[Show request and response headers and bodies for each request. By default each request prints one line, plus any applied scenario or error.]' \
|
|
3444
3475
|
'--proxy[Serve the mocks behind a local HTTP(S) forward proxy instead of one routed port, so a repo under test can point HTTP_PROXY/HTTPS_PROXY at it and reach each mock by hostname without code changes. Each mock is reached on the hostnames its `origin\:` declares; a request to any other host reaches the real host unchanged.]' \
|
|
3445
|
-
'--proxy-port[Port for the proxy server. Distinct from --port, which is the one-port run'\''s own port. Bound to 127.0.0.1, so point clients there rather than at "localhost" — a client that resolves localhost to \:\:1 first will not reach it.
|
|
3476
|
+
'--proxy-port[Port for the proxy server, or "auto" for a free one. Omitted, it prefers 7001 but falls back to a free port when that one is busy, so an omitted port is not guaranteed\: pass one to pin it, or read the bound port from the startup banner. A port passed here exits 1 when it is busy. Distinct from --port, which is the one-port run'\''s own port. Bound to 127.0.0.1, so point clients there rather than at "localhost" — a client that resolves localhost to \:\:1 first will not reach it.]:port' \
|
|
3446
3477
|
'--scenario[Scenario each mock serves, sent as both pm-mock-scenario and x-mock-scenario. A member that defines no scenario by this name serves its default. (default\: "default")]:name' \
|
|
3447
3478
|
'--session[Session id to select via the x-mock-session header (default\: a generated id).]:id' \
|
|
3448
3479
|
'--log-format[Proxy request log format\: text or json. Each line carries the method, host, path, destination (a routeKey, or "passthrough"), status and duration; json adds a timestamp, the scenario and the session. (default\: "text")]:format' \
|