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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Bash completion for Postman CLI (postman v1.
|
|
1
|
+
# Bash completion for Postman CLI (postman v1.60.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
|
|
@@ -22,7 +22,7 @@ _postman() {
|
|
|
22
22
|
cur="${COMP_WORDS[COMP_CWORD]}"
|
|
23
23
|
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
|
24
24
|
|
|
25
|
-
local top_commands="login signup logout init whoami skills collection environment globals api runner spec monitor workspace ws performance flows fl request sdk mock application app simulate context context-graph search webhook dataset dependency"
|
|
25
|
+
local top_commands="login signup logout init whoami update skills collection environment globals api runner spec monitor workspace ws performance flows fl request sdk mock application app simulate context context-graph search webhook dataset dependency"
|
|
26
26
|
local global_flags="-v --version --silent --color -h --help -h --help"
|
|
27
27
|
|
|
28
28
|
local i cmd="" subcmd=""
|
|
@@ -51,6 +51,7 @@ _postman() {
|
|
|
51
51
|
logout) _postman_logout ;;
|
|
52
52
|
init) _postman_init ;;
|
|
53
53
|
whoami) _postman_whoami ;;
|
|
54
|
+
update) _postman_update ;;
|
|
54
55
|
skills) _postman_skills ;;
|
|
55
56
|
collection) _postman_collection ;;
|
|
56
57
|
environment) _postman_environment ;;
|
|
@@ -90,7 +91,7 @@ _postman_login() {
|
|
|
90
91
|
|
|
91
92
|
_postman_signup() {
|
|
92
93
|
if [[ "$cur" == -* ]]; then
|
|
93
|
-
COMPREPLY=( $(compgen -W "--
|
|
94
|
+
COMPREPLY=( $(compgen -W "--guest --json -h --help" -- "$cur") )
|
|
94
95
|
return 0
|
|
95
96
|
fi
|
|
96
97
|
}
|
|
@@ -124,6 +125,13 @@ _postman_whoami() {
|
|
|
124
125
|
fi
|
|
125
126
|
}
|
|
126
127
|
|
|
128
|
+
_postman_update() {
|
|
129
|
+
if [[ "$cur" == -* ]]; then
|
|
130
|
+
COMPREPLY=( $(compgen -W "--check -h --help" -- "$cur") )
|
|
131
|
+
return 0
|
|
132
|
+
fi
|
|
133
|
+
}
|
|
134
|
+
|
|
127
135
|
_postman_skills() {
|
|
128
136
|
if [[ -z "$subcmd" ]]; then
|
|
129
137
|
if [[ "$cur" == -* ]]; then
|
|
@@ -160,18 +168,30 @@ _postman_collection() {
|
|
|
160
168
|
if [[ "$cur" == -* ]]; then
|
|
161
169
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
162
170
|
else
|
|
163
|
-
COMPREPLY=( $(compgen -W "migrate lint ai-readiness run" -- "$cur") )
|
|
171
|
+
COMPREPLY=( $(compgen -W "new migrate lint ai-readiness get list run" -- "$cur") )
|
|
164
172
|
fi
|
|
165
173
|
return 0
|
|
166
174
|
fi
|
|
167
175
|
case "$subcmd" in
|
|
176
|
+
new) _postman_collection_new ;;
|
|
168
177
|
migrate) _postman_collection_migrate ;;
|
|
169
178
|
lint) _postman_collection_lint ;;
|
|
170
179
|
ai-readiness) _postman_collection_ai_readiness ;;
|
|
180
|
+
get) _postman_collection_get ;;
|
|
181
|
+
list) _postman_collection_list ;;
|
|
171
182
|
run) _postman_collection_run ;;
|
|
172
183
|
esac
|
|
173
184
|
}
|
|
174
185
|
|
|
186
|
+
_postman_collection_new() {
|
|
187
|
+
if [[ "$cur" == -* ]]; then
|
|
188
|
+
COMPREPLY=( $(compgen -W "-w --workspace --force --verbose --json -h --help" -- "$cur") )
|
|
189
|
+
return 0
|
|
190
|
+
fi
|
|
191
|
+
case "$prev" in
|
|
192
|
+
esac
|
|
193
|
+
}
|
|
194
|
+
|
|
175
195
|
_postman_collection_migrate() {
|
|
176
196
|
if [[ "$cur" == -* ]]; then
|
|
177
197
|
COMPREPLY=( $(compgen -W "-o --output -h --help" -- "$cur") )
|
|
@@ -205,6 +225,27 @@ _postman_collection_ai_readiness() {
|
|
|
205
225
|
_postman_filematch '!*.@(json)' "$cur"
|
|
206
226
|
}
|
|
207
227
|
|
|
228
|
+
_postman_collection_get() {
|
|
229
|
+
if [[ "$cur" == -* ]]; then
|
|
230
|
+
COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
|
|
231
|
+
return 0
|
|
232
|
+
fi
|
|
233
|
+
case "$prev" in
|
|
234
|
+
--api-key)
|
|
235
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
236
|
+
return 0 ;;
|
|
237
|
+
esac
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
_postman_collection_list() {
|
|
241
|
+
if [[ "$cur" == -* ]]; then
|
|
242
|
+
COMPREPLY=( $(compgen -W "-w --workspace -f --filter --verbose --debug --json -h --help" -- "$cur") )
|
|
243
|
+
return 0
|
|
244
|
+
fi
|
|
245
|
+
case "$prev" in
|
|
246
|
+
esac
|
|
247
|
+
}
|
|
248
|
+
|
|
208
249
|
_postman_collection_run() {
|
|
209
250
|
if [[ "$cur" == -* ]]; then
|
|
210
251
|
COMPREPLY=( $(compgen -W "-e --environment -g --globals -r --reporters --output --reporter-json-structure -n --iteration-count -d --iteration-data --iteration-data-dataset --iteration-data-view --dataset -i --global-var --env-var --integration-id --postman-api-key --alias --bail --ignore-redirects -x --suppress-exit-code --silent --disable-unicode --delay-request --timeout --timeout-request --timeout-script --working-dir --no-insecure-file-read -k --insecure --ssl-client-cert-list --ssl-client-cert --ssl-client-key --ssl-client-passphrase --ssl-extra-ca-certs --cookie-jar --export-cookie-jar --verbose --mock --port --use-mock --simulate --report-events --no-report-events -h --help --reporter-json-export --reporter-junit-export --reporter-html-export --reporter-json-omitRequestBodies --reporter-html-omitRequestBodies --reporter-json-omitResponseBodies --reporter-html-omitResponseBodies --reporter-json-omitHeaders --reporter-html-omitHeaders --reporter-json-omitAllHeadersAndBody --reporter-html-omitAllHeadersAndBody" -- "$cur") )
|
|
@@ -277,11 +318,12 @@ _postman_environment() {
|
|
|
277
318
|
if [[ "$cur" == -* ]]; then
|
|
278
319
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
279
320
|
else
|
|
280
|
-
COMPREPLY=( $(compgen -W "list get var lint" -- "$cur") )
|
|
321
|
+
COMPREPLY=( $(compgen -W "new list get var lint" -- "$cur") )
|
|
281
322
|
fi
|
|
282
323
|
return 0
|
|
283
324
|
fi
|
|
284
325
|
case "$subcmd" in
|
|
326
|
+
new) _postman_environment_new ;;
|
|
285
327
|
list) _postman_environment_list ;;
|
|
286
328
|
get) _postman_environment_get ;;
|
|
287
329
|
var) _postman_environment_var ;;
|
|
@@ -289,6 +331,15 @@ _postman_environment() {
|
|
|
289
331
|
esac
|
|
290
332
|
}
|
|
291
333
|
|
|
334
|
+
_postman_environment_new() {
|
|
335
|
+
if [[ "$cur" == -* ]]; then
|
|
336
|
+
COMPREPLY=( $(compgen -W "-w --workspace --force --verbose --json -h --help" -- "$cur") )
|
|
337
|
+
return 0
|
|
338
|
+
fi
|
|
339
|
+
case "$prev" in
|
|
340
|
+
esac
|
|
341
|
+
}
|
|
342
|
+
|
|
292
343
|
_postman_environment_list() {
|
|
293
344
|
if [[ "$cur" == -* ]]; then
|
|
294
345
|
COMPREPLY=( $(compgen -W "-w --workspace -f --filter --verbose --json -h --help" -- "$cur") )
|
|
@@ -448,7 +499,7 @@ _postman_runner() {
|
|
|
448
499
|
|
|
449
500
|
_postman_runner_start() {
|
|
450
501
|
if [[ "$cur" == -* ]]; then
|
|
451
|
-
COMPREPLY=( $(compgen -W "--id --key --region --proxy --egress-proxy --egress-proxy-authz-url --ssl-extra-ca-certs --metrics --metrics-port --report-events --no-report-events -h --help" -- "$cur") )
|
|
502
|
+
COMPREPLY=( $(compgen -W "--id --key --region --proxy --egress-proxy --egress-proxy-authz-url --ssl-extra-ca-certs --dataset-jdbc-driver-dir --metrics --metrics-port --report-events --no-report-events -h --help" -- "$cur") )
|
|
452
503
|
return 0
|
|
453
504
|
fi
|
|
454
505
|
case "$prev" in
|
|
@@ -458,12 +509,15 @@ _postman_runner_start() {
|
|
|
458
509
|
--ssl-extra-ca-certs)
|
|
459
510
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
460
511
|
return 0 ;;
|
|
512
|
+
--dataset-jdbc-driver-dir)
|
|
513
|
+
COMPREPLY=( $(compgen -d -- "$cur") )
|
|
514
|
+
return 0 ;;
|
|
461
515
|
esac
|
|
462
516
|
}
|
|
463
517
|
|
|
464
518
|
_postman_runner_list() {
|
|
465
519
|
if [[ "$cur" == -* ]]; then
|
|
466
|
-
COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
|
|
520
|
+
COMPREPLY=( $(compgen -W "--api-key -w --workspace --json -h --help" -- "$cur") )
|
|
467
521
|
return 0
|
|
468
522
|
fi
|
|
469
523
|
case "$prev" in
|
|
@@ -490,7 +544,7 @@ _postman_spec() {
|
|
|
490
544
|
if [[ "$cur" == -* ]]; then
|
|
491
545
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
492
546
|
else
|
|
493
|
-
COMPREPLY=( $(compgen -W "lint ai-readiness list get file create" -- "$cur") )
|
|
547
|
+
COMPREPLY=( $(compgen -W "lint ai-readiness list get file create generate" -- "$cur") )
|
|
494
548
|
fi
|
|
495
549
|
return 0
|
|
496
550
|
fi
|
|
@@ -501,6 +555,7 @@ _postman_spec() {
|
|
|
501
555
|
get) _postman_spec_get ;;
|
|
502
556
|
file) _postman_spec_file ;;
|
|
503
557
|
create) _postman_spec_create ;;
|
|
558
|
+
generate) _postman_spec_generate ;;
|
|
504
559
|
esac
|
|
505
560
|
}
|
|
506
561
|
|
|
@@ -615,12 +670,38 @@ _postman_spec_create() {
|
|
|
615
670
|
_postman_filematch '!*.@(json)' "$cur"
|
|
616
671
|
}
|
|
617
672
|
|
|
673
|
+
_postman_spec_generate() {
|
|
674
|
+
if [[ -z "$subcmd" ]]; then
|
|
675
|
+
if [[ "$cur" == -* ]]; then
|
|
676
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
677
|
+
else
|
|
678
|
+
COMPREPLY=( $(compgen -W "collection" -- "$cur") )
|
|
679
|
+
fi
|
|
680
|
+
return 0
|
|
681
|
+
fi
|
|
682
|
+
case "$subcmd" in
|
|
683
|
+
collection) _postman_spec_generate_collection ;;
|
|
684
|
+
esac
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
_postman_spec_generate_collection() {
|
|
688
|
+
if [[ "$cur" == -* ]]; then
|
|
689
|
+
COMPREPLY=( $(compgen -W "-n --name --folder-strategy -w --workspace --api-key -h --help" -- "$cur") )
|
|
690
|
+
return 0
|
|
691
|
+
fi
|
|
692
|
+
case "$prev" in
|
|
693
|
+
--api-key)
|
|
694
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
695
|
+
return 0 ;;
|
|
696
|
+
esac
|
|
697
|
+
}
|
|
698
|
+
|
|
618
699
|
_postman_monitor() {
|
|
619
700
|
if [[ -z "$subcmd" ]]; then
|
|
620
701
|
if [[ "$cur" == -* ]]; then
|
|
621
702
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
622
703
|
else
|
|
623
|
-
COMPREPLY=( $(compgen -W "run create update delete jobs runs list get pause resume" -- "$cur") )
|
|
704
|
+
COMPREPLY=( $(compgen -W "run create update delete jobs runs list get metrics pause resume" -- "$cur") )
|
|
624
705
|
fi
|
|
625
706
|
return 0
|
|
626
707
|
fi
|
|
@@ -633,6 +714,7 @@ _postman_monitor() {
|
|
|
633
714
|
runs) _postman_monitor_runs ;;
|
|
634
715
|
list) _postman_monitor_list ;;
|
|
635
716
|
get) _postman_monitor_get ;;
|
|
717
|
+
metrics) _postman_monitor_metrics ;;
|
|
636
718
|
pause) _postman_monitor_pause ;;
|
|
637
719
|
resume) _postman_monitor_resume ;;
|
|
638
720
|
esac
|
|
@@ -652,7 +734,7 @@ _postman_monitor_run() {
|
|
|
652
734
|
|
|
653
735
|
_postman_monitor_create() {
|
|
654
736
|
if [[ "$cur" == -* ]]; then
|
|
655
|
-
COMPREPLY=( $(compgen -W "-c --collection --name --environment -w --workspace --schedule --timezone --runner --notify-email --notification-limit --retry --timeout --delay --strict-ssl --insecure --follow-redirects --block-redirects --dataset-id --dataset-view-id --iteration-count --iteration-strategy --no-run-now --api-key --json -h --help" -- "$cur") )
|
|
737
|
+
COMPREPLY=( $(compgen -W "-c --collection --name -e --environment -w --workspace --schedule --timezone --runner --notify-email --notification-limit --retry --timeout --delay --strict-ssl --insecure --follow-redirects --block-redirects --dataset-id --dataset-view-id --iteration-count --iteration-strategy --no-run-now --api-key --json -h --help" -- "$cur") )
|
|
656
738
|
return 0
|
|
657
739
|
fi
|
|
658
740
|
case "$prev" in
|
|
@@ -664,7 +746,7 @@ _postman_monitor_create() {
|
|
|
664
746
|
|
|
665
747
|
_postman_monitor_update() {
|
|
666
748
|
if [[ "$cur" == -* ]]; then
|
|
667
|
-
COMPREPLY=( $(compgen -W "--name --schedule --timezone --runner --notify-email --clear-notifications --notification-limit --retry --timeout --delay --strict-ssl --insecure --follow-redirects --block-redirects --dataset-id --dataset-view-id --iteration-count --iteration-strategy --api-key --json -h --help" -- "$cur") )
|
|
749
|
+
COMPREPLY=( $(compgen -W "--name --schedule --timezone --runner --notify-email --clear-notifications -e --environment --clear-environment --notification-limit --retry --timeout --delay --strict-ssl --insecure --follow-redirects --block-redirects --dataset-id --dataset-view-id --iteration-count --iteration-strategy --api-key --json -h --help" -- "$cur") )
|
|
668
750
|
return 0
|
|
669
751
|
fi
|
|
670
752
|
case "$prev" in
|
|
@@ -753,7 +835,7 @@ _postman_monitor_runs_get() {
|
|
|
753
835
|
|
|
754
836
|
_postman_monitor_list() {
|
|
755
837
|
if [[ "$cur" == -* ]]; then
|
|
756
|
-
COMPREPLY=( $(compgen -W "--api-key -w --workspace -c --collection --environment --runner --owner --team --active --limit --
|
|
838
|
+
COMPREPLY=( $(compgen -W "--api-key -w --workspace -c --collection -e --environment --runner --owner --team --active --limit --cursor --columns --no-headers -f --filter --sort --json -h --help" -- "$cur") )
|
|
757
839
|
return 0
|
|
758
840
|
fi
|
|
759
841
|
case "$prev" in
|
|
@@ -775,6 +857,18 @@ _postman_monitor_get() {
|
|
|
775
857
|
esac
|
|
776
858
|
}
|
|
777
859
|
|
|
860
|
+
_postman_monitor_metrics() {
|
|
861
|
+
if [[ "$cur" == -* ]]; then
|
|
862
|
+
COMPREPLY=( $(compgen -W "--api-key --since --until -f --filter --limit --json -h --help" -- "$cur") )
|
|
863
|
+
return 0
|
|
864
|
+
fi
|
|
865
|
+
case "$prev" in
|
|
866
|
+
--api-key)
|
|
867
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
868
|
+
return 0 ;;
|
|
869
|
+
esac
|
|
870
|
+
}
|
|
871
|
+
|
|
778
872
|
_postman_monitor_pause() {
|
|
779
873
|
if [[ "$cur" == -* ]]; then
|
|
780
874
|
COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
|
|
@@ -804,7 +898,7 @@ _postman_workspace() {
|
|
|
804
898
|
if [[ "$cur" == -* ]]; then
|
|
805
899
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
806
900
|
else
|
|
807
|
-
COMPREPLY=( $(compgen -W "list prepare push lint create pull connect-git" -- "$cur") )
|
|
901
|
+
COMPREPLY=( $(compgen -W "list prepare push lint get create pull connect-git diff" -- "$cur") )
|
|
808
902
|
fi
|
|
809
903
|
return 0
|
|
810
904
|
fi
|
|
@@ -813,9 +907,11 @@ _postman_workspace() {
|
|
|
813
907
|
prepare) _postman_workspace_prepare ;;
|
|
814
908
|
push) _postman_workspace_push ;;
|
|
815
909
|
lint) _postman_workspace_lint ;;
|
|
910
|
+
get) _postman_workspace_get ;;
|
|
816
911
|
create) _postman_workspace_create ;;
|
|
817
912
|
pull) _postman_workspace_pull ;;
|
|
818
913
|
connect-git) _postman_workspace_connect_git ;;
|
|
914
|
+
diff) _postman_workspace_diff ;;
|
|
819
915
|
esac
|
|
820
916
|
}
|
|
821
917
|
|
|
@@ -853,6 +949,15 @@ _postman_workspace_lint() {
|
|
|
853
949
|
esac
|
|
854
950
|
}
|
|
855
951
|
|
|
952
|
+
_postman_workspace_get() {
|
|
953
|
+
if [[ "$cur" == -* ]]; then
|
|
954
|
+
COMPREPLY=( $(compgen -W "--elements --json --timeout -h --help" -- "$cur") )
|
|
955
|
+
return 0
|
|
956
|
+
fi
|
|
957
|
+
case "$prev" in
|
|
958
|
+
esac
|
|
959
|
+
}
|
|
960
|
+
|
|
856
961
|
_postman_workspace_create() {
|
|
857
962
|
if [[ "$cur" == -* ]]; then
|
|
858
963
|
COMPREPLY=( $(compgen -W "--visibility --name --summary --path --no-connect --force -h --help" -- "$cur") )
|
|
@@ -882,17 +987,27 @@ _postman_workspace_connect_git() {
|
|
|
882
987
|
_postman_filematch '!*.@(json)' "$cur"
|
|
883
988
|
}
|
|
884
989
|
|
|
990
|
+
_postman_workspace_diff() {
|
|
991
|
+
if [[ "$cur" == -* ]]; then
|
|
992
|
+
COMPREPLY=( $(compgen -W "--push-strategy --summary --json --exit-code --verbose --timeout -h --help" -- "$cur") )
|
|
993
|
+
return 0
|
|
994
|
+
fi
|
|
995
|
+
case "$prev" in
|
|
996
|
+
esac
|
|
997
|
+
}
|
|
998
|
+
|
|
885
999
|
_postman_performance() {
|
|
886
1000
|
if [[ -z "$subcmd" ]]; then
|
|
887
1001
|
if [[ "$cur" == -* ]]; then
|
|
888
1002
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
889
1003
|
else
|
|
890
|
-
COMPREPLY=( $(compgen -W "run" -- "$cur") )
|
|
1004
|
+
COMPREPLY=( $(compgen -W "run list" -- "$cur") )
|
|
891
1005
|
fi
|
|
892
1006
|
return 0
|
|
893
1007
|
fi
|
|
894
1008
|
case "$subcmd" in
|
|
895
1009
|
run) _postman_performance_run ;;
|
|
1010
|
+
list) _postman_performance_list ;;
|
|
896
1011
|
esac
|
|
897
1012
|
}
|
|
898
1013
|
|
|
@@ -909,6 +1024,15 @@ _postman_performance_run() {
|
|
|
909
1024
|
_postman_filematch '!*.@(json)' "$cur"
|
|
910
1025
|
}
|
|
911
1026
|
|
|
1027
|
+
_postman_performance_list() {
|
|
1028
|
+
if [[ "$cur" == -* ]]; then
|
|
1029
|
+
COMPREPLY=( $(compgen -W "-c --collection-id --cursor --json --timeout -h --help" -- "$cur") )
|
|
1030
|
+
return 0
|
|
1031
|
+
fi
|
|
1032
|
+
case "$prev" in
|
|
1033
|
+
esac
|
|
1034
|
+
}
|
|
1035
|
+
|
|
912
1036
|
_postman_flows() {
|
|
913
1037
|
if [[ -z "$subcmd" ]]; then
|
|
914
1038
|
if [[ "$cur" == -* ]]; then
|
|
@@ -1850,7 +1974,7 @@ _postman_dataset() {
|
|
|
1850
1974
|
if [[ "$cur" == -* ]]; then
|
|
1851
1975
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1852
1976
|
else
|
|
1853
|
-
COMPREPLY=( $(compgen -W "list get query create delete source view" -- "$cur") )
|
|
1977
|
+
COMPREPLY=( $(compgen -W "list get query create delete source view jdbc" -- "$cur") )
|
|
1854
1978
|
fi
|
|
1855
1979
|
return 0
|
|
1856
1980
|
fi
|
|
@@ -1862,6 +1986,7 @@ _postman_dataset() {
|
|
|
1862
1986
|
delete) _postman_dataset_delete ;;
|
|
1863
1987
|
source) _postman_dataset_source ;;
|
|
1864
1988
|
view) _postman_dataset_view ;;
|
|
1989
|
+
jdbc) _postman_dataset_jdbc ;;
|
|
1865
1990
|
esac
|
|
1866
1991
|
}
|
|
1867
1992
|
|
|
@@ -1932,7 +2057,7 @@ _postman_dataset_source() {
|
|
|
1932
2057
|
if [[ "$cur" == -* ]]; then
|
|
1933
2058
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1934
2059
|
else
|
|
1935
|
-
COMPREPLY=( $(compgen -W "list add remove update" -- "$cur") )
|
|
2060
|
+
COMPREPLY=( $(compgen -W "list add remove update test" -- "$cur") )
|
|
1936
2061
|
fi
|
|
1937
2062
|
return 0
|
|
1938
2063
|
fi
|
|
@@ -1941,6 +2066,7 @@ _postman_dataset_source() {
|
|
|
1941
2066
|
add) _postman_dataset_source_add ;;
|
|
1942
2067
|
remove) _postman_dataset_source_remove ;;
|
|
1943
2068
|
update) _postman_dataset_source_update ;;
|
|
2069
|
+
test) _postman_dataset_source_test ;;
|
|
1944
2070
|
esac
|
|
1945
2071
|
}
|
|
1946
2072
|
|
|
@@ -1958,13 +2084,22 @@ _postman_dataset_source_list() {
|
|
|
1958
2084
|
|
|
1959
2085
|
_postman_dataset_source_add() {
|
|
1960
2086
|
if [[ "$cur" == -* ]]; then
|
|
1961
|
-
COMPREPLY=( $(compgen -W "-d --dataset -n --name --source-id --format --type --file --ref-only --force --upload --host --port --user --password --database --table --ssh-host --ssh-port --ssh-user --ssh-private-key --ssh-host-key --ssh-host-key-vault-id --ssh-host-key-secret-id --ssh-insecure-skip-host-key-verification --schema --encrypt --trust-server-certificate --tls-certificate --host-name-in-certificate --tls-min-version --api-key -h --help" -- "$cur") )
|
|
2087
|
+
COMPREPLY=( $(compgen -W "-d --dataset -n --name --source-id --format --type --file --ref-only --force --upload --driver-jar --driver-class --driver-name --url-template --var --prop --vars-file --from-source --java-path --no-test --ssh-target-host-variable --ssh-target-port-variable --json --host --port --user --password --database --table --ssh-host --ssh-port --ssh-user --ssh-private-key --ssh-host-key --ssh-host-key-vault-id --ssh-host-key-secret-id --ssh-insecure-skip-host-key-verification --schema --encrypt --trust-server-certificate --tls-certificate --host-name-in-certificate --tls-min-version --api-key -h --help" -- "$cur") )
|
|
1962
2088
|
return 0
|
|
1963
2089
|
fi
|
|
1964
2090
|
case "$prev" in
|
|
1965
2091
|
--file)
|
|
1966
2092
|
_postman_filematch '!*.@(json)' "$cur"
|
|
1967
2093
|
return 0 ;;
|
|
2094
|
+
--driver-jar)
|
|
2095
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2096
|
+
return 0 ;;
|
|
2097
|
+
--vars-file)
|
|
2098
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2099
|
+
return 0 ;;
|
|
2100
|
+
--java-path)
|
|
2101
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2102
|
+
return 0 ;;
|
|
1968
2103
|
--ssh-private-key)
|
|
1969
2104
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1970
2105
|
return 0 ;;
|
|
@@ -1991,13 +2126,22 @@ _postman_dataset_source_remove() {
|
|
|
1991
2126
|
|
|
1992
2127
|
_postman_dataset_source_update() {
|
|
1993
2128
|
if [[ "$cur" == -* ]]; then
|
|
1994
|
-
COMPREPLY=( $(compgen -W "-d --dataset -n --name --format --file --ref-only --force --host --port --user --password --database --table --ssh-host --ssh-port --ssh-user --ssh-private-key --ssh-host-key --ssh-host-key-vault-id --ssh-host-key-secret-id --ssh-insecure-skip-host-key-verification --schema --encrypt --trust-server-certificate --tls-certificate --host-name-in-certificate --tls-min-version --api-key -h --help" -- "$cur") )
|
|
2129
|
+
COMPREPLY=( $(compgen -W "-d --dataset -n --name --format --file --ref-only --force --driver-jar --driver-class --driver-name --url-template --var --prop --unset-var --unset-prop --vars-file --ssh-target-host-variable --ssh-target-port-variable --java-path --host --port --user --password --database --table --ssh-host --ssh-port --ssh-user --ssh-private-key --ssh-host-key --ssh-host-key-vault-id --ssh-host-key-secret-id --ssh-insecure-skip-host-key-verification --schema --encrypt --trust-server-certificate --tls-certificate --host-name-in-certificate --tls-min-version --api-key --json -h --help" -- "$cur") )
|
|
1995
2130
|
return 0
|
|
1996
2131
|
fi
|
|
1997
2132
|
case "$prev" in
|
|
1998
2133
|
--file)
|
|
1999
2134
|
_postman_filematch '!*.@(json)' "$cur"
|
|
2000
2135
|
return 0 ;;
|
|
2136
|
+
--driver-jar)
|
|
2137
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2138
|
+
return 0 ;;
|
|
2139
|
+
--vars-file)
|
|
2140
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2141
|
+
return 0 ;;
|
|
2142
|
+
--java-path)
|
|
2143
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2144
|
+
return 0 ;;
|
|
2001
2145
|
--ssh-private-key)
|
|
2002
2146
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2003
2147
|
return 0 ;;
|
|
@@ -2010,6 +2154,21 @@ _postman_dataset_source_update() {
|
|
|
2010
2154
|
esac
|
|
2011
2155
|
}
|
|
2012
2156
|
|
|
2157
|
+
_postman_dataset_source_test() {
|
|
2158
|
+
if [[ "$cur" == -* ]]; then
|
|
2159
|
+
COMPREPLY=( $(compgen -W "-d --dataset -n --name --java-path --api-key --json -h --help" -- "$cur") )
|
|
2160
|
+
return 0
|
|
2161
|
+
fi
|
|
2162
|
+
case "$prev" in
|
|
2163
|
+
--java-path)
|
|
2164
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2165
|
+
return 0 ;;
|
|
2166
|
+
--api-key)
|
|
2167
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2168
|
+
return 0 ;;
|
|
2169
|
+
esac
|
|
2170
|
+
}
|
|
2171
|
+
|
|
2013
2172
|
_postman_dataset_view() {
|
|
2014
2173
|
if [[ -z "$subcmd" ]]; then
|
|
2015
2174
|
if [[ "$cur" == -* ]]; then
|
|
@@ -2054,7 +2213,7 @@ _postman_dataset_view_run() {
|
|
|
2054
2213
|
|
|
2055
2214
|
_postman_dataset_view_create() {
|
|
2056
2215
|
if [[ "$cur" == -* ]]; then
|
|
2057
|
-
COMPREPLY=( $(compgen -W "-d --dataset -n --name -q --query --view-id --api-key -h --help" -- "$cur") )
|
|
2216
|
+
COMPREPLY=( $(compgen -W "-d --dataset -n --name -q --query -s --source --view-id --json --api-key -h --help" -- "$cur") )
|
|
2058
2217
|
return 0
|
|
2059
2218
|
fi
|
|
2060
2219
|
case "$prev" in
|
|
@@ -2088,6 +2247,32 @@ _postman_dataset_view_update() {
|
|
|
2088
2247
|
esac
|
|
2089
2248
|
}
|
|
2090
2249
|
|
|
2250
|
+
_postman_dataset_jdbc() {
|
|
2251
|
+
if [[ -z "$subcmd" ]]; then
|
|
2252
|
+
if [[ "$cur" == -* ]]; then
|
|
2253
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2254
|
+
else
|
|
2255
|
+
COMPREPLY=( $(compgen -W "inspect" -- "$cur") )
|
|
2256
|
+
fi
|
|
2257
|
+
return 0
|
|
2258
|
+
fi
|
|
2259
|
+
case "$subcmd" in
|
|
2260
|
+
inspect) _postman_dataset_jdbc_inspect ;;
|
|
2261
|
+
esac
|
|
2262
|
+
}
|
|
2263
|
+
|
|
2264
|
+
_postman_dataset_jdbc_inspect() {
|
|
2265
|
+
if [[ "$cur" == -* ]]; then
|
|
2266
|
+
COMPREPLY=( $(compgen -W "--driver-class --url-template --java-path --json -h --help" -- "$cur") )
|
|
2267
|
+
return 0
|
|
2268
|
+
fi
|
|
2269
|
+
case "$prev" in
|
|
2270
|
+
--java-path)
|
|
2271
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2272
|
+
return 0 ;;
|
|
2273
|
+
esac
|
|
2274
|
+
}
|
|
2275
|
+
|
|
2091
2276
|
_postman_dependency() {
|
|
2092
2277
|
if [[ -z "$subcmd" ]]; then
|
|
2093
2278
|
if [[ "$cur" == -* ]]; then
|