postman-cli-completion 1.58.0 → 1.60.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/completions/bash/postman.bash +204 -19
- package/completions/fish/postman.fish +205 -83
- package/completions/zsh/_postman +259 -39
- package/package.json +1 -1
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.60.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
|
|
@@ -25,6 +25,7 @@ _postman() {
|
|
|
25
25
|
logout) _postman_logout ;;
|
|
26
26
|
init) _postman_init ;;
|
|
27
27
|
whoami) _postman_whoami ;;
|
|
28
|
+
update) _postman_update ;;
|
|
28
29
|
skills) _postman_skills ;;
|
|
29
30
|
collection) _postman_collection ;;
|
|
30
31
|
environment) _postman_environment ;;
|
|
@@ -56,16 +57,17 @@ _postman_commands() {
|
|
|
56
57
|
local -a commands
|
|
57
58
|
commands=(
|
|
58
59
|
'login:Authenticate with Postman to access your resources.'
|
|
59
|
-
'signup:Sign up to keep the work you created as a guest (claims your guest workspace).
|
|
60
|
+
'signup:Sign up to keep the work you created as a guest (claims your guest workspace). Waits and signs this CLI in once the sign-up is completed in a browser — opening that browser here on a terminal, or printing the URL to hand over when output is piped.'
|
|
60
61
|
'logout:Delete the stored Postman API key.'
|
|
61
62
|
'init:Set up Postman artifacts and agent instructions in a repository.'
|
|
62
63
|
'whoami:Show the Postman account or guest session this CLI session is using.'
|
|
64
|
+
'update:Update Postman CLI using the original installation method.'
|
|
63
65
|
'skills:Check and update the agent skills in this repository.'
|
|
64
66
|
'collection:Run and test your Postman collections directly from the command line.'
|
|
65
67
|
'environment:Work with local Postman environments from the command line. Also read cloud environments by ID.'
|
|
66
68
|
'globals:Work with local Postman globals from the command line.'
|
|
67
69
|
'api:Publish and test your APIs directly from the command line'
|
|
68
|
-
'runner:Where your monitors execute\: run and inspect your own self-hosted runners, and list the Postman-operated regions available to your team'
|
|
70
|
+
'runner:Where your monitors execute\: run and inspect your own self-hosted runners, and list the Postman-operated regions available to your team.'
|
|
69
71
|
'spec:Lint and validate Specifications from the command line'
|
|
70
72
|
'monitor:Run and manage Postman monitors.'
|
|
71
73
|
'workspace:Manage workspace resources.'
|
|
@@ -100,7 +102,7 @@ _postman_login() {
|
|
|
100
102
|
|
|
101
103
|
_postman_signup() {
|
|
102
104
|
_arguments \
|
|
103
|
-
'--
|
|
105
|
+
'--guest[Start working as an anonymous guest instead of signing up — no account or browser needed, so it works anywhere. Your work is saved to a temporary workspace you can keep later by running `postman signup`.]' \
|
|
104
106
|
'--json[Print the sign-up details as machine-readable JSON.]' \
|
|
105
107
|
'(-h --help)'{-h,--help}'[display help for command]'
|
|
106
108
|
}
|
|
@@ -130,6 +132,12 @@ _postman_whoami() {
|
|
|
130
132
|
'(-h --help)'{-h,--help}'[display help for command]'
|
|
131
133
|
}
|
|
132
134
|
|
|
135
|
+
_postman_update() {
|
|
136
|
+
_arguments \
|
|
137
|
+
'--check[Check whether a Postman CLI update is available.]' \
|
|
138
|
+
'(-h --help)'{-h,--help}'[display help for command]'
|
|
139
|
+
}
|
|
140
|
+
|
|
133
141
|
_postman_skills() {
|
|
134
142
|
local context state state_descr line
|
|
135
143
|
typeset -A opt_args
|
|
@@ -183,9 +191,12 @@ _postman_collection() {
|
|
|
183
191
|
case $state in
|
|
184
192
|
args)
|
|
185
193
|
case $words[1] in
|
|
194
|
+
new) _postman_collection_new ;;
|
|
186
195
|
migrate) _postman_collection_migrate ;;
|
|
187
196
|
lint) _postman_collection_lint ;;
|
|
188
197
|
ai-readiness) _postman_collection_ai_readiness ;;
|
|
198
|
+
get) _postman_collection_get ;;
|
|
199
|
+
list) _postman_collection_list ;;
|
|
189
200
|
run) _postman_collection_run ;;
|
|
190
201
|
esac
|
|
191
202
|
;;
|
|
@@ -195,14 +206,27 @@ _postman_collection() {
|
|
|
195
206
|
_postman_collection_commands() {
|
|
196
207
|
local -a sub
|
|
197
208
|
sub=(
|
|
209
|
+
'new:Scaffold a v3 collection on disk, or create one in a cloud Postman workspace with --workspace.'
|
|
198
210
|
'migrate:Migrate a v2.1 collection to the v3 format'
|
|
199
211
|
'lint:Run linting on a local v3 collection at the given file or directory path.'
|
|
200
212
|
'ai-readiness:Score a Postman collection for AI readiness by ID, local file path, or local-mode directory.'
|
|
213
|
+
'get:Fetch a Postman collection in the V3 format and print it.'
|
|
214
|
+
'list:List collections\: your local project'\''s collections by default, or a Postman cloud workspace'\''s collections with --workspace.'
|
|
201
215
|
'run:Initiate a Postman collection run from a given ID or path.'
|
|
202
216
|
)
|
|
203
217
|
_describe -t commands 'collection command' sub
|
|
204
218
|
}
|
|
205
219
|
|
|
220
|
+
_postman_collection_new() {
|
|
221
|
+
_arguments \
|
|
222
|
+
'(-w --workspace)'{-w,--workspace}'[Create the collection in a cloud Postman workspace instead of scaffolding it locally. Required when the current directory is not a local Postman workspace.]:workspaceId' \
|
|
223
|
+
'--force[Rewrite the definition of an existing local collection. Existing request files are left alone.]' \
|
|
224
|
+
'--verbose[Verbose output]' \
|
|
225
|
+
'--json[JSON output]' \
|
|
226
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
227
|
+
'*:name:'
|
|
228
|
+
}
|
|
229
|
+
|
|
206
230
|
_postman_collection_migrate() {
|
|
207
231
|
_arguments \
|
|
208
232
|
'(-o --output)'{-o,--output}'[Output directory (default\: ./<collection-name>)]:dir:_files -g "*.json"' \
|
|
@@ -226,6 +250,24 @@ _postman_collection_ai_readiness() {
|
|
|
226
250
|
'*:collectionId/Path:_files -g "*.json"'
|
|
227
251
|
}
|
|
228
252
|
|
|
253
|
+
_postman_collection_get() {
|
|
254
|
+
_arguments \
|
|
255
|
+
'--api-key[Postman API key (defaults to your `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
256
|
+
'--json[Print the collection as machine-readable V3 JSON instead of a table]' \
|
|
257
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
258
|
+
'*:id:'
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
_postman_collection_list() {
|
|
262
|
+
_arguments \
|
|
263
|
+
'(-w --workspace)'{-w,--workspace}'[List a Postman cloud workspace'\''s collections by id. Omit to list the local project'\''s collections.]:workspaceId' \
|
|
264
|
+
'(-f --filter)'{-f,--filter}'[Filter collections by name.]:name' \
|
|
265
|
+
'--verbose[Verbose output]' \
|
|
266
|
+
'--debug[Debug output]' \
|
|
267
|
+
'--json[JSON output]' \
|
|
268
|
+
'(-h --help)'{-h,--help}'[display help for command]'
|
|
269
|
+
}
|
|
270
|
+
|
|
229
271
|
_postman_collection_run() {
|
|
230
272
|
_arguments \
|
|
231
273
|
'(-e --environment)'{-e,--environment}'[Specify an Id or path to a Postman Environment]:path:_files -g "*.json"' \
|
|
@@ -295,6 +337,7 @@ _postman_environment() {
|
|
|
295
337
|
case $state in
|
|
296
338
|
args)
|
|
297
339
|
case $words[1] in
|
|
340
|
+
new) _postman_environment_new ;;
|
|
298
341
|
list) _postman_environment_list ;;
|
|
299
342
|
get) _postman_environment_get ;;
|
|
300
343
|
var) _postman_environment_var ;;
|
|
@@ -307,6 +350,7 @@ _postman_environment() {
|
|
|
307
350
|
_postman_environment_commands() {
|
|
308
351
|
local -a sub
|
|
309
352
|
sub=(
|
|
353
|
+
'new:Scaffold a local environment file, or create one in a Postman workspace with --workspace.'
|
|
310
354
|
'list:List environments in a Postman workspace.'
|
|
311
355
|
'get:Read an environment by ID or local environment file path.'
|
|
312
356
|
'var:Read and update environment variables.'
|
|
@@ -315,6 +359,16 @@ _postman_environment_commands() {
|
|
|
315
359
|
_describe -t commands 'environment command' sub
|
|
316
360
|
}
|
|
317
361
|
|
|
362
|
+
_postman_environment_new() {
|
|
363
|
+
_arguments \
|
|
364
|
+
'(-w --workspace)'{-w,--workspace}'[Create the environment in a cloud Postman workspace instead of scaffolding it locally. Required when the current directory is not a local Postman workspace.]:workspaceId' \
|
|
365
|
+
'--force[Overwrite an existing local environment file.]' \
|
|
366
|
+
'--verbose[Verbose output]' \
|
|
367
|
+
'--json[JSON output]' \
|
|
368
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
369
|
+
'*:name:'
|
|
370
|
+
}
|
|
371
|
+
|
|
318
372
|
_postman_environment_list() {
|
|
319
373
|
_arguments \
|
|
320
374
|
'(-w --workspace)'{-w,--workspace}'[Workspace ID to list environments from.]:workspaceId' \
|
|
@@ -498,9 +552,9 @@ _postman_runner() {
|
|
|
498
552
|
_postman_runner_commands() {
|
|
499
553
|
local -a sub
|
|
500
554
|
sub=(
|
|
501
|
-
'start:Start a runner'
|
|
502
|
-
'list:List the team'\''s registered self-hosted runners'
|
|
503
|
-
'regions:List the region and private-runner values valid for monitor create/update --runner,
|
|
555
|
+
'start:Start a self-hosted runner in your own network.'
|
|
556
|
+
'list:List the team'\''s registered self-hosted runners.'
|
|
557
|
+
'regions:List the region and private-runner values valid for monitor create/update --runner, with the static IP Postman runs each one from, where your team has access to it.'
|
|
504
558
|
)
|
|
505
559
|
_describe -t commands 'runner command' sub
|
|
506
560
|
}
|
|
@@ -509,21 +563,23 @@ _postman_runner_start() {
|
|
|
509
563
|
_arguments \
|
|
510
564
|
'--id[The ID of the runner to execute]:id' \
|
|
511
565
|
'--key[The secret key for the runner]:key:_files -g "*.(pem|crt|key)"' \
|
|
512
|
-
'--region[
|
|
513
|
-
'--proxy[External proxy URL
|
|
566
|
+
'--region[Region this runner reports to -- use "eu" for the EU region]:region' \
|
|
567
|
+
'--proxy[External proxy URL, for example http\://proxy.com or http\://proxy.com\:8080]:url' \
|
|
514
568
|
'--egress-proxy[Enable built-in egress proxy]' \
|
|
515
569
|
'--egress-proxy-authz-url[Custom egress proxy authorization service base URL]:url' \
|
|
516
570
|
'--ssl-extra-ca-certs[Additional trusted CA certificates (PEM file, can contain multiple certs)]:path:_files -g "*.(pem|crt|key)"' \
|
|
571
|
+
'--dataset-jdbc-driver-dir[Folder on this machine holding the JDBC driver .jar files you put there. Required to run a dataset that uses a JDBC source. Drivers are loaded only from this folder and matched by file name; driver paths saved in the dataset are ignored]:path:_files -/' \
|
|
517
572
|
'--metrics[Enable the metrics server for health checks]' \
|
|
518
573
|
'--metrics-port[Port for the metrics server (default\: "9090")]:port' \
|
|
519
|
-
'--report-events[Accepted for compatibility;
|
|
520
|
-
'--no-report-events[Do not
|
|
574
|
+
'--report-events[Accepted for compatibility; run events are reported by default]' \
|
|
575
|
+
'--no-report-events[Do not report run events to Postman]' \
|
|
521
576
|
'(-h --help)'{-h,--help}'[display help for command]'
|
|
522
577
|
}
|
|
523
578
|
|
|
524
579
|
_postman_runner_list() {
|
|
525
580
|
_arguments \
|
|
526
581
|
'--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
582
|
+
'(-w --workspace)'{-w,--workspace}'[Filter to runners in this workspace]:id' \
|
|
527
583
|
'--json[Output the runner list as JSON instead of a table]' \
|
|
528
584
|
'(-h --help)'{-h,--help}'[display help for command]'
|
|
529
585
|
}
|
|
@@ -551,6 +607,7 @@ _postman_spec() {
|
|
|
551
607
|
get) _postman_spec_get ;;
|
|
552
608
|
file) _postman_spec_file ;;
|
|
553
609
|
create) _postman_spec_create ;;
|
|
610
|
+
generate) _postman_spec_generate ;;
|
|
554
611
|
esac
|
|
555
612
|
;;
|
|
556
613
|
esac
|
|
@@ -565,6 +622,7 @@ _postman_spec_commands() {
|
|
|
565
622
|
'get:Read a spec definition, including every file of a multi-file spec.'
|
|
566
623
|
'file:Add, update, or remove files in a spec (cloud ID or local directory).'
|
|
567
624
|
'create:Create a new spec in a workspace, or (with path) scaffold a local spec file.'
|
|
625
|
+
'generate:Generate artifacts from a specification.'
|
|
568
626
|
)
|
|
569
627
|
_describe -t commands 'spec command' sub
|
|
570
628
|
}
|
|
@@ -670,6 +728,40 @@ _postman_spec_create() {
|
|
|
670
728
|
'*:path:_files -g "*.json"'
|
|
671
729
|
}
|
|
672
730
|
|
|
731
|
+
_postman_spec_generate() {
|
|
732
|
+
local context state state_descr line
|
|
733
|
+
typeset -A opt_args
|
|
734
|
+
_arguments -C \
|
|
735
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
736
|
+
'1: :_postman_spec_generate_commands' \
|
|
737
|
+
'*::arg:->args'
|
|
738
|
+
case $state in
|
|
739
|
+
args)
|
|
740
|
+
case $words[1] in
|
|
741
|
+
collection) _postman_spec_generate_collection ;;
|
|
742
|
+
esac
|
|
743
|
+
;;
|
|
744
|
+
esac
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
_postman_spec_generate_commands() {
|
|
748
|
+
local -a sub
|
|
749
|
+
sub=(
|
|
750
|
+
'collection:Generate a Postman collection from a specification.'
|
|
751
|
+
)
|
|
752
|
+
_describe -t commands 'generate command' sub
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
_postman_spec_generate_collection() {
|
|
756
|
+
_arguments \
|
|
757
|
+
'(-n --name)'{-n,--name}'[Collection name]:name' \
|
|
758
|
+
'--folder-strategy[Folder strategy\: Paths or Tags (default\: Paths) (default\: "Paths")]:strategy' \
|
|
759
|
+
'(-w --workspace)'{-w,--workspace}'[Workspace ID (cloud mode)]:id' \
|
|
760
|
+
'--api-key[Postman API key]:key:_files -g "*.(pem|crt|key)"' \
|
|
761
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
762
|
+
'*:spec:'
|
|
763
|
+
}
|
|
764
|
+
|
|
673
765
|
_postman_monitor() {
|
|
674
766
|
local context state state_descr line
|
|
675
767
|
typeset -A opt_args
|
|
@@ -688,6 +780,7 @@ _postman_monitor() {
|
|
|
688
780
|
runs) _postman_monitor_runs ;;
|
|
689
781
|
list) _postman_monitor_list ;;
|
|
690
782
|
get) _postman_monitor_get ;;
|
|
783
|
+
metrics) _postman_monitor_metrics ;;
|
|
691
784
|
pause) _postman_monitor_pause ;;
|
|
692
785
|
resume) _postman_monitor_resume ;;
|
|
693
786
|
esac
|
|
@@ -706,6 +799,7 @@ _postman_monitor_commands() {
|
|
|
706
799
|
'runs:Inspect a monitor run'\''s attempts.'
|
|
707
800
|
'list:List the monitors visible to you.'
|
|
708
801
|
'get:Show a monitor'\''s configuration.'
|
|
802
|
+
'metrics:Show per-request latency and outcome history for a monitor.'
|
|
709
803
|
'pause:Pause a monitor, so it stops firing on schedule.'
|
|
710
804
|
'resume:Resume a paused monitor, so it fires on schedule again.'
|
|
711
805
|
)
|
|
@@ -714,7 +808,7 @@ _postman_monitor_commands() {
|
|
|
714
808
|
|
|
715
809
|
_postman_monitor_run() {
|
|
716
810
|
_arguments \
|
|
717
|
-
'--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
811
|
+
'--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
718
812
|
'(-x --suppress-exit-code)'{-x,--suppress-exit-code}'[Specify whether or not to override the default exit code for the current run]' \
|
|
719
813
|
'(-t --timeout)'{-t,--timeout}'[Maximum wait time for run completion in milliseconds (default\: 15 minutes) (default\: 900000)]:ms' \
|
|
720
814
|
'--async[Submit the run and return immediately with its job id and Postman URL, without waiting for completion]' \
|
|
@@ -727,14 +821,14 @@ _postman_monitor_create() {
|
|
|
727
821
|
_arguments \
|
|
728
822
|
'(-c --collection)'{-c,--collection}'[Collection to monitor -- accepts the id shown in the Postman app, prefixed or bare]:id' \
|
|
729
823
|
'--name[Monitor name (defaults to the linked collection'\''s own name)]:name' \
|
|
730
|
-
'--environment[Environment to run the monitored collection with]:id' \
|
|
824
|
+
'(-e --environment)'{-e,--environment}'[Environment to run the monitored collection with]:id' \
|
|
731
825
|
'(-w --workspace)'{-w,--workspace}'[Workspace to create the monitor in (defaults to the workspace named in the local .postman/resources.yaml manifest; required if neither is available)]:id' \
|
|
732
826
|
'--schedule[Cron expression for the monitor'\''s schedule]:cron' \
|
|
733
|
-
'--timezone[Time zone for --schedule,
|
|
827
|
+
'--timezone[Time zone for --schedule, for example America/New_York (defaults to the host machine'\''s own zone)]:tz' \
|
|
734
828
|
'--runner[A Postman region name (see `postman runner regions`) or the id of a self-hosted runner created in Postman (list existing ones with `postman runner list`) to run from (repeatable) (default\: \[\])]:value' \
|
|
735
829
|
'--notify-email[Email to notify on a run failure or error (repeatable) (default\: \[\])]:email' \
|
|
736
|
-
'--notification-limit[
|
|
737
|
-
'--retry[
|
|
830
|
+
'--notification-limit[Consecutive failure notifications to send before muting them]:n' \
|
|
831
|
+
'--retry[Times to retry a failed run]:n' \
|
|
738
832
|
'--timeout[Request timeout in milliseconds]:ms' \
|
|
739
833
|
'--delay[Delay between requests in milliseconds]:ms' \
|
|
740
834
|
'--strict-ssl[Fail the run when the target'\''s TLS certificate cannot be verified]' \
|
|
@@ -744,7 +838,7 @@ _postman_monitor_create() {
|
|
|
744
838
|
'--dataset-id[Dataset to use as iteration data (used together with --dataset-view-id)]:id' \
|
|
745
839
|
'--dataset-view-id[Dataset view to iterate (used together with --dataset-id)]:id' \
|
|
746
840
|
'--iteration-count[Number of iterations to run]:n' \
|
|
747
|
-
'--iteration-strategy[How iteration data is consumed,
|
|
841
|
+
'--iteration-strategy[How iteration data is consumed, for example round_robin, repeat_last or stop_at_end (requires --iteration-count, --dataset-id and --dataset-view-id)]:strategy' \
|
|
748
842
|
'--no-run-now[Do not trigger an immediate run after creating the monitor]' \
|
|
749
843
|
'--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
750
844
|
'--json[Output as JSON instead of a table]' \
|
|
@@ -755,12 +849,14 @@ _postman_monitor_update() {
|
|
|
755
849
|
_arguments \
|
|
756
850
|
'--name[New monitor name]:name' \
|
|
757
851
|
'--schedule[New cron expression for the monitor'\''s schedule]:cron' \
|
|
758
|
-
'--timezone[Time zone for --schedule,
|
|
852
|
+
'--timezone[Time zone for --schedule, for example America/New_York (defaults to the host machine'\''s own zone)]:tz' \
|
|
759
853
|
'--runner[A Postman region name (see `postman runner regions`) or the id of a self-hosted runner created in Postman (list existing ones with `postman runner list`) to run from (repeatable; replaces the current set) (default\: \[\])]:value' \
|
|
760
854
|
'--notify-email[Email to notify on a run failure or error (repeatable; replaces the current list) (default\: \[\])]:email' \
|
|
761
855
|
'--clear-notifications[Remove every notification recipient]' \
|
|
762
|
-
'--
|
|
763
|
-
'--
|
|
856
|
+
'(-e --environment)'{-e,--environment}'[Environment to run the monitored collection with (replaces the current one)]:id' \
|
|
857
|
+
'--clear-environment[Run the monitored collection with no environment]' \
|
|
858
|
+
'--notification-limit[Consecutive failure notifications to send before muting them]:n' \
|
|
859
|
+
'--retry[Times to retry a failed run]:n' \
|
|
764
860
|
'--timeout[Request timeout in milliseconds]:ms' \
|
|
765
861
|
'--delay[Delay between requests in milliseconds]:ms' \
|
|
766
862
|
'--strict-ssl[Fail the run when the target'\''s TLS certificate cannot be verified]' \
|
|
@@ -770,7 +866,7 @@ _postman_monitor_update() {
|
|
|
770
866
|
'--dataset-id[Dataset to use as iteration data (used together with --dataset-view-id)]:id' \
|
|
771
867
|
'--dataset-view-id[Dataset view to iterate (used together with --dataset-id)]:id' \
|
|
772
868
|
'--iteration-count[Number of iterations to run]:n' \
|
|
773
|
-
'--iteration-strategy[How iteration data is consumed,
|
|
869
|
+
'--iteration-strategy[How iteration data is consumed, for example round_robin, repeat_last or stop_at_end (requires --iteration-count, --dataset-id and --dataset-view-id)]:strategy' \
|
|
774
870
|
'--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
775
871
|
'--json[Output as JSON instead of a table]' \
|
|
776
872
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
@@ -814,9 +910,9 @@ _postman_monitor_jobs_commands() {
|
|
|
814
910
|
|
|
815
911
|
_postman_monitor_jobs_list() {
|
|
816
912
|
_arguments \
|
|
817
|
-
'--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
818
|
-
'--result[Filter by outcome,
|
|
819
|
-
'--trigger[Filter by trigger,
|
|
913
|
+
'--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
914
|
+
'--result[Filter by outcome, for example success, failure, error or abort]:value' \
|
|
915
|
+
'--trigger[Filter by trigger, for example api, schedule, webhook or postman-cli]:value' \
|
|
820
916
|
'--since[Only jobs that finished at or after this ISO 8601 date-time]:dateTime' \
|
|
821
917
|
'--limit[Maximum number of jobs to return]:n' \
|
|
822
918
|
'--cursor[Opaque pagination cursor]:token' \
|
|
@@ -827,7 +923,7 @@ _postman_monitor_jobs_list() {
|
|
|
827
923
|
|
|
828
924
|
_postman_monitor_jobs_get() {
|
|
829
925
|
_arguments \
|
|
830
|
-
'--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
926
|
+
'--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
831
927
|
'--json[Output as JSON instead of a table]' \
|
|
832
928
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
833
929
|
'*:jobId:'
|
|
@@ -859,8 +955,8 @@ _postman_monitor_runs_commands() {
|
|
|
859
955
|
|
|
860
956
|
_postman_monitor_runs_get() {
|
|
861
957
|
_arguments \
|
|
862
|
-
'--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
863
|
-
'--attempt[Which attempt of the run to show,
|
|
958
|
+
'--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
959
|
+
'--attempt[Which attempt of the run to show, where 0 is the first (default\: the most recent)]:n' \
|
|
864
960
|
'--failed-only[Show only failed assertions]' \
|
|
865
961
|
'--json[Output as JSON instead of a table]' \
|
|
866
962
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
@@ -872,15 +968,14 @@ _postman_monitor_list() {
|
|
|
872
968
|
'--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
873
969
|
'(-w --workspace)'{-w,--workspace}'[Filter to monitors in this workspace]:id' \
|
|
874
970
|
'(-c --collection)'{-c,--collection}'[Filter to monitors on this collection]:id' \
|
|
875
|
-
'--environment[Filter to monitors on this environment]:id' \
|
|
876
|
-
'--runner[Filter to a
|
|
971
|
+
'(-e --environment)'{-e,--environment}'[Filter to monitors on this environment]:id' \
|
|
972
|
+
'--runner[Filter to a self-hosted runner id, not a Postman region. Cannot be combined with --workspace, --collection, --environment, --owner, --team or --active]:id' \
|
|
877
973
|
'--owner[Filter to monitors created by this user id (shown in the Owner column)]:id' \
|
|
878
974
|
'--team[Filter to monitors owned by your own team]' \
|
|
879
975
|
'--active[Filter by active state]:true|false' \
|
|
880
|
-
'--limit[
|
|
881
|
-
'--
|
|
882
|
-
'--
|
|
883
|
-
'--columns[Comma-separated columns to show. Defaults to Name, Status, ID, Schedule, Owner, Collection. Also available\: State, Notifications, Environment, Runners.]:names' \
|
|
976
|
+
'--limit[Maximum number of monitors to return (Postman caps the page size and rejects a larger value)]:n' \
|
|
977
|
+
'--cursor[Pagination cursor from a previous page'\''s response]:token' \
|
|
978
|
+
'--columns[Comma-separated columns to show. Defaults to Name, Status, ID, Schedule, Owner, Collection. Also available\: State, Notifications, Environment, Runners]:names' \
|
|
884
979
|
'--no-headers[Omit the header row]' \
|
|
885
980
|
'(-f --filter)'{-f,--filter}'[Show only monitors whose name contains this text (applies to the returned page, case-insensitive)]:text' \
|
|
886
981
|
'--sort[Sort the returned page by "name" or "active"]:field' \
|
|
@@ -896,6 +991,18 @@ _postman_monitor_get() {
|
|
|
896
991
|
'*:monitorId:'
|
|
897
992
|
}
|
|
898
993
|
|
|
994
|
+
_postman_monitor_metrics() {
|
|
995
|
+
_arguments \
|
|
996
|
+
'--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
997
|
+
'--since[Only executions at or after this ISO 8601 date-time (defaults to 7 days ago)]:dateTime' \
|
|
998
|
+
'--until[Only executions at or before this ISO 8601 date-time (defaults to now)]:dateTime' \
|
|
999
|
+
'(-f --filter)'{-f,--filter}'[Show only requests whose name contains this text (case-insensitive)]:text' \
|
|
1000
|
+
'--limit[Maximum number of rows to show\: executions, newest first, under --json, or requests, worst-behaving first, in the table. Applied to the results after they are fetched, so it does not make the command faster]:n' \
|
|
1001
|
+
'--json[Output as JSON instead of a table]' \
|
|
1002
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1003
|
+
'*:monitorId:'
|
|
1004
|
+
}
|
|
1005
|
+
|
|
899
1006
|
_postman_monitor_pause() {
|
|
900
1007
|
_arguments \
|
|
901
1008
|
'--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
@@ -926,9 +1033,11 @@ _postman_workspace() {
|
|
|
926
1033
|
prepare) _postman_workspace_prepare ;;
|
|
927
1034
|
push) _postman_workspace_push ;;
|
|
928
1035
|
lint) _postman_workspace_lint ;;
|
|
1036
|
+
get) _postman_workspace_get ;;
|
|
929
1037
|
create) _postman_workspace_create ;;
|
|
930
1038
|
pull) _postman_workspace_pull ;;
|
|
931
1039
|
connect-git) _postman_workspace_connect_git ;;
|
|
1040
|
+
diff) _postman_workspace_diff ;;
|
|
932
1041
|
esac
|
|
933
1042
|
;;
|
|
934
1043
|
esac
|
|
@@ -941,9 +1050,11 @@ _postman_workspace_commands() {
|
|
|
941
1050
|
'prepare:Prepare local collections and environments for push by validating and regenerating IDs if needed.'
|
|
942
1051
|
'push:Push local workspace entities (collections, environments, specifications, mocks and more) to Postman workspace.'
|
|
943
1052
|
'lint:Lint the current local Postman workspace\: its configuration (.postman/resources.yaml) plus every discovered entity. Use --meta to lint only the configuration.'
|
|
1053
|
+
'get:Read a workspace'\''s metadata, and optionally the ids of what it holds.'
|
|
944
1054
|
'create:Create a Postman workspace and bind it to this git repository.'
|
|
945
1055
|
'pull:Pull workspace entities from a Postman workspace into the local git-native folder.'
|
|
946
1056
|
'connect-git:Connect a Postman workspace to a local git repository.'
|
|
1057
|
+
'diff:Preview local-vs-cloud drift before pushing. Read-only\: nothing is created, updated or deleted.'
|
|
947
1058
|
)
|
|
948
1059
|
_describe -t commands 'workspace command' sub
|
|
949
1060
|
}
|
|
@@ -985,6 +1096,15 @@ _postman_workspace_lint() {
|
|
|
985
1096
|
'(-h --help)'{-h,--help}'[display help for command]'
|
|
986
1097
|
}
|
|
987
1098
|
|
|
1099
|
+
_postman_workspace_get() {
|
|
1100
|
+
_arguments \
|
|
1101
|
+
'--elements[Also report the resources the workspace holds.]' \
|
|
1102
|
+
'--json[Print the workspace as machine-readable JSON.]' \
|
|
1103
|
+
'--timeout[Milliseconds to wait for the API (default 30000).]:ms' \
|
|
1104
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1105
|
+
'*:id:'
|
|
1106
|
+
}
|
|
1107
|
+
|
|
988
1108
|
_postman_workspace_create() {
|
|
989
1109
|
_arguments \
|
|
990
1110
|
'--visibility[Required. Workspace visibility, e.g. personal or team]:status' \
|
|
@@ -1012,6 +1132,18 @@ _postman_workspace_connect_git() {
|
|
|
1012
1132
|
'*:path:_files -g "*.json"'
|
|
1013
1133
|
}
|
|
1014
1134
|
|
|
1135
|
+
_postman_workspace_diff() {
|
|
1136
|
+
_arguments \
|
|
1137
|
+
'--push-strategy[Strategy to preview. "force-sync" also shows cloud entities that would be DELETED. Defaults to "force-sync".]:strategy' \
|
|
1138
|
+
'--summary[Skip content comparison. Faster, but updates are listed without checking whether they changed.]' \
|
|
1139
|
+
'--json[Print the diff as machine-readable JSON.]' \
|
|
1140
|
+
'--exit-code[Exit with code 1 when drift is found (for CI gates).]' \
|
|
1141
|
+
'--verbose[Show detailed logging]' \
|
|
1142
|
+
'--timeout[Abort the run after this many milliseconds. Defaults to 120000.]:ms' \
|
|
1143
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1144
|
+
'*:workspaceId:'
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1015
1147
|
_postman_performance() {
|
|
1016
1148
|
local context state state_descr line
|
|
1017
1149
|
typeset -A opt_args
|
|
@@ -1023,6 +1155,7 @@ _postman_performance() {
|
|
|
1023
1155
|
args)
|
|
1024
1156
|
case $words[1] in
|
|
1025
1157
|
run) _postman_performance_run ;;
|
|
1158
|
+
list) _postman_performance_list ;;
|
|
1026
1159
|
esac
|
|
1027
1160
|
;;
|
|
1028
1161
|
esac
|
|
@@ -1032,6 +1165,7 @@ _postman_performance_commands() {
|
|
|
1032
1165
|
local -a sub
|
|
1033
1166
|
sub=(
|
|
1034
1167
|
'run:Run a performance test on a collection'
|
|
1168
|
+
'list:List past performance runs for a collection, newest first.'
|
|
1035
1169
|
)
|
|
1036
1170
|
_describe -t commands 'performance command' sub
|
|
1037
1171
|
}
|
|
@@ -1057,6 +1191,16 @@ _postman_performance_run() {
|
|
|
1057
1191
|
'*:collectionId:_files -g "*.json"'
|
|
1058
1192
|
}
|
|
1059
1193
|
|
|
1194
|
+
_postman_performance_list() {
|
|
1195
|
+
_arguments \
|
|
1196
|
+
'(-c --collection-id)'{-c,--collection-id}'[Collection ID whose performance runs to list]:id' \
|
|
1197
|
+
'--cursor[Pagination cursor from a previous page'\''s response]:token' \
|
|
1198
|
+
'--json[Output as JSON instead of a table]' \
|
|
1199
|
+
'--timeout[Milliseconds to wait for the service before failing (default\: "30000")]:ms' \
|
|
1200
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1201
|
+
'*:id:'
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1060
1204
|
_postman_flows() {
|
|
1061
1205
|
local context state state_descr line
|
|
1062
1206
|
typeset -A opt_args
|
|
@@ -1428,7 +1572,7 @@ _postman_mock_commands() {
|
|
|
1428
1572
|
'push:Upload a mock from your repository to Postman cloud (creates it the first time, updates it after).'
|
|
1429
1573
|
'deploy:Turn a mock in Postman cloud into a live mock server others can call over the internet.'
|
|
1430
1574
|
'get:Show a mock'\''s details using its path if it lives in your repository, or its id if it lives in Postman cloud.'
|
|
1431
|
-
'list:List the mocks in your Postman cloud workspace
|
|
1575
|
+
'list:List the mocks in your repository or Postman cloud workspace'
|
|
1432
1576
|
'log:Show the requests a live mock server has received and the responses it sent, using its id.'
|
|
1433
1577
|
'delete:Delete a mock using its path if it lives in your repository, or its id if it lives in Postman cloud. Cannot be undone.'
|
|
1434
1578
|
)
|
|
@@ -2184,6 +2328,7 @@ _postman_dataset() {
|
|
|
2184
2328
|
delete) _postman_dataset_delete ;;
|
|
2185
2329
|
source) _postman_dataset_source ;;
|
|
2186
2330
|
view) _postman_dataset_view ;;
|
|
2331
|
+
jdbc) _postman_dataset_jdbc ;;
|
|
2187
2332
|
esac
|
|
2188
2333
|
;;
|
|
2189
2334
|
esac
|
|
@@ -2199,6 +2344,7 @@ _postman_dataset_commands() {
|
|
|
2199
2344
|
'delete:Permanently remove a dataset\: a local .dataset.yaml or a cloud dataset id.'
|
|
2200
2345
|
'source:Inspect and manage a dataset'\''s datasources.'
|
|
2201
2346
|
'view:Inspect and manage saved views on a dataset.'
|
|
2347
|
+
'jdbc:Inspect JDBC drivers before attaching one to a dataset.'
|
|
2202
2348
|
)
|
|
2203
2349
|
_describe -t commands 'dataset command' sub
|
|
2204
2350
|
}
|
|
@@ -2268,6 +2414,7 @@ _postman_dataset_source() {
|
|
|
2268
2414
|
add) _postman_dataset_source_add ;;
|
|
2269
2415
|
remove) _postman_dataset_source_remove ;;
|
|
2270
2416
|
update) _postman_dataset_source_update ;;
|
|
2417
|
+
test) _postman_dataset_source_test ;;
|
|
2271
2418
|
esac
|
|
2272
2419
|
;;
|
|
2273
2420
|
esac
|
|
@@ -2280,6 +2427,7 @@ _postman_dataset_source_commands() {
|
|
|
2280
2427
|
'add:Add a datasource to a dataset.'
|
|
2281
2428
|
'remove:Remove a datasource from a dataset (local YAML path or cloud id).'
|
|
2282
2429
|
'update:Update fields on an existing datasource. Only the flags you provide are changed.'
|
|
2430
|
+
'test:Open and close a real connection using a source'\''s stored configuration.'
|
|
2283
2431
|
)
|
|
2284
2432
|
_describe -t commands 'source command' sub
|
|
2285
2433
|
}
|
|
@@ -2298,15 +2446,28 @@ _postman_dataset_source_add() {
|
|
|
2298
2446
|
'(-n --name)'{-n,--name}'[Logical name for the source (becomes the SQL table name)]:name' \
|
|
2299
2447
|
'--source-id[Override the generated source id (local dataset only)]:uuid' \
|
|
2300
2448
|
'--format[Use this format instead of extension/type inference; file contents are not sniffed]:csv|json|mysql|postgres|sqlserver' \
|
|
2301
|
-
'--type[Source kind; local is inferred
|
|
2449
|
+
'--type[Source kind; local is inferred from --file, jdbc from --driver-jar]:local|mysql|postgresql|sqlserver|jdbc' \
|
|
2302
2450
|
'--file[Path to a local CSV/JSON file (absolute or cwd-relative)]:path:_files -g "*.json"' \
|
|
2303
2451
|
'--ref-only[Reference the file in place; do NOT copy into data_dir (local dataset)]' \
|
|
2304
2452
|
'--force[When copying, overwrite an existing file at the destination (local dataset)]' \
|
|
2305
2453
|
'--upload[Cloud dataset only\: upload --file as a postmancloudfile source (runs via /exec). Without --upload, --file is registered as a local_filesystem csv/json source read by the local engine.]' \
|
|
2454
|
+
'--driver-jar[JDBC driver JAR(s). Repeatable, or pass several after one flag]:path...:_files -g "*.json"' \
|
|
2455
|
+
'--driver-class[Driver class. Auto-resolved when the JAR contains exactly one]:fqcn' \
|
|
2456
|
+
'--driver-name[Label for this driver type (defaults to the JAR filename)]:label' \
|
|
2457
|
+
'--url-template[JDBC URL with {{placeholders}}, e.g. jdbc\:postgresql\://{{host}}\:{{port}}/{{database}}]:template' \
|
|
2458
|
+
'--var[Value for a {{placeholder}}. Repeatable. Use vault\:<vaultId>/<secretId> for a secret. WARNING\: a literal value is visible in `ps` output and shell history, and is stored in clear text in the dataset YAML (local) or sent in the request body (cloud). Prefer a Shared Vault reference.]:name=value...' \
|
|
2459
|
+
'--prop[Driver connection property. Repeatable. Same vault\: syntax as --var]:name=value...' \
|
|
2460
|
+
'--vars-file[JSON object of --var values; "-" reads stdin. Supports {"$vaultId"\:..,"$secretId"\:..} objects, and keeps secrets out of argv entirely]:path:_files -g "*.json"' \
|
|
2461
|
+
'--from-source[Reuse another source'\''s driver JAR, class and URL template]:name' \
|
|
2462
|
+
'--java-path[Java runtime to use. Machine-local only - never written to the dataset. Also read from POSTMAN_JDBC_JAVA_PATH]:path:_files -g "*.json"' \
|
|
2463
|
+
'--no-test[Skip the pre-write connection test. Note that resolving the driver class still starts a JVM — on a machine with no Java, pass --driver-class (or --from-source) too]' \
|
|
2464
|
+
'--ssh-target-host-variable[Template variable holding the tunnelled host (inferred when omitted)]:name' \
|
|
2465
|
+
'--ssh-target-port-variable[Template variable holding the tunnelled port (inferred when omitted)]:name' \
|
|
2466
|
+
'--json[Emit the result as JSON instead of prose]' \
|
|
2306
2467
|
'--host[DB host (mysql/postgresql/sqlserver)]:host' \
|
|
2307
2468
|
'--port[DB port (defaults to 1433 for sqlserver)]:port' \
|
|
2308
|
-
'--user[DB user
|
|
2309
|
-
'--password[DB password. WARNING\:
|
|
2469
|
+
'--user[DB user. WARNING\: a literal value is visible in `ps` output and shell history, and is stored in clear text in the dataset YAML (local) or sent in the request body (cloud). Prefer a Shared Vault reference.]:user' \
|
|
2470
|
+
'--password[DB password. WARNING\: a literal value is visible in `ps` output and shell history, and is stored in clear text in the dataset YAML (local) or sent in the request body (cloud). Prefer a Shared Vault reference.]:password' \
|
|
2310
2471
|
'--database[DB database name]:db' \
|
|
2311
2472
|
'--table[DB table name (required for sqlserver)]:table' \
|
|
2312
2473
|
'--ssh-host[SSH bastion host]:host' \
|
|
@@ -2344,10 +2505,22 @@ _postman_dataset_source_update() {
|
|
|
2344
2505
|
'--file[Replace the source file (local dataset only; cloud file replacement is unsupported)]:path:_files -g "*.json"' \
|
|
2345
2506
|
'--ref-only[With --file, reference in place instead of copying (local dataset only)]' \
|
|
2346
2507
|
'--force[With --file, overwrite the copied destination (local dataset only)]' \
|
|
2508
|
+
'--driver-jar[Replace the JDBC driver JAR(s)]:path...:_files -g "*.json"' \
|
|
2509
|
+
'--driver-class[Replace the JDBC driver class]:fqcn' \
|
|
2510
|
+
'--driver-name[Rename the JDBC driver type label]:label' \
|
|
2511
|
+
'--url-template[Replace the JDBC URL template]:template' \
|
|
2512
|
+
'--var[Set a JDBC template variable. Merges onto the existing values. Use vault\:<vaultId>/<secretId> for a secret. WARNING\: a literal value is visible in `ps` output and shell history, and is stored in clear text in the dataset YAML (local) or sent in the request body (cloud). Prefer a Shared Vault reference.]:name=value...' \
|
|
2513
|
+
'--prop[Set a JDBC connection property. Merges, same vault\: syntax]:name=value...' \
|
|
2514
|
+
'--unset-var[Remove a JDBC template variable. Merging alone can never remove a key]:name...' \
|
|
2515
|
+
'--unset-prop[Remove a JDBC connection property]:name...' \
|
|
2516
|
+
'--vars-file[JSON object of --var values; "-" reads stdin]:path:_files -g "*.json"' \
|
|
2517
|
+
'--ssh-target-host-variable[Template variable holding the tunnelled host (JDBC)]:name' \
|
|
2518
|
+
'--ssh-target-port-variable[Template variable holding the tunnelled port (JDBC)]:name' \
|
|
2519
|
+
'--java-path[Java runtime for JDBC operations. Machine-local only]:path:_files -g "*.json"' \
|
|
2347
2520
|
'--host[Update DB host (mysql/postgresql/sqlserver)]:host' \
|
|
2348
2521
|
'--port[Update DB port]:port' \
|
|
2349
|
-
'--user[Update DB user
|
|
2350
|
-
'--password[Update DB password. WARNING\:
|
|
2522
|
+
'--user[Update DB user. WARNING\: a literal value is visible in `ps` output and shell history, and is stored in clear text in the dataset YAML (local) or sent in the request body (cloud). Prefer a Shared Vault reference.]:user' \
|
|
2523
|
+
'--password[Update DB password. WARNING\: a literal value is visible in `ps` output and shell history, and is stored in clear text in the dataset YAML (local) or sent in the request body (cloud). Prefer a Shared Vault reference.]:password' \
|
|
2351
2524
|
'--database[Update DB database name]:db' \
|
|
2352
2525
|
'--table[Update DB table name]:table' \
|
|
2353
2526
|
'--ssh-host[Update SSH bastion host]:host' \
|
|
@@ -2365,10 +2538,21 @@ _postman_dataset_source_update() {
|
|
|
2365
2538
|
'--host-name-in-certificate[Update SQL Server certificate hostname override]:hostname' \
|
|
2366
2539
|
'--tls-min-version[Update SQL Server minimum TLS version]:1.2|1.3' \
|
|
2367
2540
|
'--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
2541
|
+
'--json[Emit the result as JSON instead of prose]' \
|
|
2368
2542
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
2369
2543
|
'*:sourceNameOrId:'
|
|
2370
2544
|
}
|
|
2371
2545
|
|
|
2546
|
+
_postman_dataset_source_test() {
|
|
2547
|
+
_arguments \
|
|
2548
|
+
'(-d --dataset)'{-d,--dataset}'[Dataset the source belongs to — a local .dataset.yaml path or a cloud dataset id]:datasetPathOrId' \
|
|
2549
|
+
'(-n --name)'{-n,--name}'[Source to test]:name' \
|
|
2550
|
+
'--java-path[Java runtime to use for a JDBC source. Machine-local only; also read from POSTMAN_JDBC_JAVA_PATH]:path:_files -g "*.json"' \
|
|
2551
|
+
'--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
2552
|
+
'--json[Emit the result as JSON instead of prose]' \
|
|
2553
|
+
'(-h --help)'{-h,--help}'[display help for command]'
|
|
2554
|
+
}
|
|
2555
|
+
|
|
2372
2556
|
_postman_dataset_view() {
|
|
2373
2557
|
local context state state_descr line
|
|
2374
2558
|
typeset -A opt_args
|
|
@@ -2425,7 +2609,9 @@ _postman_dataset_view_create() {
|
|
|
2425
2609
|
'(-d --dataset)'{-d,--dataset}'[Dataset to add the view to — a local .dataset.yaml path or a cloud dataset id]:datasetPathOrId' \
|
|
2426
2610
|
'(-n --name)'{-n,--name}'[View name]:name' \
|
|
2427
2611
|
'(-q --query)'{-q,--query}'[SQL query the view executes]:sql' \
|
|
2612
|
+
'(-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' \
|
|
2428
2613
|
'--view-id[Override the generated view id (local only; cloud assigns its own)]:uuid' \
|
|
2614
|
+
'--json[Emit the result as JSON instead of prose]' \
|
|
2429
2615
|
'--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
2430
2616
|
'(-h --help)'{-h,--help}'[display help for command]'
|
|
2431
2617
|
}
|
|
@@ -2448,6 +2634,40 @@ _postman_dataset_view_update() {
|
|
|
2448
2634
|
'*:viewNameOrId:'
|
|
2449
2635
|
}
|
|
2450
2636
|
|
|
2637
|
+
_postman_dataset_jdbc() {
|
|
2638
|
+
local context state state_descr line
|
|
2639
|
+
typeset -A opt_args
|
|
2640
|
+
_arguments -C \
|
|
2641
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
2642
|
+
'1: :_postman_dataset_jdbc_commands' \
|
|
2643
|
+
'*::arg:->args'
|
|
2644
|
+
case $state in
|
|
2645
|
+
args)
|
|
2646
|
+
case $words[1] in
|
|
2647
|
+
inspect) _postman_dataset_jdbc_inspect ;;
|
|
2648
|
+
esac
|
|
2649
|
+
;;
|
|
2650
|
+
esac
|
|
2651
|
+
}
|
|
2652
|
+
|
|
2653
|
+
_postman_dataset_jdbc_commands() {
|
|
2654
|
+
local -a sub
|
|
2655
|
+
sub=(
|
|
2656
|
+
'inspect:Detect Java, list driver classes, suggest a URL template and read driver properties.'
|
|
2657
|
+
)
|
|
2658
|
+
_describe -t commands 'jdbc command' sub
|
|
2659
|
+
}
|
|
2660
|
+
|
|
2661
|
+
_postman_dataset_jdbc_inspect() {
|
|
2662
|
+
_arguments \
|
|
2663
|
+
'--driver-class[Introspect this class instead of auto-selecting]:fqcn' \
|
|
2664
|
+
'--url-template[Use this URL template instead of the one inferred from the JAR filename]:template' \
|
|
2665
|
+
'--java-path[Java runtime to use. Machine-local only — never written to a dataset. Also read from POSTMAN_JDBC_JAVA_PATH.]:path:_files -g "*.json"' \
|
|
2666
|
+
'--json[Emit the discovery result as JSON]' \
|
|
2667
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
2668
|
+
'*:jar...:'
|
|
2669
|
+
}
|
|
2670
|
+
|
|
2451
2671
|
_postman_dependency() {
|
|
2452
2672
|
local context state state_descr line
|
|
2453
2673
|
typeset -A opt_args
|