postman-cli-completion 1.86.0 → 1.87.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.87.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
|
|
@@ -201,6 +201,7 @@ _postman_collection_get() {
|
|
|
201
201
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
202
202
|
return 0 ;;
|
|
203
203
|
esac
|
|
204
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
204
205
|
}
|
|
205
206
|
|
|
206
207
|
_postman_collection_delete() {
|
|
@@ -798,7 +799,7 @@ _postman_dataset_view_run() {
|
|
|
798
799
|
|
|
799
800
|
_postman_dataset_view_create() {
|
|
800
801
|
if [[ "$cur" == -* ]]; then
|
|
801
|
-
COMPREPLY=( $(compgen -W "-d --dataset -n --name -q --query -s --source --view-id --json --api-key -h --help" -- "$cur") )
|
|
802
|
+
COMPREPLY=( $(compgen -W "-d --dataset -n --name -q --query -s --source --view-id --no-validate --json --api-key -h --help" -- "$cur") )
|
|
802
803
|
return 0
|
|
803
804
|
fi
|
|
804
805
|
case "$prev" in
|
|
@@ -1577,40 +1578,35 @@ _postman_monitor_share() {
|
|
|
1577
1578
|
}
|
|
1578
1579
|
|
|
1579
1580
|
_postman_request() {
|
|
1581
|
+
if [[ -z "$subcmd" ]]; then
|
|
1582
|
+
if [[ "$cur" == -* ]]; then
|
|
1583
|
+
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") )
|
|
1584
|
+
else
|
|
1585
|
+
COMPREPLY=( $(compgen -W "grpc" -- "$cur") )
|
|
1586
|
+
fi
|
|
1587
|
+
return 0
|
|
1588
|
+
fi
|
|
1589
|
+
case "$subcmd" in
|
|
1590
|
+
grpc) _postman_request_grpc ;;
|
|
1591
|
+
esac
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1594
|
+
_postman_request_grpc() {
|
|
1580
1595
|
if [[ "$cur" == -* ]]; then
|
|
1581
|
-
COMPREPLY=( $(compgen -W "
|
|
1596
|
+
COMPREPLY=( $(compgen -W "--list-methods --describe --proto --import-path --protoset --tls --server-name --emit-defaults --script-before-invoke --script-on-message --script-after-response -h --help" -- "$cur") )
|
|
1582
1597
|
return 0
|
|
1583
1598
|
fi
|
|
1584
1599
|
case "$prev" in
|
|
1585
|
-
|
|
1600
|
+
--proto)
|
|
1586
1601
|
_postman_filematch '!*.@(json)' "$cur"
|
|
1587
1602
|
return 0 ;;
|
|
1588
|
-
--
|
|
1589
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1590
|
-
return 0 ;;
|
|
1591
|
-
--ssl-client-cert)
|
|
1592
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1593
|
-
return 0 ;;
|
|
1594
|
-
--ssl-client-key)
|
|
1595
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1596
|
-
return 0 ;;
|
|
1597
|
-
--ssl-extra-ca-certs)
|
|
1598
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1599
|
-
return 0 ;;
|
|
1600
|
-
--cookie-jar)
|
|
1603
|
+
--import-path)
|
|
1601
1604
|
_postman_filematch '!*.@(json)' "$cur"
|
|
1602
1605
|
return 0 ;;
|
|
1603
|
-
--
|
|
1604
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1605
|
-
return 0 ;;
|
|
1606
|
-
--dataset)
|
|
1607
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1608
|
-
return 0 ;;
|
|
1609
|
-
-o|--output)
|
|
1606
|
+
--protoset)
|
|
1610
1607
|
_postman_filematch '!*.@(json)' "$cur"
|
|
1611
1608
|
return 0 ;;
|
|
1612
1609
|
esac
|
|
1613
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1614
1610
|
}
|
|
1615
1611
|
|
|
1616
1612
|
_postman_runner() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Fish completion for Postman CLI (postman v1.
|
|
1
|
+
# Fish completion for Postman CLI (postman v1.87.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
|
|
@@ -30,7 +30,7 @@ complete -c postman -n __postman_no_subcommand -a fl -d 'Alias for flows'
|
|
|
30
30
|
complete -c postman -n __postman_no_subcommand -a globals -d 'Work with local and cloud Postman globals'
|
|
31
31
|
complete -c postman -n __postman_no_subcommand -a mock -d 'Create, run, and manage Postman mocks'
|
|
32
32
|
complete -c postman -n __postman_no_subcommand -a monitor -d 'Run and manage Postman monitors'
|
|
33
|
-
complete -c postman -n __postman_no_subcommand -a request -d 'Send HTTP requests with full Postman capabilities'
|
|
33
|
+
complete -c postman -n __postman_no_subcommand -a request -d 'Send HTTP and gRPC requests with full Postman capabilities'
|
|
34
34
|
complete -c postman -n __postman_no_subcommand -a runner -d 'Start and inspect self-hosted runners, and list Postman-operated regions'
|
|
35
35
|
complete -c postman -n __postman_no_subcommand -a sdk -d 'Generate and manage your SDKs directly from the command line'
|
|
36
36
|
complete -c postman -n __postman_no_subcommand -a spec -d 'Lint and validate specifications from the command line'
|
|
@@ -80,7 +80,7 @@ complete -c postman -n '__postman_using_subcommand collection new migrate lint a
|
|
|
80
80
|
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 migrate -d 'Migrate a v2.1 collection to the v3 format'
|
|
81
81
|
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 lint -d 'Run linting on a local v3 collection at the given file or directory path.'
|
|
82
82
|
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 ai-readiness -d 'Score a Postman collection for AI readiness by ID, local file path, or local-mode directory.'
|
|
83
|
-
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 get -d '
|
|
83
|
+
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 get -d 'Read a local collection path or fetch a cloud collection by id, and print V3 JSON.'
|
|
84
84
|
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 delete -d 'Delete a cloud collection by id or a local collection directory by path. Prompts unless --yes is passed.'
|
|
85
85
|
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 publish -d 'Publish a cloud collection\'s documentation (or request Community Manager approval).'
|
|
86
86
|
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 generate -d 'Generate artifacts from a collection.'
|
|
@@ -119,6 +119,7 @@ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_
|
|
|
119
119
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from get' -l api-key -d 'Postman API key (defaults to your `postman login` session)' -r
|
|
120
120
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from get' -l json -d 'Print the collection as machine-readable V3 JSON instead of a table'
|
|
121
121
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from get' -s h -l help -d 'display help for command'
|
|
122
|
+
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from get' -r -k -a '(__fish_complete_suffix .json)'
|
|
122
123
|
# ---------- collection delete ----------
|
|
123
124
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from delete' -s y -l yes -d 'Delete without asking for confirmation first'
|
|
124
125
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from delete' -l api-key -d 'Postman API key, used when deleting a cloud collection' -r
|
|
@@ -391,7 +392,7 @@ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_sub
|
|
|
391
392
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from list' -r -k -a '(__fish_complete_suffix .json)'
|
|
392
393
|
# ---------- dataset get ----------
|
|
393
394
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from get' -l api-key -d 'Postman API key (defaults to the `postman login` session)' -r
|
|
394
|
-
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from get' -l no-populate -d 'Skip
|
|
395
|
+
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from get' -l no-populate -d 'Skip the table/column structure for a local dataset, or datasources/views for a cloud one'
|
|
395
396
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from get' -l json -d 'Output the full dataset as JSON'
|
|
396
397
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from get' -s h -l help -d 'display help for command'
|
|
397
398
|
# ---------- dataset query ----------
|
|
@@ -434,7 +435,7 @@ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_sub
|
|
|
434
435
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l source-id -d 'Override the generated source id (local dataset only)' -x
|
|
435
436
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l format -d 'Use this format instead of extension/type inference; file contents are not sniffed. A spreadsheet (xlsx/xls/ods) is added as one source per worksheet, each named source_<worksheet>' -x
|
|
436
437
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l type -d 'Source kind; local is inferred from --file, jdbc from --driver-jar' -x
|
|
437
|
-
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l file -d 'Path to a local CSV/JSON/spreadsheet file (absolute or cwd-relative)' -r
|
|
438
|
+
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l file -d 'Path to a local CSV/JSON/NDJSON/spreadsheet file (absolute or cwd-relative); .ndjson and .jsonl are read as json' -r
|
|
438
439
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l ref-only -d 'Reference the file in place; do NOT copy into data_dir (local dataset)'
|
|
439
440
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l force -d 'When copying, overwrite an existing file at the destination (local dataset)'
|
|
440
441
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l upload -d 'Cloud dataset only: upload --file as a postmancloudfile source (runs via /exec). Without --upload, --file is registered as a local_filesystem source read by the local engine. Either way a cloud dataset takes csv/json only — add a spreadsheet to a local .dataset.yaml, where each worksheet becomes its own source.'
|
|
@@ -544,7 +545,7 @@ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_sub
|
|
|
544
545
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from run' -s d -l dataset -d 'Dataset the view belongs to — a local .dataset.yaml path or a cloud dataset id' -x
|
|
545
546
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from run' -s p -l param -d 'Bind values to $1, $2, ... in order; pass multiple values after -p or repeat -p' -x
|
|
546
547
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from run' -l api-key -d 'Postman API key (defaults to the `postman login` session)' -r
|
|
547
|
-
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from run' -l json -d 'Output rows as JSON instead of a table'
|
|
548
|
+
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from run' -l json -d 'Output rows as JSON instead of a table; a failure prints a JSON error on stdout'
|
|
548
549
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from run' -l debug -d 'Include safe classified dataset diagnostics'
|
|
549
550
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from run' -s h -l help -d 'display help for command'
|
|
550
551
|
# ---------- dataset view create ----------
|
|
@@ -553,6 +554,7 @@ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_sub
|
|
|
553
554
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from create' -s q -l query -d 'SQL query the view executes' -x
|
|
554
555
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from create' -s s -l source -d 'Bind the view to one datasource and run the query natively against it, instead of through the federated SQLite layer. Same reference `dataset query -s` takes' -x
|
|
555
556
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from create' -l view-id -d 'Override the generated view id (local only; cloud assigns its own)' -x
|
|
557
|
+
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from create' -l no-validate -d 'Save the view without first checking that its query runs against the dataset'
|
|
556
558
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from create' -l json -d 'Emit the result as JSON instead of prose'
|
|
557
559
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from create' -l api-key -d 'Postman API key (defaults to the `postman login` session)' -r
|
|
558
560
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from create' -s h -l help -d 'display help for command'
|
|
@@ -1036,6 +1038,7 @@ complete -c postman -n '__fish_seen_subcommand_from monitor; and __fish_seen_sub
|
|
|
1036
1038
|
complete -c postman -n '__fish_seen_subcommand_from monitor; and __fish_seen_subcommand_from share' -s h -l help -d 'display help for command'
|
|
1037
1039
|
|
|
1038
1040
|
# ---------- request ----------
|
|
1041
|
+
complete -c postman -n '__postman_using_subcommand request grpc' -a grpc -d 'Invoke a gRPC method, or list and describe the methods a server exposes. The service definition comes from server reflection unless --proto or --protoset is given.'
|
|
1039
1042
|
complete -c postman -n '__fish_seen_subcommand_from request' -s H -l header -d 'Add HTTP header in key:value format. Can be used multiple times. Example: -H "Content-Type:application/json" -H "X-API-Key:abc123" (default: [])' -x
|
|
1040
1043
|
complete -c postman -n '__fish_seen_subcommand_from request' -s d -l body -d 'Request body content. Supports: inline string, @filepath for file content, or "-" for stdin. Example: --body \'{"name":"John"}\' or --body @data.json' -x
|
|
1041
1044
|
complete -c postman -n '__fish_seen_subcommand_from request' -s f -l form -d 'Add multipart/form-data field in key=value format. Can be used multiple times. For file uploads use key=@filepath. Example: -f "name=John" -f "avatar=@photo.jpg" (default: [])' -x
|
|
@@ -1092,6 +1095,19 @@ complete -c postman -n '__fish_seen_subcommand_from request' -l auth-apikey-key
|
|
|
1092
1095
|
complete -c postman -n '__fish_seen_subcommand_from request' -l auth-apikey-value -d 'Supply authentication parameters dynamically.' -x
|
|
1093
1096
|
complete -c postman -n '__fish_seen_subcommand_from request' -l auth-apikey-in -d 'Supply authentication parameters dynamically.' -x
|
|
1094
1097
|
complete -c postman -n '__fish_seen_subcommand_from request' -r -k -a '(__fish_complete_suffix .json)'
|
|
1098
|
+
# ---------- request grpc ----------
|
|
1099
|
+
complete -c postman -n '__fish_seen_subcommand_from request; and __fish_seen_subcommand_from grpc' -l list-methods -d 'List the services and methods instead of invoking one, with each method\'s streaming kind and message types.'
|
|
1100
|
+
complete -c postman -n '__fish_seen_subcommand_from request; and __fish_seen_subcommand_from grpc' -l describe -d 'Describe the method instead of invoking it: its message types and a request message template to fill in.'
|
|
1101
|
+
complete -c postman -n '__fish_seen_subcommand_from request; and __fish_seen_subcommand_from grpc' -l proto -d 'Read the service definition from a .proto file (or URL) instead of server reflection. Can be used multiple times. (default: [])' -r
|
|
1102
|
+
complete -c postman -n '__fish_seen_subcommand_from request; and __fish_seen_subcommand_from grpc' -l import-path -d 'Directory to resolve --proto imports from. Can be used multiple times. (default: [])' -r
|
|
1103
|
+
complete -c postman -n '__fish_seen_subcommand_from request; and __fish_seen_subcommand_from grpc' -l protoset -d 'Read the service definition from a compiled FileDescriptorSet (protoc --descriptor_set_out, buf build -o). Can be used multiple times. (default: [])' -r
|
|
1104
|
+
complete -c postman -n '__fish_seen_subcommand_from request; and __fish_seen_subcommand_from grpc' -l tls -d 'Connect with TLS to an address without a scheme, the same as grpcs://.'
|
|
1105
|
+
complete -c postman -n '__fish_seen_subcommand_from request; and __fish_seen_subcommand_from grpc' -l server-name -d 'Name to verify the server\'s TLS certificate against, when it differs from the address.' -x
|
|
1106
|
+
complete -c postman -n '__fish_seen_subcommand_from request; and __fish_seen_subcommand_from grpc' -l emit-defaults -d 'Include fields that hold their default value in response messages.'
|
|
1107
|
+
complete -c postman -n '__fish_seen_subcommand_from request; and __fish_seen_subcommand_from grpc' -l script-before-invoke -d 'Script run before the call is invoked. Inline JavaScript or @path. pm.request holds the message and metadata.' -x
|
|
1108
|
+
complete -c postman -n '__fish_seen_subcommand_from request; and __fish_seen_subcommand_from grpc' -l script-on-message -d 'Script run on every response message as it arrives. Inline JavaScript or @path. pm.message holds the message.' -x
|
|
1109
|
+
complete -c postman -n '__fish_seen_subcommand_from request; and __fish_seen_subcommand_from grpc' -l script-after-response -d 'Script run once the call has ended. Inline JavaScript or @path. pm.response holds the status, metadata and messages; pm.test() results are reported.' -x
|
|
1110
|
+
complete -c postman -n '__fish_seen_subcommand_from request; and __fish_seen_subcommand_from grpc' -s h -l help -d 'display help for command'
|
|
1095
1111
|
|
|
1096
1112
|
# ---------- runner ----------
|
|
1097
1113
|
complete -c postman -n '__postman_using_subcommand runner start list regions' -a start -d 'Start a self-hosted runner in your own network.'
|
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.87.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
|
|
@@ -69,7 +69,7 @@ _postman_commands() {
|
|
|
69
69
|
'globals:Work with local and cloud Postman globals'
|
|
70
70
|
'mock:Create, run, and manage Postman mocks'
|
|
71
71
|
'monitor:Run and manage Postman monitors'
|
|
72
|
-
'request:Send HTTP requests with full Postman capabilities'
|
|
72
|
+
'request:Send HTTP and gRPC requests with full Postman capabilities'
|
|
73
73
|
'runner:Start and inspect self-hosted runners, and list Postman-operated regions'
|
|
74
74
|
'sdk:Generate and manage your SDKs directly from the command line'
|
|
75
75
|
'spec:Lint and validate specifications from the command line'
|
|
@@ -184,7 +184,7 @@ _postman_collection_commands() {
|
|
|
184
184
|
'migrate:Migrate a v2.1 collection to the v3 format'
|
|
185
185
|
'lint:Run linting on a local v3 collection at the given file or directory path.'
|
|
186
186
|
'ai-readiness:Score a Postman collection for AI readiness by ID, local file path, or local-mode directory.'
|
|
187
|
-
'get:
|
|
187
|
+
'get:Read a local collection path or fetch a cloud collection by id, and print V3 JSON.'
|
|
188
188
|
'delete:Delete a cloud collection by id or a local collection directory by path. Prompts unless --yes is passed.'
|
|
189
189
|
'publish:Publish a cloud collection'\''s documentation (or request Community Manager approval).'
|
|
190
190
|
'generate:Generate artifacts from a collection.'
|
|
@@ -240,7 +240,7 @@ _postman_collection_get() {
|
|
|
240
240
|
'--api-key[Postman API key (defaults to your `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
241
241
|
'--json[Print the collection as machine-readable V3 JSON instead of a table]' \
|
|
242
242
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
243
|
-
'*:id:'
|
|
243
|
+
'*:id-or-path:_files -g "*.json"'
|
|
244
244
|
}
|
|
245
245
|
|
|
246
246
|
_postman_collection_delete() {
|
|
@@ -739,7 +739,7 @@ _postman_dataset_list() {
|
|
|
739
739
|
_postman_dataset_get() {
|
|
740
740
|
_arguments \
|
|
741
741
|
'--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
742
|
-
'--no-populate[Skip
|
|
742
|
+
'--no-populate[Skip the table/column structure for a local dataset, or datasources/views for a cloud one]' \
|
|
743
743
|
'--json[Output the full dataset as JSON]' \
|
|
744
744
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
745
745
|
'*:datasetPathOrId:'
|
|
@@ -825,7 +825,7 @@ _postman_dataset_source_add() {
|
|
|
825
825
|
'--source-id[Override the generated source id (local dataset only)]:uuid' \
|
|
826
826
|
'--format[Use this format instead of extension/type inference; file contents are not sniffed. A spreadsheet (xlsx/xls/ods) is added as one source per worksheet, each named source_<worksheet>]:csv|json|xlsx|xls|ods|jdbc|mysql|postgres|sqlserver' \
|
|
827
827
|
'--type[Source kind; local is inferred from --file, jdbc from --driver-jar]:local|mysql|postgresql|sqlserver|jdbc' \
|
|
828
|
-
'--file[Path to a local CSV/JSON/spreadsheet file (absolute or cwd-relative)]:path:_files -g "*.json"' \
|
|
828
|
+
'--file[Path to a local CSV/JSON/NDJSON/spreadsheet file (absolute or cwd-relative); .ndjson and .jsonl are read as json]:path:_files -g "*.json"' \
|
|
829
829
|
'--ref-only[Reference the file in place; do NOT copy into data_dir (local dataset)]' \
|
|
830
830
|
'--force[When copying, overwrite an existing file at the destination (local dataset)]' \
|
|
831
831
|
'--upload[Cloud dataset only\: upload --file as a postmancloudfile source (runs via /exec). Without --upload, --file is registered as a local_filesystem source read by the local engine. Either way a cloud dataset takes csv/json only — add a spreadsheet to a local .dataset.yaml, where each worksheet becomes its own source.]' \
|
|
@@ -978,7 +978,7 @@ _postman_dataset_view_run() {
|
|
|
978
978
|
'(-d --dataset)'{-d,--dataset}'[Dataset the view belongs to — a local .dataset.yaml path or a cloud dataset id]:datasetPathOrId' \
|
|
979
979
|
'(-p --param)'{-p,--param}'[Bind values to $1, $2, ... in order; pass multiple values after -p or repeat -p]:value...' \
|
|
980
980
|
'--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
981
|
-
'--json[Output rows as JSON instead of a table]' \
|
|
981
|
+
'--json[Output rows as JSON instead of a table; a failure prints a JSON error on stdout]' \
|
|
982
982
|
'--debug[Include safe classified dataset diagnostics]' \
|
|
983
983
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
984
984
|
'*:viewNameOrId:'
|
|
@@ -991,6 +991,7 @@ _postman_dataset_view_create() {
|
|
|
991
991
|
'(-q --query)'{-q,--query}'[SQL query the view executes]:sql' \
|
|
992
992
|
'(-s --source)'{-s,--source}'[Bind the view to one datasource and run the query natively against it, instead of through the federated SQLite layer. Same reference `dataset query -s` takes]:nameOrIdOrSlug' \
|
|
993
993
|
'--view-id[Override the generated view id (local only; cloud assigns its own)]:uuid' \
|
|
994
|
+
'--no-validate[Save the view without first checking that its query runs against the dataset]' \
|
|
994
995
|
'--json[Emit the result as JSON instead of prose]' \
|
|
995
996
|
'--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
996
997
|
'(-h --help)'{-h,--help}'[display help for command]'
|
|
@@ -1887,7 +1888,9 @@ _postman_monitor_share() {
|
|
|
1887
1888
|
}
|
|
1888
1889
|
|
|
1889
1890
|
_postman_request() {
|
|
1890
|
-
|
|
1891
|
+
local context state state_descr line
|
|
1892
|
+
typeset -A opt_args
|
|
1893
|
+
_arguments -C \
|
|
1891
1894
|
'(-H --header)'{-H,--header}'[Add HTTP header in key\:value format. Can be used multiple times. Example\: -H "Content-Type\:application/json" -H "X-API-Key\:abc123" (default\: \[\])]:header' \
|
|
1892
1895
|
'(-d --body)'{-d,--body}'[Request body content. Supports\: inline string, @filepath for file content, or "-" for stdin. Example\: --body '\''{"name"\:"John"}'\'' or --body @data.json]:body' \
|
|
1893
1896
|
'(-f --form)'{-f,--form}'[Add multipart/form-data field in key=value format. Can be used multiple times. For file uploads use key=@filepath. Example\: -f "name=John" -f "avatar=@photo.jpg" (default\: \[\])]:field' \
|
|
@@ -1943,7 +1946,40 @@ _postman_request() {
|
|
|
1943
1946
|
'--auth-apikey-key[Supply authentication parameters dynamically.]:value' \
|
|
1944
1947
|
'--auth-apikey-value[Supply authentication parameters dynamically.]:value' \
|
|
1945
1948
|
'--auth-apikey-in[Supply authentication parameters dynamically.]:value' \
|
|
1946
|
-
'
|
|
1949
|
+
'1: :_postman_request_commands' \
|
|
1950
|
+
'*::arg:->args'
|
|
1951
|
+
case $state in
|
|
1952
|
+
args)
|
|
1953
|
+
case $words[1] in
|
|
1954
|
+
grpc) _postman_request_grpc ;;
|
|
1955
|
+
esac
|
|
1956
|
+
;;
|
|
1957
|
+
esac
|
|
1958
|
+
}
|
|
1959
|
+
|
|
1960
|
+
_postman_request_commands() {
|
|
1961
|
+
local -a sub
|
|
1962
|
+
sub=(
|
|
1963
|
+
'grpc:Invoke a gRPC method, or list and describe the methods a server exposes. The service definition comes from server reflection unless --proto or --protoset is given.'
|
|
1964
|
+
)
|
|
1965
|
+
_describe -t commands 'request command' sub
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1968
|
+
_postman_request_grpc() {
|
|
1969
|
+
_arguments \
|
|
1970
|
+
'--list-methods[List the services and methods instead of invoking one, with each method'\''s streaming kind and message types.]' \
|
|
1971
|
+
'--describe[Describe the method instead of invoking it\: its message types and a request message template to fill in.]' \
|
|
1972
|
+
'--proto[Read the service definition from a .proto file (or URL) instead of server reflection. Can be used multiple times. (default\: \[\])]:path:_files -g "*.json"' \
|
|
1973
|
+
'--import-path[Directory to resolve --proto imports from. Can be used multiple times. (default\: \[\])]:dir:_files -g "*.json"' \
|
|
1974
|
+
'--protoset[Read the service definition from a compiled FileDescriptorSet (protoc --descriptor_set_out, buf build -o). Can be used multiple times. (default\: \[\])]:path:_files -g "*.json"' \
|
|
1975
|
+
'--tls[Connect with TLS to an address without a scheme, the same as grpcs\://.]' \
|
|
1976
|
+
'--server-name[Name to verify the server'\''s TLS certificate against, when it differs from the address.]:name' \
|
|
1977
|
+
'--emit-defaults[Include fields that hold their default value in response messages.]' \
|
|
1978
|
+
'--script-before-invoke[Script run before the call is invoked. Inline JavaScript or @path. pm.request holds the message and metadata.]:script' \
|
|
1979
|
+
'--script-on-message[Script run on every response message as it arrives. Inline JavaScript or @path. pm.message holds the message.]:script' \
|
|
1980
|
+
'--script-after-response[Script run once the call has ended. Inline JavaScript or @path. pm.response holds the status, metadata and messages; pm.test() results are reported.]:script' \
|
|
1981
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1982
|
+
'*:method:'
|
|
1947
1983
|
}
|
|
1948
1984
|
|
|
1949
1985
|
_postman_runner() {
|