postman-cli-completion 1.67.0 → 1.73.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 +1356 -873
- package/completions/fish/postman.fish +1245 -949
- package/completions/zsh/_postman +1939 -1413
- 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.73.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,8 +22,8 @@ _postman() {
|
|
|
22
22
|
cur="${COMP_WORDS[COMP_CWORD]}"
|
|
23
23
|
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
|
24
24
|
|
|
25
|
-
local top_commands="
|
|
26
|
-
local global_flags="-
|
|
25
|
+
local top_commands="api collection dataset environment flows fl globals mock monitor request runner sdk spec workspace ws context-graph describe init search skills login logout signup whoami application app dependency feedback performance secret simulation team update webhook"
|
|
26
|
+
local global_flags="--color -h --help --silent -v --version -h --help"
|
|
27
27
|
|
|
28
28
|
local i cmd="" subcmd=""
|
|
29
29
|
for ((i=1; i<COMP_CWORD; i++)); do
|
|
@@ -46,132 +46,74 @@ _postman() {
|
|
|
46
46
|
fi
|
|
47
47
|
|
|
48
48
|
case "$cmd" in
|
|
49
|
-
|
|
50
|
-
signup) _postman_signup ;;
|
|
51
|
-
logout) _postman_logout ;;
|
|
52
|
-
init) _postman_init ;;
|
|
53
|
-
whoami) _postman_whoami ;;
|
|
54
|
-
feedback) _postman_feedback ;;
|
|
55
|
-
update) _postman_update ;;
|
|
56
|
-
skills) _postman_skills ;;
|
|
49
|
+
api) _postman_api ;;
|
|
57
50
|
collection) _postman_collection ;;
|
|
51
|
+
dataset) _postman_dataset ;;
|
|
58
52
|
environment) _postman_environment ;;
|
|
53
|
+
flows|fl) _postman_flows ;;
|
|
59
54
|
globals) _postman_globals ;;
|
|
60
|
-
|
|
61
|
-
runner) _postman_runner ;;
|
|
62
|
-
spec) _postman_spec ;;
|
|
55
|
+
mock) _postman_mock ;;
|
|
63
56
|
monitor) _postman_monitor ;;
|
|
64
|
-
workspace|ws) _postman_workspace ;;
|
|
65
|
-
team) _postman_team ;;
|
|
66
|
-
performance) _postman_performance ;;
|
|
67
|
-
flows|fl) _postman_flows ;;
|
|
68
57
|
request) _postman_request ;;
|
|
58
|
+
runner) _postman_runner ;;
|
|
69
59
|
sdk) _postman_sdk ;;
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
simulate) _postman_simulate ;;
|
|
73
|
-
describe) _postman_describe ;;
|
|
60
|
+
spec) _postman_spec ;;
|
|
61
|
+
workspace|ws) _postman_workspace ;;
|
|
74
62
|
context-graph) _postman_context_graph ;;
|
|
63
|
+
describe) _postman_describe ;;
|
|
64
|
+
init) _postman_init ;;
|
|
75
65
|
search) _postman_search ;;
|
|
76
|
-
|
|
77
|
-
|
|
66
|
+
skills) _postman_skills ;;
|
|
67
|
+
login) _postman_login ;;
|
|
68
|
+
logout) _postman_logout ;;
|
|
69
|
+
signup) _postman_signup ;;
|
|
70
|
+
whoami) _postman_whoami ;;
|
|
71
|
+
application|app) _postman_application ;;
|
|
78
72
|
dependency) _postman_dependency ;;
|
|
73
|
+
feedback) _postman_feedback ;;
|
|
74
|
+
performance) _postman_performance ;;
|
|
75
|
+
secret) _postman_secret ;;
|
|
76
|
+
simulation) _postman_simulation ;;
|
|
77
|
+
team) _postman_team ;;
|
|
78
|
+
update) _postman_update ;;
|
|
79
|
+
webhook) _postman_webhook ;;
|
|
79
80
|
esac
|
|
80
81
|
}
|
|
81
82
|
|
|
82
|
-
|
|
83
|
-
if [[ "$cur" == -* ]]; then
|
|
84
|
-
COMPREPLY=( $(compgen -W "--alias --with-api-key --region --verbose -h --help" -- "$cur") )
|
|
85
|
-
return 0
|
|
86
|
-
fi
|
|
87
|
-
case "$prev" in
|
|
88
|
-
--region)
|
|
89
|
-
COMPREPLY=( $(compgen -W "us eu" -- "$cur") )
|
|
90
|
-
return 0 ;;
|
|
91
|
-
esac
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
_postman_signup() {
|
|
95
|
-
if [[ "$cur" == -* ]]; then
|
|
96
|
-
COMPREPLY=( $(compgen -W "--guest --json -h --help" -- "$cur") )
|
|
97
|
-
return 0
|
|
98
|
-
fi
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
_postman_logout() {
|
|
102
|
-
if [[ "$cur" == -* ]]; then
|
|
103
|
-
COMPREPLY=( $(compgen -W "--alias -h --help" -- "$cur") )
|
|
104
|
-
return 0
|
|
105
|
-
fi
|
|
106
|
-
case "$prev" in
|
|
107
|
-
esac
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
_postman_init() {
|
|
111
|
-
if [[ "$cur" == -* ]]; then
|
|
112
|
-
COMPREPLY=( $(compgen -W "--json --dry-run --no-fetch --spec --visibility --no-cloud --report-events -h --help" -- "$cur") )
|
|
113
|
-
return 0
|
|
114
|
-
fi
|
|
115
|
-
case "$prev" in
|
|
116
|
-
--spec)
|
|
117
|
-
_postman_filematch '!*.@(yaml|yml|json)' "$cur"
|
|
118
|
-
return 0 ;;
|
|
119
|
-
esac
|
|
120
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
_postman_whoami() {
|
|
124
|
-
if [[ "$cur" == -* ]]; then
|
|
125
|
-
COMPREPLY=( $(compgen -W "--json -h --help" -- "$cur") )
|
|
126
|
-
return 0
|
|
127
|
-
fi
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
_postman_feedback() {
|
|
131
|
-
if [[ "$cur" == -* ]]; then
|
|
132
|
-
COMPREPLY=( $(compgen -W "--type --context --json -h --help" -- "$cur") )
|
|
133
|
-
return 0
|
|
134
|
-
fi
|
|
135
|
-
case "$prev" in
|
|
136
|
-
esac
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
_postman_update() {
|
|
140
|
-
if [[ "$cur" == -* ]]; then
|
|
141
|
-
COMPREPLY=( $(compgen -W "--check -h --help" -- "$cur") )
|
|
142
|
-
return 0
|
|
143
|
-
fi
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
_postman_skills() {
|
|
83
|
+
_postman_api() {
|
|
147
84
|
if [[ -z "$subcmd" ]]; then
|
|
148
85
|
if [[ "$cur" == -* ]]; then
|
|
149
86
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
150
87
|
else
|
|
151
|
-
COMPREPLY=( $(compgen -W "
|
|
88
|
+
COMPREPLY=( $(compgen -W "lint publish" -- "$cur") )
|
|
152
89
|
fi
|
|
153
90
|
return 0
|
|
154
91
|
fi
|
|
155
92
|
case "$subcmd" in
|
|
156
|
-
|
|
157
|
-
|
|
93
|
+
lint) _postman_api_lint ;;
|
|
94
|
+
publish) _postman_api_publish ;;
|
|
158
95
|
esac
|
|
159
96
|
}
|
|
160
97
|
|
|
161
|
-
|
|
98
|
+
_postman_api_lint() {
|
|
162
99
|
if [[ "$cur" == -* ]]; then
|
|
163
|
-
COMPREPLY=( $(compgen -W "--
|
|
100
|
+
COMPREPLY=( $(compgen -W "--integration-id -f --fail-severity -x --suppress-exit-code -h --help" -- "$cur") )
|
|
164
101
|
return 0
|
|
165
102
|
fi
|
|
166
|
-
|
|
103
|
+
case "$prev" in
|
|
104
|
+
esac
|
|
167
105
|
}
|
|
168
106
|
|
|
169
|
-
|
|
107
|
+
_postman_api_publish() {
|
|
170
108
|
if [[ "$cur" == -* ]]; then
|
|
171
|
-
COMPREPLY=( $(compgen -W "--
|
|
109
|
+
COMPREPLY=( $(compgen -W "--name --release-notes --collections --api-definition --do-not-poll -x --suppress-exit-code -h --help" -- "$cur") )
|
|
172
110
|
return 0
|
|
173
111
|
fi
|
|
174
|
-
|
|
112
|
+
case "$prev" in
|
|
113
|
+
--collections)
|
|
114
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
115
|
+
return 0 ;;
|
|
116
|
+
esac
|
|
175
117
|
}
|
|
176
118
|
|
|
177
119
|
_postman_collection() {
|
|
@@ -179,7 +121,7 @@ _postman_collection() {
|
|
|
179
121
|
if [[ "$cur" == -* ]]; then
|
|
180
122
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
181
123
|
else
|
|
182
|
-
COMPREPLY=( $(compgen -W "new migrate lint get publish generate sync request folder list run" -- "$cur") )
|
|
124
|
+
COMPREPLY=( $(compgen -W "new migrate lint ai-readiness get delete publish generate sync request folder example import list run" -- "$cur") )
|
|
183
125
|
fi
|
|
184
126
|
return 0
|
|
185
127
|
fi
|
|
@@ -187,12 +129,16 @@ _postman_collection() {
|
|
|
187
129
|
new) _postman_collection_new ;;
|
|
188
130
|
migrate) _postman_collection_migrate ;;
|
|
189
131
|
lint) _postman_collection_lint ;;
|
|
132
|
+
ai-readiness) _postman_collection_ai_readiness ;;
|
|
190
133
|
get) _postman_collection_get ;;
|
|
134
|
+
delete) _postman_collection_delete ;;
|
|
191
135
|
publish) _postman_collection_publish ;;
|
|
192
136
|
generate) _postman_collection_generate ;;
|
|
193
137
|
sync) _postman_collection_sync ;;
|
|
194
138
|
request) _postman_collection_request ;;
|
|
195
139
|
folder) _postman_collection_folder ;;
|
|
140
|
+
example) _postman_collection_example ;;
|
|
141
|
+
import) _postman_collection_import ;;
|
|
196
142
|
list) _postman_collection_list ;;
|
|
197
143
|
run) _postman_collection_run ;;
|
|
198
144
|
esac
|
|
@@ -230,6 +176,19 @@ _postman_collection_lint() {
|
|
|
230
176
|
_postman_filematch '!*.@(json)' "$cur"
|
|
231
177
|
}
|
|
232
178
|
|
|
179
|
+
_postman_collection_ai_readiness() {
|
|
180
|
+
if [[ "$cur" == -* ]]; then
|
|
181
|
+
COMPREPLY=( $(compgen -W "-o --output --export --min-score -h --help" -- "$cur") )
|
|
182
|
+
return 0
|
|
183
|
+
fi
|
|
184
|
+
case "$prev" in
|
|
185
|
+
--export)
|
|
186
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
187
|
+
return 0 ;;
|
|
188
|
+
esac
|
|
189
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
190
|
+
}
|
|
191
|
+
|
|
233
192
|
_postman_collection_get() {
|
|
234
193
|
if [[ "$cur" == -* ]]; then
|
|
235
194
|
COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
|
|
@@ -242,6 +201,18 @@ _postman_collection_get() {
|
|
|
242
201
|
esac
|
|
243
202
|
}
|
|
244
203
|
|
|
204
|
+
_postman_collection_delete() {
|
|
205
|
+
if [[ "$cur" == -* ]]; then
|
|
206
|
+
COMPREPLY=( $(compgen -W "-y --yes --api-key --verbose --json -h --help" -- "$cur") )
|
|
207
|
+
return 0
|
|
208
|
+
fi
|
|
209
|
+
case "$prev" in
|
|
210
|
+
--api-key)
|
|
211
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
212
|
+
return 0 ;;
|
|
213
|
+
esac
|
|
214
|
+
}
|
|
215
|
+
|
|
245
216
|
_postman_collection_publish() {
|
|
246
217
|
if [[ "$cur" == -* ]]; then
|
|
247
218
|
COMPREPLY=( $(compgen -W "--target --environment --title --description --note --api-key --json -h --help" -- "$cur") )
|
|
@@ -317,12 +288,13 @@ _postman_collection_request() {
|
|
|
317
288
|
if [[ "$cur" == -* ]]; then
|
|
318
289
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
319
290
|
else
|
|
320
|
-
COMPREPLY=( $(compgen -W "add update rm remove" -- "$cur") )
|
|
291
|
+
COMPREPLY=( $(compgen -W "add get update rm remove" -- "$cur") )
|
|
321
292
|
fi
|
|
322
293
|
return 0
|
|
323
294
|
fi
|
|
324
295
|
case "$subcmd" in
|
|
325
296
|
add) _postman_collection_request_add ;;
|
|
297
|
+
get) _postman_collection_request_get ;;
|
|
326
298
|
update) _postman_collection_request_update ;;
|
|
327
299
|
rm|remove) _postman_collection_request_rm ;;
|
|
328
300
|
esac
|
|
@@ -337,6 +309,15 @@ _postman_collection_request_add() {
|
|
|
337
309
|
esac
|
|
338
310
|
}
|
|
339
311
|
|
|
312
|
+
_postman_collection_request_get() {
|
|
313
|
+
if [[ "$cur" == -* ]]; then
|
|
314
|
+
COMPREPLY=( $(compgen -W "--collection --folder -w --workspace --json -h --help" -- "$cur") )
|
|
315
|
+
return 0
|
|
316
|
+
fi
|
|
317
|
+
case "$prev" in
|
|
318
|
+
esac
|
|
319
|
+
}
|
|
320
|
+
|
|
340
321
|
_postman_collection_request_update() {
|
|
341
322
|
if [[ "$cur" == -* ]]; then
|
|
342
323
|
COMPREPLY=( $(compgen -W "--collection --folder --rename --url --method --param --clear-params -d --body --variables --description --headers --auth --scripts -w --workspace --type --json -h --help" -- "$cur") )
|
|
@@ -366,12 +347,13 @@ _postman_collection_folder() {
|
|
|
366
347
|
if [[ "$cur" == -* ]]; then
|
|
367
348
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
368
349
|
else
|
|
369
|
-
COMPREPLY=( $(compgen -W "add update rm remove" -- "$cur") )
|
|
350
|
+
COMPREPLY=( $(compgen -W "add get update rm remove" -- "$cur") )
|
|
370
351
|
fi
|
|
371
352
|
return 0
|
|
372
353
|
fi
|
|
373
354
|
case "$subcmd" in
|
|
374
355
|
add) _postman_collection_folder_add ;;
|
|
356
|
+
get) _postman_collection_folder_get ;;
|
|
375
357
|
update) _postman_collection_folder_update ;;
|
|
376
358
|
rm|remove) _postman_collection_folder_rm ;;
|
|
377
359
|
esac
|
|
@@ -386,6 +368,15 @@ _postman_collection_folder_add() {
|
|
|
386
368
|
esac
|
|
387
369
|
}
|
|
388
370
|
|
|
371
|
+
_postman_collection_folder_get() {
|
|
372
|
+
if [[ "$cur" == -* ]]; then
|
|
373
|
+
COMPREPLY=( $(compgen -W "--collection --folder -w --workspace --json -h --help" -- "$cur") )
|
|
374
|
+
return 0
|
|
375
|
+
fi
|
|
376
|
+
case "$prev" in
|
|
377
|
+
esac
|
|
378
|
+
}
|
|
379
|
+
|
|
389
380
|
_postman_collection_folder_update() {
|
|
390
381
|
if [[ "$cur" == -* ]]; then
|
|
391
382
|
COMPREPLY=( $(compgen -W "--collection --folder --name --description --auth --scripts -w --workspace --json -h --help" -- "$cur") )
|
|
@@ -404,6 +395,90 @@ _postman_collection_folder_rm() {
|
|
|
404
395
|
esac
|
|
405
396
|
}
|
|
406
397
|
|
|
398
|
+
_postman_collection_example() {
|
|
399
|
+
if [[ -z "$subcmd" ]]; then
|
|
400
|
+
if [[ "$cur" == -* ]]; then
|
|
401
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
402
|
+
else
|
|
403
|
+
COMPREPLY=( $(compgen -W "add update rm remove get list" -- "$cur") )
|
|
404
|
+
fi
|
|
405
|
+
return 0
|
|
406
|
+
fi
|
|
407
|
+
case "$subcmd" in
|
|
408
|
+
add) _postman_collection_example_add ;;
|
|
409
|
+
update) _postman_collection_example_update ;;
|
|
410
|
+
rm|remove) _postman_collection_example_rm ;;
|
|
411
|
+
get) _postman_collection_example_get ;;
|
|
412
|
+
list) _postman_collection_example_list ;;
|
|
413
|
+
esac
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
_postman_collection_example_add() {
|
|
417
|
+
if [[ "$cur" == -* ]]; then
|
|
418
|
+
COMPREPLY=( $(compgen -W "--collection --request --folder --type -w --workspace --json -h --help" -- "$cur") )
|
|
419
|
+
return 0
|
|
420
|
+
fi
|
|
421
|
+
case "$prev" in
|
|
422
|
+
esac
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
_postman_collection_example_update() {
|
|
426
|
+
if [[ "$cur" == -* ]]; then
|
|
427
|
+
COMPREPLY=( $(compgen -W "--collection --request --folder --status-code --status-text -d --body --headers --description --rename --url --method --request-headers --request-param --request-body --copy-request --clear-request -w --workspace --type --json -h --help" -- "$cur") )
|
|
428
|
+
return 0
|
|
429
|
+
fi
|
|
430
|
+
case "$prev" in
|
|
431
|
+
--headers)
|
|
432
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
433
|
+
return 0 ;;
|
|
434
|
+
--request-headers)
|
|
435
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
436
|
+
return 0 ;;
|
|
437
|
+
--request-param)
|
|
438
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
439
|
+
return 0 ;;
|
|
440
|
+
esac
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
_postman_collection_example_rm() {
|
|
444
|
+
if [[ "$cur" == -* ]]; then
|
|
445
|
+
COMPREPLY=( $(compgen -W "--collection --request --folder -w --workspace --type --json -h --help" -- "$cur") )
|
|
446
|
+
return 0
|
|
447
|
+
fi
|
|
448
|
+
case "$prev" in
|
|
449
|
+
esac
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
_postman_collection_example_get() {
|
|
453
|
+
if [[ "$cur" == -* ]]; then
|
|
454
|
+
COMPREPLY=( $(compgen -W "--collection --request --folder -w --workspace --type --json -h --help" -- "$cur") )
|
|
455
|
+
return 0
|
|
456
|
+
fi
|
|
457
|
+
case "$prev" in
|
|
458
|
+
esac
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
_postman_collection_example_list() {
|
|
462
|
+
if [[ "$cur" == -* ]]; then
|
|
463
|
+
COMPREPLY=( $(compgen -W "--collection --request --folder -w --workspace --type --json -h --help" -- "$cur") )
|
|
464
|
+
return 0
|
|
465
|
+
fi
|
|
466
|
+
case "$prev" in
|
|
467
|
+
esac
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
_postman_collection_import() {
|
|
471
|
+
if [[ "$cur" == -* ]]; then
|
|
472
|
+
COMPREPLY=( $(compgen -W "--type --name -o --output -w --workspace --force --timeout --verbose --json -h --help" -- "$cur") )
|
|
473
|
+
return 0
|
|
474
|
+
fi
|
|
475
|
+
case "$prev" in
|
|
476
|
+
-o|--output)
|
|
477
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
478
|
+
return 0 ;;
|
|
479
|
+
esac
|
|
480
|
+
}
|
|
481
|
+
|
|
407
482
|
_postman_collection_list() {
|
|
408
483
|
if [[ "$cur" == -* ]]; then
|
|
409
484
|
COMPREPLY=( $(compgen -W "-w --workspace -f --filter --verbose --debug --json -h --help" -- "$cur") )
|
|
@@ -415,7 +490,7 @@ _postman_collection_list() {
|
|
|
415
490
|
|
|
416
491
|
_postman_collection_run() {
|
|
417
492
|
if [[ "$cur" == -* ]]; then
|
|
418
|
-
COMPREPLY=( $(compgen -W "-e --environment -g --globals
|
|
493
|
+
COMPREPLY=( $(compgen -W "-e --environment -g --globals --output -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 --simulation -w --workspace --report-events --no-report-events -h --help" -- "$cur") )
|
|
419
494
|
return 0
|
|
420
495
|
fi
|
|
421
496
|
case "$prev" in
|
|
@@ -425,9 +500,6 @@ _postman_collection_run() {
|
|
|
425
500
|
-g|--globals)
|
|
426
501
|
_postman_filematch '!*.@(json)' "$cur"
|
|
427
502
|
return 0 ;;
|
|
428
|
-
-r|--reporters)
|
|
429
|
-
COMPREPLY=( $(compgen -W "cli json junit html" -- "$cur") )
|
|
430
|
-
return 0 ;;
|
|
431
503
|
-d|--iteration-data)
|
|
432
504
|
_postman_filematch '!*.@(json|csv)' "$cur"
|
|
433
505
|
return 0 ;;
|
|
@@ -464,227 +536,246 @@ _postman_collection_run() {
|
|
|
464
536
|
--mock)
|
|
465
537
|
_postman_filematch '!*.@(json)' "$cur"
|
|
466
538
|
return 0 ;;
|
|
467
|
-
--
|
|
468
|
-
_postman_filematch '!*.@(
|
|
469
|
-
return 0 ;;
|
|
470
|
-
--reporter-json-export)
|
|
471
|
-
_postman_filematch '!*.@(json|xml|html)' "$cur"
|
|
472
|
-
return 0 ;;
|
|
473
|
-
--reporter-junit-export)
|
|
474
|
-
_postman_filematch '!*.@(json|xml|html)' "$cur"
|
|
475
|
-
return 0 ;;
|
|
476
|
-
--reporter-html-export)
|
|
477
|
-
_postman_filematch '!*.@(json|xml|html)' "$cur"
|
|
539
|
+
--simulation)
|
|
540
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
478
541
|
return 0 ;;
|
|
479
542
|
esac
|
|
480
543
|
_postman_filematch '!*.@(json)' "$cur"
|
|
481
544
|
}
|
|
482
545
|
|
|
483
|
-
|
|
546
|
+
_postman_dataset() {
|
|
484
547
|
if [[ -z "$subcmd" ]]; then
|
|
485
548
|
if [[ "$cur" == -* ]]; then
|
|
486
549
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
487
550
|
else
|
|
488
|
-
COMPREPLY=( $(compgen -W "
|
|
551
|
+
COMPREPLY=( $(compgen -W "list get query create delete source view jdbc" -- "$cur") )
|
|
489
552
|
fi
|
|
490
553
|
return 0
|
|
491
554
|
fi
|
|
492
555
|
case "$subcmd" in
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
556
|
+
list) _postman_dataset_list ;;
|
|
557
|
+
get) _postman_dataset_get ;;
|
|
558
|
+
query) _postman_dataset_query ;;
|
|
559
|
+
create) _postman_dataset_create ;;
|
|
560
|
+
delete) _postman_dataset_delete ;;
|
|
561
|
+
source) _postman_dataset_source ;;
|
|
562
|
+
view) _postman_dataset_view ;;
|
|
563
|
+
jdbc) _postman_dataset_jdbc ;;
|
|
498
564
|
esac
|
|
499
565
|
}
|
|
500
566
|
|
|
501
|
-
|
|
567
|
+
_postman_dataset_list() {
|
|
502
568
|
if [[ "$cur" == -* ]]; then
|
|
503
|
-
COMPREPLY=( $(compgen -W "-w --workspace --
|
|
569
|
+
COMPREPLY=( $(compgen -W "-w --workspace --api-key --json -h --help" -- "$cur") )
|
|
504
570
|
return 0
|
|
505
571
|
fi
|
|
506
572
|
case "$prev" in
|
|
573
|
+
--api-key)
|
|
574
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
575
|
+
return 0 ;;
|
|
507
576
|
esac
|
|
577
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
508
578
|
}
|
|
509
579
|
|
|
510
|
-
|
|
511
|
-
if [[ "$cur" == -* ]]; then
|
|
512
|
-
COMPREPLY=( $(compgen -W "-w --workspace -f --filter --verbose --json -h --help" -- "$cur") )
|
|
513
|
-
return 0
|
|
514
|
-
fi
|
|
515
|
-
case "$prev" in
|
|
516
|
-
esac
|
|
517
|
-
}
|
|
518
|
-
|
|
519
|
-
_postman_environment_get() {
|
|
520
|
-
if [[ "$cur" == -* ]]; then
|
|
521
|
-
COMPREPLY=( $(compgen -W "--verbose --json --show-secrets -h --help" -- "$cur") )
|
|
522
|
-
return 0
|
|
523
|
-
fi
|
|
524
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
_postman_environment_var() {
|
|
528
|
-
if [[ -z "$subcmd" ]]; then
|
|
529
|
-
if [[ "$cur" == -* ]]; then
|
|
530
|
-
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
531
|
-
else
|
|
532
|
-
COMPREPLY=( $(compgen -W "set get unset" -- "$cur") )
|
|
533
|
-
fi
|
|
534
|
-
return 0
|
|
535
|
-
fi
|
|
536
|
-
case "$subcmd" in
|
|
537
|
-
set) _postman_environment_var_set ;;
|
|
538
|
-
get) _postman_environment_var_get ;;
|
|
539
|
-
unset) _postman_environment_var_unset ;;
|
|
540
|
-
esac
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
_postman_environment_var_set() {
|
|
580
|
+
_postman_dataset_get() {
|
|
544
581
|
if [[ "$cur" == -* ]]; then
|
|
545
|
-
COMPREPLY=( $(compgen -W "-
|
|
582
|
+
COMPREPLY=( $(compgen -W "--api-key --no-populate --json -h --help" -- "$cur") )
|
|
546
583
|
return 0
|
|
547
584
|
fi
|
|
548
585
|
case "$prev" in
|
|
549
|
-
-
|
|
550
|
-
_postman_filematch '!*.@(
|
|
586
|
+
--api-key)
|
|
587
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
551
588
|
return 0 ;;
|
|
552
589
|
esac
|
|
553
590
|
}
|
|
554
591
|
|
|
555
|
-
|
|
592
|
+
_postman_dataset_query() {
|
|
556
593
|
if [[ "$cur" == -* ]]; then
|
|
557
|
-
COMPREPLY=( $(compgen -W "-
|
|
594
|
+
COMPREPLY=( $(compgen -W "-q --query -s --source -p --param --api-key --json --debug -h --help" -- "$cur") )
|
|
558
595
|
return 0
|
|
559
596
|
fi
|
|
560
597
|
case "$prev" in
|
|
561
|
-
-
|
|
562
|
-
_postman_filematch '!*.@(
|
|
598
|
+
--api-key)
|
|
599
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
563
600
|
return 0 ;;
|
|
564
601
|
esac
|
|
565
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
566
602
|
}
|
|
567
603
|
|
|
568
|
-
|
|
604
|
+
_postman_dataset_create() {
|
|
569
605
|
if [[ "$cur" == -* ]]; then
|
|
570
|
-
COMPREPLY=( $(compgen -W "-
|
|
606
|
+
COMPREPLY=( $(compgen -W "-n --name -d --description --dataset-id --force -w --workspace --api-key -h --help" -- "$cur") )
|
|
571
607
|
return 0
|
|
572
608
|
fi
|
|
573
609
|
case "$prev" in
|
|
574
|
-
-
|
|
575
|
-
_postman_filematch '!*.@(
|
|
610
|
+
--api-key)
|
|
611
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
576
612
|
return 0 ;;
|
|
577
613
|
esac
|
|
578
614
|
_postman_filematch '!*.@(json)' "$cur"
|
|
579
615
|
}
|
|
580
616
|
|
|
581
|
-
|
|
617
|
+
_postman_dataset_delete() {
|
|
582
618
|
if [[ "$cur" == -* ]]; then
|
|
583
|
-
COMPREPLY=( $(compgen -W "-
|
|
619
|
+
COMPREPLY=( $(compgen -W "-y --yes --keep-resources --api-key -h --help" -- "$cur") )
|
|
584
620
|
return 0
|
|
585
621
|
fi
|
|
586
622
|
case "$prev" in
|
|
623
|
+
--api-key)
|
|
624
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
625
|
+
return 0 ;;
|
|
587
626
|
esac
|
|
588
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
589
627
|
}
|
|
590
628
|
|
|
591
|
-
|
|
629
|
+
_postman_dataset_source() {
|
|
592
630
|
if [[ -z "$subcmd" ]]; then
|
|
593
631
|
if [[ "$cur" == -* ]]; then
|
|
594
632
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
595
633
|
else
|
|
596
|
-
COMPREPLY=( $(compgen -W "
|
|
634
|
+
COMPREPLY=( $(compgen -W "list add remove update test" -- "$cur") )
|
|
597
635
|
fi
|
|
598
636
|
return 0
|
|
599
637
|
fi
|
|
600
638
|
case "$subcmd" in
|
|
601
|
-
|
|
639
|
+
list) _postman_dataset_source_list ;;
|
|
640
|
+
add) _postman_dataset_source_add ;;
|
|
641
|
+
remove) _postman_dataset_source_remove ;;
|
|
642
|
+
update) _postman_dataset_source_update ;;
|
|
643
|
+
test) _postman_dataset_source_test ;;
|
|
602
644
|
esac
|
|
603
645
|
}
|
|
604
646
|
|
|
605
|
-
|
|
647
|
+
_postman_dataset_source_list() {
|
|
606
648
|
if [[ "$cur" == -* ]]; then
|
|
607
|
-
COMPREPLY=( $(compgen -W "-
|
|
649
|
+
COMPREPLY=( $(compgen -W "-d --dataset --api-key --json -h --help" -- "$cur") )
|
|
608
650
|
return 0
|
|
609
651
|
fi
|
|
610
652
|
case "$prev" in
|
|
653
|
+
--api-key)
|
|
654
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
655
|
+
return 0 ;;
|
|
611
656
|
esac
|
|
612
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
613
657
|
}
|
|
614
658
|
|
|
615
|
-
|
|
616
|
-
if [[
|
|
617
|
-
|
|
618
|
-
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
619
|
-
else
|
|
620
|
-
COMPREPLY=( $(compgen -W "lint publish" -- "$cur") )
|
|
621
|
-
fi
|
|
659
|
+
_postman_dataset_source_add() {
|
|
660
|
+
if [[ "$cur" == -* ]]; then
|
|
661
|
+
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") )
|
|
622
662
|
return 0
|
|
623
663
|
fi
|
|
624
|
-
case "$
|
|
625
|
-
|
|
626
|
-
|
|
664
|
+
case "$prev" in
|
|
665
|
+
--file)
|
|
666
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
667
|
+
return 0 ;;
|
|
668
|
+
--driver-jar)
|
|
669
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
670
|
+
return 0 ;;
|
|
671
|
+
--vars-file)
|
|
672
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
673
|
+
return 0 ;;
|
|
674
|
+
--java-path)
|
|
675
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
676
|
+
return 0 ;;
|
|
677
|
+
--ssh-private-key)
|
|
678
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
679
|
+
return 0 ;;
|
|
680
|
+
--tls-certificate)
|
|
681
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
682
|
+
return 0 ;;
|
|
683
|
+
--api-key)
|
|
684
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
685
|
+
return 0 ;;
|
|
627
686
|
esac
|
|
628
687
|
}
|
|
629
688
|
|
|
630
|
-
|
|
689
|
+
_postman_dataset_source_remove() {
|
|
631
690
|
if [[ "$cur" == -* ]]; then
|
|
632
|
-
COMPREPLY=( $(compgen -W "
|
|
691
|
+
COMPREPLY=( $(compgen -W "-d --dataset --api-key -h --help" -- "$cur") )
|
|
633
692
|
return 0
|
|
634
693
|
fi
|
|
635
694
|
case "$prev" in
|
|
695
|
+
--api-key)
|
|
696
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
697
|
+
return 0 ;;
|
|
636
698
|
esac
|
|
637
699
|
}
|
|
638
700
|
|
|
639
|
-
|
|
701
|
+
_postman_dataset_source_update() {
|
|
640
702
|
if [[ "$cur" == -* ]]; then
|
|
641
|
-
COMPREPLY=( $(compgen -W "--name --
|
|
703
|
+
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") )
|
|
642
704
|
return 0
|
|
643
705
|
fi
|
|
644
706
|
case "$prev" in
|
|
645
|
-
--
|
|
707
|
+
--file)
|
|
708
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
709
|
+
return 0 ;;
|
|
710
|
+
--driver-jar)
|
|
711
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
712
|
+
return 0 ;;
|
|
713
|
+
--vars-file)
|
|
714
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
715
|
+
return 0 ;;
|
|
716
|
+
--java-path)
|
|
646
717
|
_postman_filematch '!*.@(json)' "$cur"
|
|
647
718
|
return 0 ;;
|
|
719
|
+
--ssh-private-key)
|
|
720
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
721
|
+
return 0 ;;
|
|
722
|
+
--tls-certificate)
|
|
723
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
724
|
+
return 0 ;;
|
|
725
|
+
--api-key)
|
|
726
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
727
|
+
return 0 ;;
|
|
648
728
|
esac
|
|
649
729
|
}
|
|
650
730
|
|
|
651
|
-
|
|
731
|
+
_postman_dataset_source_test() {
|
|
732
|
+
if [[ "$cur" == -* ]]; then
|
|
733
|
+
COMPREPLY=( $(compgen -W "-d --dataset -n --name --java-path --api-key --json -h --help" -- "$cur") )
|
|
734
|
+
return 0
|
|
735
|
+
fi
|
|
736
|
+
case "$prev" in
|
|
737
|
+
--java-path)
|
|
738
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
739
|
+
return 0 ;;
|
|
740
|
+
--api-key)
|
|
741
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
742
|
+
return 0 ;;
|
|
743
|
+
esac
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
_postman_dataset_view() {
|
|
652
747
|
if [[ -z "$subcmd" ]]; then
|
|
653
748
|
if [[ "$cur" == -* ]]; then
|
|
654
749
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
655
750
|
else
|
|
656
|
-
COMPREPLY=( $(compgen -W "
|
|
751
|
+
COMPREPLY=( $(compgen -W "list run create delete update" -- "$cur") )
|
|
657
752
|
fi
|
|
658
753
|
return 0
|
|
659
754
|
fi
|
|
660
755
|
case "$subcmd" in
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
756
|
+
list) _postman_dataset_view_list ;;
|
|
757
|
+
run) _postman_dataset_view_run ;;
|
|
758
|
+
create) _postman_dataset_view_create ;;
|
|
759
|
+
delete) _postman_dataset_view_delete ;;
|
|
760
|
+
update) _postman_dataset_view_update ;;
|
|
664
761
|
esac
|
|
665
762
|
}
|
|
666
763
|
|
|
667
|
-
|
|
764
|
+
_postman_dataset_view_list() {
|
|
668
765
|
if [[ "$cur" == -* ]]; then
|
|
669
|
-
COMPREPLY=( $(compgen -W "
|
|
766
|
+
COMPREPLY=( $(compgen -W "-d --dataset --api-key --json -h --help" -- "$cur") )
|
|
670
767
|
return 0
|
|
671
768
|
fi
|
|
672
769
|
case "$prev" in
|
|
673
|
-
--key)
|
|
674
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
675
|
-
return 0 ;;
|
|
676
|
-
--ssl-extra-ca-certs)
|
|
770
|
+
--api-key)
|
|
677
771
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
678
772
|
return 0 ;;
|
|
679
|
-
--dataset-jdbc-driver-dir)
|
|
680
|
-
COMPREPLY=( $(compgen -d -- "$cur") )
|
|
681
|
-
return 0 ;;
|
|
682
773
|
esac
|
|
683
774
|
}
|
|
684
775
|
|
|
685
|
-
|
|
776
|
+
_postman_dataset_view_run() {
|
|
686
777
|
if [[ "$cur" == -* ]]; then
|
|
687
|
-
COMPREPLY=( $(compgen -W "
|
|
778
|
+
COMPREPLY=( $(compgen -W "-d --dataset -p --param --api-key --json --debug -h --help" -- "$cur") )
|
|
688
779
|
return 0
|
|
689
780
|
fi
|
|
690
781
|
case "$prev" in
|
|
@@ -694,9 +785,9 @@ _postman_runner_list() {
|
|
|
694
785
|
esac
|
|
695
786
|
}
|
|
696
787
|
|
|
697
|
-
|
|
788
|
+
_postman_dataset_view_create() {
|
|
698
789
|
if [[ "$cur" == -* ]]; then
|
|
699
|
-
COMPREPLY=( $(compgen -W "--
|
|
790
|
+
COMPREPLY=( $(compgen -W "-d --dataset -n --name -q --query -s --source --view-id --json --api-key -h --help" -- "$cur") )
|
|
700
791
|
return 0
|
|
701
792
|
fi
|
|
702
793
|
case "$prev" in
|
|
@@ -706,39 +797,9 @@ _postman_runner_regions() {
|
|
|
706
797
|
esac
|
|
707
798
|
}
|
|
708
799
|
|
|
709
|
-
|
|
710
|
-
if [[ -z "$subcmd" ]]; then
|
|
711
|
-
if [[ "$cur" == -* ]]; then
|
|
712
|
-
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
713
|
-
else
|
|
714
|
-
COMPREPLY=( $(compgen -W "lint list get file create generate sync delete" -- "$cur") )
|
|
715
|
-
fi
|
|
716
|
-
return 0
|
|
717
|
-
fi
|
|
718
|
-
case "$subcmd" in
|
|
719
|
-
lint) _postman_spec_lint ;;
|
|
720
|
-
list) _postman_spec_list ;;
|
|
721
|
-
get) _postman_spec_get ;;
|
|
722
|
-
file) _postman_spec_file ;;
|
|
723
|
-
create) _postman_spec_create ;;
|
|
724
|
-
generate) _postman_spec_generate ;;
|
|
725
|
-
sync) _postman_spec_sync ;;
|
|
726
|
-
delete) _postman_spec_delete ;;
|
|
727
|
-
esac
|
|
728
|
-
}
|
|
729
|
-
|
|
730
|
-
_postman_spec_lint() {
|
|
731
|
-
if [[ "$cur" == -* ]]; then
|
|
732
|
-
COMPREPLY=( $(compgen -W "-f --fail-severity -o --output --workspace-id --report-events --no-report-events -h --help" -- "$cur") )
|
|
733
|
-
return 0
|
|
734
|
-
fi
|
|
735
|
-
case "$prev" in
|
|
736
|
-
esac
|
|
737
|
-
}
|
|
738
|
-
|
|
739
|
-
_postman_spec_list() {
|
|
800
|
+
_postman_dataset_view_delete() {
|
|
740
801
|
if [[ "$cur" == -* ]]; then
|
|
741
|
-
COMPREPLY=( $(compgen -W "-
|
|
802
|
+
COMPREPLY=( $(compgen -W "-d --dataset --api-key -h --help" -- "$cur") )
|
|
742
803
|
return 0
|
|
743
804
|
fi
|
|
744
805
|
case "$prev" in
|
|
@@ -746,12 +807,11 @@ _postman_spec_list() {
|
|
|
746
807
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
747
808
|
return 0 ;;
|
|
748
809
|
esac
|
|
749
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
750
810
|
}
|
|
751
811
|
|
|
752
|
-
|
|
812
|
+
_postman_dataset_view_update() {
|
|
753
813
|
if [[ "$cur" == -* ]]; then
|
|
754
|
-
COMPREPLY=( $(compgen -W "--
|
|
814
|
+
COMPREPLY=( $(compgen -W "-d --dataset -n --name -q --query --api-key -h --help" -- "$cur") )
|
|
755
815
|
return 0
|
|
756
816
|
fi
|
|
757
817
|
case "$prev" in
|
|
@@ -761,659 +821,781 @@ _postman_spec_get() {
|
|
|
761
821
|
esac
|
|
762
822
|
}
|
|
763
823
|
|
|
764
|
-
|
|
824
|
+
_postman_dataset_jdbc() {
|
|
765
825
|
if [[ -z "$subcmd" ]]; then
|
|
766
826
|
if [[ "$cur" == -* ]]; then
|
|
767
827
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
768
828
|
else
|
|
769
|
-
COMPREPLY=( $(compgen -W "
|
|
829
|
+
COMPREPLY=( $(compgen -W "inspect" -- "$cur") )
|
|
770
830
|
fi
|
|
771
831
|
return 0
|
|
772
832
|
fi
|
|
773
833
|
case "$subcmd" in
|
|
774
|
-
|
|
775
|
-
update) _postman_spec_file_update ;;
|
|
776
|
-
rm) _postman_spec_file_rm ;;
|
|
834
|
+
inspect) _postman_dataset_jdbc_inspect ;;
|
|
777
835
|
esac
|
|
778
836
|
}
|
|
779
837
|
|
|
780
|
-
|
|
838
|
+
_postman_dataset_jdbc_inspect() {
|
|
781
839
|
if [[ "$cur" == -* ]]; then
|
|
782
|
-
COMPREPLY=( $(compgen -W "-
|
|
840
|
+
COMPREPLY=( $(compgen -W "--driver-class --url-template --java-path --json -h --help" -- "$cur") )
|
|
783
841
|
return 0
|
|
784
842
|
fi
|
|
785
843
|
case "$prev" in
|
|
786
|
-
--
|
|
787
|
-
_postman_filematch '!*.@(
|
|
844
|
+
--java-path)
|
|
845
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
788
846
|
return 0 ;;
|
|
789
847
|
esac
|
|
790
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
791
848
|
}
|
|
792
849
|
|
|
793
|
-
|
|
794
|
-
if [[ "$
|
|
795
|
-
|
|
850
|
+
_postman_environment() {
|
|
851
|
+
if [[ -z "$subcmd" ]]; then
|
|
852
|
+
if [[ "$cur" == -* ]]; then
|
|
853
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
854
|
+
else
|
|
855
|
+
COMPREPLY=( $(compgen -W "new list get delete var lint" -- "$cur") )
|
|
856
|
+
fi
|
|
796
857
|
return 0
|
|
797
858
|
fi
|
|
798
|
-
case "$
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
859
|
+
case "$subcmd" in
|
|
860
|
+
new) _postman_environment_new ;;
|
|
861
|
+
list) _postman_environment_list ;;
|
|
862
|
+
get) _postman_environment_get ;;
|
|
863
|
+
delete) _postman_environment_delete ;;
|
|
864
|
+
var) _postman_environment_var ;;
|
|
865
|
+
lint) _postman_environment_lint ;;
|
|
802
866
|
esac
|
|
803
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
804
867
|
}
|
|
805
868
|
|
|
806
|
-
|
|
869
|
+
_postman_environment_new() {
|
|
807
870
|
if [[ "$cur" == -* ]]; then
|
|
808
|
-
COMPREPLY=( $(compgen -W "-
|
|
871
|
+
COMPREPLY=( $(compgen -W "-w --workspace --force --verbose --json -h --help" -- "$cur") )
|
|
809
872
|
return 0
|
|
810
873
|
fi
|
|
811
874
|
case "$prev" in
|
|
812
|
-
--api-key)
|
|
813
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
814
|
-
return 0 ;;
|
|
815
875
|
esac
|
|
816
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
817
876
|
}
|
|
818
877
|
|
|
819
|
-
|
|
878
|
+
_postman_environment_list() {
|
|
820
879
|
if [[ "$cur" == -* ]]; then
|
|
821
|
-
COMPREPLY=( $(compgen -W "-
|
|
880
|
+
COMPREPLY=( $(compgen -W "-w --workspace -f --filter --verbose --json -h --help" -- "$cur") )
|
|
822
881
|
return 0
|
|
823
882
|
fi
|
|
824
883
|
case "$prev" in
|
|
825
|
-
--api-key)
|
|
826
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
827
|
-
return 0 ;;
|
|
828
884
|
esac
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
_postman_environment_get() {
|
|
888
|
+
if [[ "$cur" == -* ]]; then
|
|
889
|
+
COMPREPLY=( $(compgen -W "--verbose --json -h --help" -- "$cur") )
|
|
890
|
+
return 0
|
|
891
|
+
fi
|
|
829
892
|
_postman_filematch '!*.@(json)' "$cur"
|
|
830
893
|
}
|
|
831
894
|
|
|
832
|
-
|
|
895
|
+
_postman_environment_delete() {
|
|
896
|
+
if [[ "$cur" == -* ]]; then
|
|
897
|
+
COMPREPLY=( $(compgen -W "-y --yes --verbose --json -h --help" -- "$cur") )
|
|
898
|
+
return 0
|
|
899
|
+
fi
|
|
900
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
_postman_environment_var() {
|
|
833
904
|
if [[ -z "$subcmd" ]]; then
|
|
834
905
|
if [[ "$cur" == -* ]]; then
|
|
835
906
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
836
907
|
else
|
|
837
|
-
COMPREPLY=( $(compgen -W "
|
|
908
|
+
COMPREPLY=( $(compgen -W "set get unset" -- "$cur") )
|
|
838
909
|
fi
|
|
839
910
|
return 0
|
|
840
911
|
fi
|
|
841
912
|
case "$subcmd" in
|
|
842
|
-
|
|
913
|
+
set) _postman_environment_var_set ;;
|
|
914
|
+
get) _postman_environment_var_get ;;
|
|
915
|
+
unset) _postman_environment_var_unset ;;
|
|
843
916
|
esac
|
|
844
917
|
}
|
|
845
918
|
|
|
846
|
-
|
|
919
|
+
_postman_environment_var_set() {
|
|
847
920
|
if [[ "$cur" == -* ]]; then
|
|
848
|
-
COMPREPLY=( $(compgen -W "-
|
|
921
|
+
COMPREPLY=( $(compgen -W "-e --environment --secret-id --vault-id -w --workspace --verbose --json -h --help" -- "$cur") )
|
|
849
922
|
return 0
|
|
850
923
|
fi
|
|
851
924
|
case "$prev" in
|
|
852
|
-
|
|
853
|
-
_postman_filematch '!*.@(
|
|
925
|
+
-e|--environment)
|
|
926
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
854
927
|
return 0 ;;
|
|
855
928
|
esac
|
|
856
929
|
}
|
|
857
930
|
|
|
858
|
-
|
|
859
|
-
if [[
|
|
860
|
-
|
|
861
|
-
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
862
|
-
else
|
|
863
|
-
COMPREPLY=( $(compgen -W "collection" -- "$cur") )
|
|
864
|
-
fi
|
|
931
|
+
_postman_environment_var_get() {
|
|
932
|
+
if [[ "$cur" == -* ]]; then
|
|
933
|
+
COMPREPLY=( $(compgen -W "-e --environment --verbose --json -h --help" -- "$cur") )
|
|
865
934
|
return 0
|
|
866
935
|
fi
|
|
867
|
-
case "$
|
|
868
|
-
|
|
936
|
+
case "$prev" in
|
|
937
|
+
-e|--environment)
|
|
938
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
939
|
+
return 0 ;;
|
|
869
940
|
esac
|
|
941
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
870
942
|
}
|
|
871
943
|
|
|
872
|
-
|
|
944
|
+
_postman_environment_var_unset() {
|
|
873
945
|
if [[ "$cur" == -* ]]; then
|
|
874
|
-
COMPREPLY=( $(compgen -W "
|
|
946
|
+
COMPREPLY=( $(compgen -W "-e --environment --verbose --json -h --help" -- "$cur") )
|
|
875
947
|
return 0
|
|
876
948
|
fi
|
|
877
949
|
case "$prev" in
|
|
878
|
-
|
|
879
|
-
_postman_filematch '!*.@(
|
|
950
|
+
-e|--environment)
|
|
951
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
880
952
|
return 0 ;;
|
|
881
953
|
esac
|
|
954
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
882
955
|
}
|
|
883
956
|
|
|
884
|
-
|
|
957
|
+
_postman_environment_lint() {
|
|
885
958
|
if [[ "$cur" == -* ]]; then
|
|
886
|
-
COMPREPLY=( $(compgen -W "-
|
|
959
|
+
COMPREPLY=( $(compgen -W "-f --fail-severity -o --output -h --help" -- "$cur") )
|
|
887
960
|
return 0
|
|
888
961
|
fi
|
|
889
962
|
case "$prev" in
|
|
890
|
-
--api-key)
|
|
891
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
892
|
-
return 0 ;;
|
|
893
963
|
esac
|
|
964
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
894
965
|
}
|
|
895
966
|
|
|
896
|
-
|
|
967
|
+
_postman_flows() {
|
|
897
968
|
if [[ -z "$subcmd" ]]; then
|
|
898
969
|
if [[ "$cur" == -* ]]; then
|
|
899
970
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
900
971
|
else
|
|
901
|
-
COMPREPLY=( $(compgen -W "
|
|
972
|
+
COMPREPLY=( $(compgen -W "list trigger deploy run update list-runs get-run" -- "$cur") )
|
|
902
973
|
fi
|
|
903
974
|
return 0
|
|
904
975
|
fi
|
|
905
976
|
case "$subcmd" in
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
runs)
|
|
912
|
-
|
|
913
|
-
get) _postman_monitor_get ;;
|
|
914
|
-
metrics) _postman_monitor_metrics ;;
|
|
915
|
-
pause) _postman_monitor_pause ;;
|
|
916
|
-
resume) _postman_monitor_resume ;;
|
|
977
|
+
list) _postman_flows_list ;;
|
|
978
|
+
trigger) _postman_flows_trigger ;;
|
|
979
|
+
deploy) _postman_flows_deploy ;;
|
|
980
|
+
run) _postman_flows_run ;;
|
|
981
|
+
update) _postman_flows_update ;;
|
|
982
|
+
list-runs) _postman_flows_list_runs ;;
|
|
983
|
+
get-run) _postman_flows_get_run ;;
|
|
917
984
|
esac
|
|
918
985
|
}
|
|
919
986
|
|
|
920
|
-
|
|
987
|
+
_postman_flows_list() {
|
|
921
988
|
if [[ "$cur" == -* ]]; then
|
|
922
|
-
COMPREPLY=( $(compgen -W "
|
|
989
|
+
COMPREPLY=( $(compgen -W "-w --workspace -p --paginate -f --filter -s --sort --verbose --debug --json -h --help" -- "$cur") )
|
|
923
990
|
return 0
|
|
924
991
|
fi
|
|
925
992
|
case "$prev" in
|
|
926
|
-
--api-key)
|
|
927
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
928
|
-
return 0 ;;
|
|
929
993
|
esac
|
|
930
994
|
}
|
|
931
995
|
|
|
932
|
-
|
|
996
|
+
_postman_flows_trigger() {
|
|
933
997
|
if [[ "$cur" == -* ]]; then
|
|
934
|
-
COMPREPLY=( $(compgen -W "-
|
|
998
|
+
COMPREPLY=( $(compgen -W "-i --input -f --input-file -q --query --headers -n --dry-run --show-secrets -r --result -s --scenario --verbose --debug --json -h --help" -- "$cur") )
|
|
935
999
|
return 0
|
|
936
1000
|
fi
|
|
937
1001
|
case "$prev" in
|
|
938
|
-
|
|
1002
|
+
-i|--input)
|
|
1003
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1004
|
+
return 0 ;;
|
|
1005
|
+
-f|--input-file)
|
|
1006
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1007
|
+
return 0 ;;
|
|
1008
|
+
-q|--query)
|
|
1009
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1010
|
+
return 0 ;;
|
|
1011
|
+
--headers)
|
|
939
1012
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
940
1013
|
return 0 ;;
|
|
941
1014
|
esac
|
|
942
1015
|
}
|
|
943
1016
|
|
|
944
|
-
|
|
1017
|
+
_postman_flows_deploy() {
|
|
945
1018
|
if [[ "$cur" == -* ]]; then
|
|
946
|
-
COMPREPLY=( $(compgen -W "
|
|
1019
|
+
COMPREPLY=( $(compgen -W "-p --path -t --timeout -a --auth --verbose --debug --json -h --help" -- "$cur") )
|
|
947
1020
|
return 0
|
|
948
1021
|
fi
|
|
949
1022
|
case "$prev" in
|
|
950
|
-
|
|
951
|
-
_postman_filematch '!*.@(
|
|
1023
|
+
-p|--path)
|
|
1024
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
952
1025
|
return 0 ;;
|
|
953
1026
|
esac
|
|
954
1027
|
}
|
|
955
1028
|
|
|
956
|
-
|
|
1029
|
+
_postman_flows_run() {
|
|
957
1030
|
if [[ "$cur" == -* ]]; then
|
|
958
|
-
COMPREPLY=( $(compgen -W "-
|
|
1031
|
+
COMPREPLY=( $(compgen -W "-i --input -f --input-file -s --scenario --iteration-data-dataset --iteration-data-view -m --map-column -e --environment --working-dir --no-insecure-file-read --verbose --no-truncate --output --reporters -x --suppress-exit-code --workspace --report-events --no-report-events --verbose --debug --json -h --help" -- "$cur") )
|
|
959
1032
|
return 0
|
|
960
1033
|
fi
|
|
961
1034
|
case "$prev" in
|
|
962
|
-
|
|
1035
|
+
-i|--input)
|
|
963
1036
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
964
1037
|
return 0 ;;
|
|
1038
|
+
-f|--input-file)
|
|
1039
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1040
|
+
return 0 ;;
|
|
1041
|
+
--iteration-data-dataset)
|
|
1042
|
+
_postman_filematch '!*.@(json|csv)' "$cur"
|
|
1043
|
+
return 0 ;;
|
|
1044
|
+
-e|--environment)
|
|
1045
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1046
|
+
return 0 ;;
|
|
1047
|
+
--working-dir)
|
|
1048
|
+
COMPREPLY=( $(compgen -d -- "$cur") )
|
|
1049
|
+
return 0 ;;
|
|
965
1050
|
esac
|
|
1051
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
966
1052
|
}
|
|
967
1053
|
|
|
968
|
-
|
|
969
|
-
if [[
|
|
970
|
-
|
|
971
|
-
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
972
|
-
else
|
|
973
|
-
COMPREPLY=( $(compgen -W "list get" -- "$cur") )
|
|
974
|
-
fi
|
|
1054
|
+
_postman_flows_update() {
|
|
1055
|
+
if [[ "$cur" == -* ]]; then
|
|
1056
|
+
COMPREPLY=( $(compgen -W "-t --trigger -a --auth --verbose --debug --json -h --help" -- "$cur") )
|
|
975
1057
|
return 0
|
|
976
1058
|
fi
|
|
977
|
-
case "$
|
|
978
|
-
list) _postman_monitor_jobs_list ;;
|
|
979
|
-
get) _postman_monitor_jobs_get ;;
|
|
1059
|
+
case "$prev" in
|
|
980
1060
|
esac
|
|
981
1061
|
}
|
|
982
1062
|
|
|
983
|
-
|
|
1063
|
+
_postman_flows_list_runs() {
|
|
984
1064
|
if [[ "$cur" == -* ]]; then
|
|
985
|
-
COMPREPLY=( $(compgen -W "
|
|
1065
|
+
COMPREPLY=( $(compgen -W "-w --workspace -f --flow -r --range --verbose --debug --json -h --help" -- "$cur") )
|
|
986
1066
|
return 0
|
|
987
1067
|
fi
|
|
988
1068
|
case "$prev" in
|
|
989
|
-
--api-key)
|
|
990
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
991
|
-
return 0 ;;
|
|
992
1069
|
esac
|
|
993
1070
|
}
|
|
994
1071
|
|
|
995
|
-
|
|
1072
|
+
_postman_flows_get_run() {
|
|
996
1073
|
if [[ "$cur" == -* ]]; then
|
|
997
|
-
COMPREPLY=( $(compgen -W "--
|
|
1074
|
+
COMPREPLY=( $(compgen -W "-r --run-id -l --logs --filter --verbose --debug --json -h --help" -- "$cur") )
|
|
998
1075
|
return 0
|
|
999
1076
|
fi
|
|
1000
1077
|
case "$prev" in
|
|
1001
|
-
--api-key)
|
|
1002
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1003
|
-
return 0 ;;
|
|
1004
1078
|
esac
|
|
1005
1079
|
}
|
|
1006
1080
|
|
|
1007
|
-
|
|
1081
|
+
_postman_globals() {
|
|
1008
1082
|
if [[ -z "$subcmd" ]]; then
|
|
1009
1083
|
if [[ "$cur" == -* ]]; then
|
|
1010
1084
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1011
1085
|
else
|
|
1012
|
-
COMPREPLY=( $(compgen -W "get" -- "$cur") )
|
|
1086
|
+
COMPREPLY=( $(compgen -W "get var lint" -- "$cur") )
|
|
1013
1087
|
fi
|
|
1014
1088
|
return 0
|
|
1015
1089
|
fi
|
|
1016
1090
|
case "$subcmd" in
|
|
1017
|
-
get)
|
|
1091
|
+
get) _postman_globals_get ;;
|
|
1092
|
+
var) _postman_globals_var ;;
|
|
1093
|
+
lint) _postman_globals_lint ;;
|
|
1018
1094
|
esac
|
|
1019
1095
|
}
|
|
1020
1096
|
|
|
1021
|
-
|
|
1097
|
+
_postman_globals_get() {
|
|
1022
1098
|
if [[ "$cur" == -* ]]; then
|
|
1023
|
-
COMPREPLY=( $(compgen -W "
|
|
1099
|
+
COMPREPLY=( $(compgen -W "-w --workspace --workspace-path --verbose --json -h --help" -- "$cur") )
|
|
1024
1100
|
return 0
|
|
1025
1101
|
fi
|
|
1026
1102
|
case "$prev" in
|
|
1027
|
-
--
|
|
1028
|
-
_postman_filematch '!*.@(
|
|
1103
|
+
--workspace-path)
|
|
1104
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1029
1105
|
return 0 ;;
|
|
1030
1106
|
esac
|
|
1031
1107
|
}
|
|
1032
1108
|
|
|
1033
|
-
|
|
1034
|
-
if [[ "$
|
|
1035
|
-
|
|
1109
|
+
_postman_globals_var() {
|
|
1110
|
+
if [[ -z "$subcmd" ]]; then
|
|
1111
|
+
if [[ "$cur" == -* ]]; then
|
|
1112
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1113
|
+
else
|
|
1114
|
+
COMPREPLY=( $(compgen -W "set get unset" -- "$cur") )
|
|
1115
|
+
fi
|
|
1036
1116
|
return 0
|
|
1037
1117
|
fi
|
|
1038
|
-
case "$
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1118
|
+
case "$subcmd" in
|
|
1119
|
+
set) _postman_globals_var_set ;;
|
|
1120
|
+
get) _postman_globals_var_get ;;
|
|
1121
|
+
unset) _postman_globals_var_unset ;;
|
|
1042
1122
|
esac
|
|
1043
1123
|
}
|
|
1044
1124
|
|
|
1045
|
-
|
|
1125
|
+
_postman_globals_var_set() {
|
|
1046
1126
|
if [[ "$cur" == -* ]]; then
|
|
1047
|
-
COMPREPLY=( $(compgen -W "--
|
|
1127
|
+
COMPREPLY=( $(compgen -W "-w --workspace --secret-id --vault-id --workspace-path --verbose --json -h --help" -- "$cur") )
|
|
1048
1128
|
return 0
|
|
1049
1129
|
fi
|
|
1050
1130
|
case "$prev" in
|
|
1051
|
-
--
|
|
1052
|
-
_postman_filematch '!*.@(
|
|
1131
|
+
--workspace-path)
|
|
1132
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1053
1133
|
return 0 ;;
|
|
1054
1134
|
esac
|
|
1055
1135
|
}
|
|
1056
1136
|
|
|
1057
|
-
|
|
1137
|
+
_postman_globals_var_get() {
|
|
1058
1138
|
if [[ "$cur" == -* ]]; then
|
|
1059
|
-
COMPREPLY=( $(compgen -W "
|
|
1139
|
+
COMPREPLY=( $(compgen -W "-w --workspace --workspace-path --verbose --json -h --help" -- "$cur") )
|
|
1060
1140
|
return 0
|
|
1061
1141
|
fi
|
|
1062
1142
|
case "$prev" in
|
|
1063
|
-
--
|
|
1064
|
-
_postman_filematch '!*.@(
|
|
1143
|
+
--workspace-path)
|
|
1144
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1065
1145
|
return 0 ;;
|
|
1066
1146
|
esac
|
|
1147
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1067
1148
|
}
|
|
1068
1149
|
|
|
1069
|
-
|
|
1150
|
+
_postman_globals_var_unset() {
|
|
1070
1151
|
if [[ "$cur" == -* ]]; then
|
|
1071
|
-
COMPREPLY=( $(compgen -W "--
|
|
1152
|
+
COMPREPLY=( $(compgen -W "-w --workspace --workspace-path --verbose --json -h --help" -- "$cur") )
|
|
1072
1153
|
return 0
|
|
1073
1154
|
fi
|
|
1074
1155
|
case "$prev" in
|
|
1075
|
-
--
|
|
1076
|
-
_postman_filematch '!*.@(
|
|
1156
|
+
--workspace-path)
|
|
1157
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1077
1158
|
return 0 ;;
|
|
1078
1159
|
esac
|
|
1160
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1079
1161
|
}
|
|
1080
1162
|
|
|
1081
|
-
|
|
1163
|
+
_postman_globals_lint() {
|
|
1082
1164
|
if [[ "$cur" == -* ]]; then
|
|
1083
|
-
COMPREPLY=( $(compgen -W "--
|
|
1165
|
+
COMPREPLY=( $(compgen -W "-f --fail-severity -o --output -h --help" -- "$cur") )
|
|
1084
1166
|
return 0
|
|
1085
1167
|
fi
|
|
1086
1168
|
case "$prev" in
|
|
1087
|
-
--api-key)
|
|
1088
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1089
|
-
return 0 ;;
|
|
1090
1169
|
esac
|
|
1170
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1091
1171
|
}
|
|
1092
1172
|
|
|
1093
|
-
|
|
1173
|
+
_postman_mock() {
|
|
1094
1174
|
if [[ -z "$subcmd" ]]; then
|
|
1095
1175
|
if [[ "$cur" == -* ]]; then
|
|
1096
1176
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1097
1177
|
else
|
|
1098
|
-
COMPREPLY=( $(compgen -W "
|
|
1178
|
+
COMPREPLY=( $(compgen -W "generate run push deploy get list log delete" -- "$cur") )
|
|
1099
1179
|
fi
|
|
1100
1180
|
return 0
|
|
1101
1181
|
fi
|
|
1102
1182
|
case "$subcmd" in
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
push)
|
|
1106
|
-
|
|
1107
|
-
get)
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
connect-git) _postman_workspace_connect_git ;;
|
|
1112
|
-
disconnect-git) _postman_workspace_disconnect_git ;;
|
|
1113
|
-
diff) _postman_workspace_diff ;;
|
|
1183
|
+
generate) _postman_mock_generate ;;
|
|
1184
|
+
run) _postman_mock_run ;;
|
|
1185
|
+
push) _postman_mock_push ;;
|
|
1186
|
+
deploy) _postman_mock_deploy ;;
|
|
1187
|
+
get) _postman_mock_get ;;
|
|
1188
|
+
list) _postman_mock_list ;;
|
|
1189
|
+
log) _postman_mock_log ;;
|
|
1190
|
+
delete) _postman_mock_delete ;;
|
|
1114
1191
|
esac
|
|
1115
1192
|
}
|
|
1116
1193
|
|
|
1117
|
-
|
|
1194
|
+
_postman_mock_generate() {
|
|
1118
1195
|
if [[ "$cur" == -* ]]; then
|
|
1119
|
-
COMPREPLY=( $(compgen -W "-
|
|
1196
|
+
COMPREPLY=( $(compgen -W "-o --output -n --name --port --force -u --update -w --workspace --api-key -x --suppress-exit-code -h --help" -- "$cur") )
|
|
1120
1197
|
return 0
|
|
1121
1198
|
fi
|
|
1122
1199
|
case "$prev" in
|
|
1200
|
+
-o|--output)
|
|
1201
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1202
|
+
return 0 ;;
|
|
1203
|
+
-u|--update)
|
|
1204
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1205
|
+
return 0 ;;
|
|
1206
|
+
--api-key)
|
|
1207
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1208
|
+
return 0 ;;
|
|
1123
1209
|
esac
|
|
1124
1210
|
}
|
|
1125
1211
|
|
|
1126
|
-
|
|
1212
|
+
_postman_mock_run() {
|
|
1127
1213
|
if [[ "$cur" == -* ]]; then
|
|
1128
|
-
COMPREPLY=( $(compgen -W "--
|
|
1214
|
+
COMPREPLY=( $(compgen -W "-e --environment -g --globals -p --port --api-key -w --workspace --no-history --output --dataset -h --help" -- "$cur") )
|
|
1129
1215
|
return 0
|
|
1130
1216
|
fi
|
|
1217
|
+
case "$prev" in
|
|
1218
|
+
-e|--environment)
|
|
1219
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1220
|
+
return 0 ;;
|
|
1221
|
+
-g|--globals)
|
|
1222
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1223
|
+
return 0 ;;
|
|
1224
|
+
--api-key)
|
|
1225
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1226
|
+
return 0 ;;
|
|
1227
|
+
--dataset)
|
|
1228
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1229
|
+
return 0 ;;
|
|
1230
|
+
esac
|
|
1231
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1131
1232
|
}
|
|
1132
1233
|
|
|
1133
|
-
|
|
1234
|
+
_postman_mock_push() {
|
|
1134
1235
|
if [[ "$cur" == -* ]]; then
|
|
1135
|
-
COMPREPLY=( $(compgen -W "
|
|
1236
|
+
COMPREPLY=( $(compgen -W "-w --workspace --api-key -h --help" -- "$cur") )
|
|
1136
1237
|
return 0
|
|
1137
1238
|
fi
|
|
1138
1239
|
case "$prev" in
|
|
1240
|
+
--api-key)
|
|
1241
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1242
|
+
return 0 ;;
|
|
1139
1243
|
esac
|
|
1244
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1140
1245
|
}
|
|
1141
1246
|
|
|
1142
|
-
|
|
1247
|
+
_postman_mock_deploy() {
|
|
1143
1248
|
if [[ "$cur" == -* ]]; then
|
|
1144
|
-
COMPREPLY=( $(compgen -W "-
|
|
1249
|
+
COMPREPLY=( $(compgen -W "-w --workspace -n --name -s --slug --public --auto-deploy -y --yes --api-key -h --help" -- "$cur") )
|
|
1145
1250
|
return 0
|
|
1146
1251
|
fi
|
|
1147
1252
|
case "$prev" in
|
|
1253
|
+
--api-key)
|
|
1254
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1255
|
+
return 0 ;;
|
|
1148
1256
|
esac
|
|
1257
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1149
1258
|
}
|
|
1150
1259
|
|
|
1151
|
-
|
|
1260
|
+
_postman_mock_get() {
|
|
1152
1261
|
if [[ "$cur" == -* ]]; then
|
|
1153
|
-
COMPREPLY=( $(compgen -W "--
|
|
1262
|
+
COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
|
|
1154
1263
|
return 0
|
|
1155
1264
|
fi
|
|
1156
1265
|
case "$prev" in
|
|
1266
|
+
--api-key)
|
|
1267
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1268
|
+
return 0 ;;
|
|
1157
1269
|
esac
|
|
1270
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1158
1271
|
}
|
|
1159
1272
|
|
|
1160
|
-
|
|
1273
|
+
_postman_mock_list() {
|
|
1161
1274
|
if [[ "$cur" == -* ]]; then
|
|
1162
|
-
COMPREPLY=( $(compgen -W "
|
|
1275
|
+
COMPREPLY=( $(compgen -W "-w --workspace --api-key --json -h --help" -- "$cur") )
|
|
1163
1276
|
return 0
|
|
1164
1277
|
fi
|
|
1165
1278
|
case "$prev" in
|
|
1166
|
-
--
|
|
1167
|
-
_postman_filematch '!*.@(
|
|
1279
|
+
--api-key)
|
|
1280
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1168
1281
|
return 0 ;;
|
|
1169
1282
|
esac
|
|
1283
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1170
1284
|
}
|
|
1171
1285
|
|
|
1172
|
-
|
|
1286
|
+
_postman_mock_log() {
|
|
1173
1287
|
if [[ "$cur" == -* ]]; then
|
|
1174
|
-
COMPREPLY=( $(compgen -W "
|
|
1288
|
+
COMPREPLY=( $(compgen -W "--limit --method --status --path --since --until --api-key --json -h --help" -- "$cur") )
|
|
1175
1289
|
return 0
|
|
1176
1290
|
fi
|
|
1177
1291
|
case "$prev" in
|
|
1292
|
+
--api-key)
|
|
1293
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1294
|
+
return 0 ;;
|
|
1178
1295
|
esac
|
|
1296
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1179
1297
|
}
|
|
1180
1298
|
|
|
1181
|
-
|
|
1299
|
+
_postman_mock_delete() {
|
|
1182
1300
|
if [[ "$cur" == -* ]]; then
|
|
1183
|
-
COMPREPLY=( $(compgen -W "-y --yes --
|
|
1301
|
+
COMPREPLY=( $(compgen -W "-y --yes --api-key -h --help" -- "$cur") )
|
|
1184
1302
|
return 0
|
|
1185
1303
|
fi
|
|
1186
1304
|
case "$prev" in
|
|
1305
|
+
--api-key)
|
|
1306
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1307
|
+
return 0 ;;
|
|
1187
1308
|
esac
|
|
1309
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1188
1310
|
}
|
|
1189
1311
|
|
|
1190
|
-
|
|
1191
|
-
if [[ "$
|
|
1192
|
-
|
|
1312
|
+
_postman_monitor() {
|
|
1313
|
+
if [[ -z "$subcmd" ]]; then
|
|
1314
|
+
if [[ "$cur" == -* ]]; then
|
|
1315
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1316
|
+
else
|
|
1317
|
+
COMPREPLY=( $(compgen -W "run create update delete jobs runs list get metrics pause resume" -- "$cur") )
|
|
1318
|
+
fi
|
|
1193
1319
|
return 0
|
|
1194
1320
|
fi
|
|
1195
|
-
|
|
1321
|
+
case "$subcmd" in
|
|
1322
|
+
run) _postman_monitor_run ;;
|
|
1323
|
+
create) _postman_monitor_create ;;
|
|
1324
|
+
update) _postman_monitor_update ;;
|
|
1325
|
+
delete) _postman_monitor_delete ;;
|
|
1326
|
+
jobs) _postman_monitor_jobs ;;
|
|
1327
|
+
runs) _postman_monitor_runs ;;
|
|
1328
|
+
list) _postman_monitor_list ;;
|
|
1329
|
+
get) _postman_monitor_get ;;
|
|
1330
|
+
metrics) _postman_monitor_metrics ;;
|
|
1331
|
+
pause) _postman_monitor_pause ;;
|
|
1332
|
+
resume) _postman_monitor_resume ;;
|
|
1333
|
+
esac
|
|
1196
1334
|
}
|
|
1197
1335
|
|
|
1198
|
-
|
|
1336
|
+
_postman_monitor_run() {
|
|
1199
1337
|
if [[ "$cur" == -* ]]; then
|
|
1200
|
-
COMPREPLY=( $(compgen -W "-
|
|
1338
|
+
COMPREPLY=( $(compgen -W "--api-key -x --suppress-exit-code -t --timeout --async --json -h --help" -- "$cur") )
|
|
1201
1339
|
return 0
|
|
1202
1340
|
fi
|
|
1341
|
+
case "$prev" in
|
|
1342
|
+
--api-key)
|
|
1343
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1344
|
+
return 0 ;;
|
|
1345
|
+
esac
|
|
1203
1346
|
}
|
|
1204
1347
|
|
|
1205
|
-
|
|
1348
|
+
_postman_monitor_create() {
|
|
1206
1349
|
if [[ "$cur" == -* ]]; then
|
|
1207
|
-
COMPREPLY=( $(compgen -W "--
|
|
1350
|
+
COMPREPLY=( $(compgen -W "-c --collection --name -e --environment -w --workspace --schedule --timezone --runner -i --item --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") )
|
|
1208
1351
|
return 0
|
|
1209
1352
|
fi
|
|
1210
1353
|
case "$prev" in
|
|
1354
|
+
--api-key)
|
|
1355
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1356
|
+
return 0 ;;
|
|
1211
1357
|
esac
|
|
1212
1358
|
}
|
|
1213
1359
|
|
|
1214
|
-
|
|
1215
|
-
if [[
|
|
1216
|
-
|
|
1217
|
-
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1218
|
-
else
|
|
1219
|
-
COMPREPLY=( $(compgen -W "list" -- "$cur") )
|
|
1220
|
-
fi
|
|
1360
|
+
_postman_monitor_update() {
|
|
1361
|
+
if [[ "$cur" == -* ]]; then
|
|
1362
|
+
COMPREPLY=( $(compgen -W "--name --schedule --timezone --runner -i --item --clear-items --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") )
|
|
1221
1363
|
return 0
|
|
1222
1364
|
fi
|
|
1223
|
-
case "$
|
|
1224
|
-
|
|
1365
|
+
case "$prev" in
|
|
1366
|
+
--api-key)
|
|
1367
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1368
|
+
return 0 ;;
|
|
1225
1369
|
esac
|
|
1226
1370
|
}
|
|
1227
1371
|
|
|
1228
|
-
|
|
1372
|
+
_postman_monitor_delete() {
|
|
1229
1373
|
if [[ "$cur" == -* ]]; then
|
|
1230
|
-
COMPREPLY=( $(compgen -W "--
|
|
1374
|
+
COMPREPLY=( $(compgen -W "-y --yes --api-key --json -h --help" -- "$cur") )
|
|
1231
1375
|
return 0
|
|
1232
1376
|
fi
|
|
1233
1377
|
case "$prev" in
|
|
1378
|
+
--api-key)
|
|
1379
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1380
|
+
return 0 ;;
|
|
1234
1381
|
esac
|
|
1235
1382
|
}
|
|
1236
1383
|
|
|
1237
|
-
|
|
1384
|
+
_postman_monitor_jobs() {
|
|
1238
1385
|
if [[ -z "$subcmd" ]]; then
|
|
1239
1386
|
if [[ "$cur" == -* ]]; then
|
|
1240
1387
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1241
1388
|
else
|
|
1242
|
-
COMPREPLY=( $(compgen -W "
|
|
1389
|
+
COMPREPLY=( $(compgen -W "list get" -- "$cur") )
|
|
1243
1390
|
fi
|
|
1244
1391
|
return 0
|
|
1245
1392
|
fi
|
|
1246
1393
|
case "$subcmd" in
|
|
1247
|
-
|
|
1248
|
-
|
|
1394
|
+
list) _postman_monitor_jobs_list ;;
|
|
1395
|
+
get) _postman_monitor_jobs_get ;;
|
|
1249
1396
|
esac
|
|
1250
1397
|
}
|
|
1251
1398
|
|
|
1252
|
-
|
|
1399
|
+
_postman_monitor_jobs_list() {
|
|
1253
1400
|
if [[ "$cur" == -* ]]; then
|
|
1254
|
-
COMPREPLY=( $(compgen -W "
|
|
1401
|
+
COMPREPLY=( $(compgen -W "--api-key --result --trigger --since --limit --cursor --json -h --help" -- "$cur") )
|
|
1255
1402
|
return 0
|
|
1256
1403
|
fi
|
|
1257
1404
|
case "$prev" in
|
|
1258
|
-
--
|
|
1259
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1260
|
-
return 0 ;;
|
|
1261
|
-
--ssl-client-cert-list)
|
|
1262
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1263
|
-
return 0 ;;
|
|
1264
|
-
--ssl-client-cert)
|
|
1265
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1266
|
-
return 0 ;;
|
|
1267
|
-
--ssl-client-key)
|
|
1268
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1269
|
-
return 0 ;;
|
|
1270
|
-
--ssl-extra-ca-certs)
|
|
1405
|
+
--api-key)
|
|
1271
1406
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1272
1407
|
return 0 ;;
|
|
1273
|
-
--dataset)
|
|
1274
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1275
|
-
return 0 ;;
|
|
1276
1408
|
esac
|
|
1277
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1278
1409
|
}
|
|
1279
1410
|
|
|
1280
|
-
|
|
1411
|
+
_postman_monitor_jobs_get() {
|
|
1281
1412
|
if [[ "$cur" == -* ]]; then
|
|
1282
|
-
COMPREPLY=( $(compgen -W "
|
|
1413
|
+
COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
|
|
1283
1414
|
return 0
|
|
1284
1415
|
fi
|
|
1285
1416
|
case "$prev" in
|
|
1417
|
+
--api-key)
|
|
1418
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1419
|
+
return 0 ;;
|
|
1286
1420
|
esac
|
|
1287
1421
|
}
|
|
1288
1422
|
|
|
1289
|
-
|
|
1423
|
+
_postman_monitor_runs() {
|
|
1290
1424
|
if [[ -z "$subcmd" ]]; then
|
|
1291
1425
|
if [[ "$cur" == -* ]]; then
|
|
1292
1426
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1293
1427
|
else
|
|
1294
|
-
COMPREPLY=( $(compgen -W "
|
|
1428
|
+
COMPREPLY=( $(compgen -W "get" -- "$cur") )
|
|
1295
1429
|
fi
|
|
1296
1430
|
return 0
|
|
1297
1431
|
fi
|
|
1298
1432
|
case "$subcmd" in
|
|
1299
|
-
|
|
1300
|
-
trigger) _postman_flows_trigger ;;
|
|
1301
|
-
deploy) _postman_flows_deploy ;;
|
|
1302
|
-
run) _postman_flows_run ;;
|
|
1303
|
-
update) _postman_flows_update ;;
|
|
1304
|
-
list-runs) _postman_flows_list_runs ;;
|
|
1305
|
-
get-run) _postman_flows_get_run ;;
|
|
1433
|
+
get) _postman_monitor_runs_get ;;
|
|
1306
1434
|
esac
|
|
1307
1435
|
}
|
|
1308
1436
|
|
|
1309
|
-
|
|
1437
|
+
_postman_monitor_runs_get() {
|
|
1310
1438
|
if [[ "$cur" == -* ]]; then
|
|
1311
|
-
COMPREPLY=( $(compgen -W "
|
|
1439
|
+
COMPREPLY=( $(compgen -W "--api-key --attempt --failed-only --json -h --help" -- "$cur") )
|
|
1312
1440
|
return 0
|
|
1313
1441
|
fi
|
|
1314
1442
|
case "$prev" in
|
|
1443
|
+
--api-key)
|
|
1444
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1445
|
+
return 0 ;;
|
|
1315
1446
|
esac
|
|
1316
1447
|
}
|
|
1317
1448
|
|
|
1318
|
-
|
|
1449
|
+
_postman_monitor_list() {
|
|
1319
1450
|
if [[ "$cur" == -* ]]; then
|
|
1320
|
-
COMPREPLY=( $(compgen -W "-
|
|
1451
|
+
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") )
|
|
1321
1452
|
return 0
|
|
1322
1453
|
fi
|
|
1323
1454
|
case "$prev" in
|
|
1324
|
-
-
|
|
1455
|
+
--api-key)
|
|
1325
1456
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1326
1457
|
return 0 ;;
|
|
1327
|
-
|
|
1328
|
-
|
|
1458
|
+
esac
|
|
1459
|
+
}
|
|
1460
|
+
|
|
1461
|
+
_postman_monitor_get() {
|
|
1462
|
+
if [[ "$cur" == -* ]]; then
|
|
1463
|
+
COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
|
|
1464
|
+
return 0
|
|
1465
|
+
fi
|
|
1466
|
+
case "$prev" in
|
|
1467
|
+
--api-key)
|
|
1468
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1329
1469
|
return 0 ;;
|
|
1330
|
-
|
|
1470
|
+
esac
|
|
1471
|
+
}
|
|
1472
|
+
|
|
1473
|
+
_postman_monitor_metrics() {
|
|
1474
|
+
if [[ "$cur" == -* ]]; then
|
|
1475
|
+
COMPREPLY=( $(compgen -W "--api-key --since --until -f --filter --limit --json -h --help" -- "$cur") )
|
|
1476
|
+
return 0
|
|
1477
|
+
fi
|
|
1478
|
+
case "$prev" in
|
|
1479
|
+
--api-key)
|
|
1331
1480
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1332
1481
|
return 0 ;;
|
|
1333
|
-
|
|
1482
|
+
esac
|
|
1483
|
+
}
|
|
1484
|
+
|
|
1485
|
+
_postman_monitor_pause() {
|
|
1486
|
+
if [[ "$cur" == -* ]]; then
|
|
1487
|
+
COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
|
|
1488
|
+
return 0
|
|
1489
|
+
fi
|
|
1490
|
+
case "$prev" in
|
|
1491
|
+
--api-key)
|
|
1334
1492
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1335
1493
|
return 0 ;;
|
|
1336
1494
|
esac
|
|
1337
1495
|
}
|
|
1338
1496
|
|
|
1339
|
-
|
|
1497
|
+
_postman_monitor_resume() {
|
|
1340
1498
|
if [[ "$cur" == -* ]]; then
|
|
1341
|
-
COMPREPLY=( $(compgen -W "
|
|
1499
|
+
COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
|
|
1342
1500
|
return 0
|
|
1343
1501
|
fi
|
|
1344
1502
|
case "$prev" in
|
|
1345
|
-
-
|
|
1346
|
-
_postman_filematch '!*.@(
|
|
1503
|
+
--api-key)
|
|
1504
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1347
1505
|
return 0 ;;
|
|
1348
1506
|
esac
|
|
1349
1507
|
}
|
|
1350
1508
|
|
|
1351
|
-
|
|
1509
|
+
_postman_request() {
|
|
1352
1510
|
if [[ "$cur" == -* ]]; then
|
|
1353
|
-
COMPREPLY=( $(compgen -W "-
|
|
1511
|
+
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") )
|
|
1354
1512
|
return 0
|
|
1355
1513
|
fi
|
|
1356
1514
|
case "$prev" in
|
|
1357
|
-
-
|
|
1515
|
+
-e|--environment)
|
|
1516
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1517
|
+
return 0 ;;
|
|
1518
|
+
--ssl-client-cert-list)
|
|
1358
1519
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1359
1520
|
return 0 ;;
|
|
1360
|
-
-
|
|
1521
|
+
--ssl-client-cert)
|
|
1522
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1523
|
+
return 0 ;;
|
|
1524
|
+
--ssl-client-key)
|
|
1525
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1526
|
+
return 0 ;;
|
|
1527
|
+
--ssl-extra-ca-certs)
|
|
1528
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1529
|
+
return 0 ;;
|
|
1530
|
+
--cookie-jar)
|
|
1361
1531
|
_postman_filematch '!*.@(json)' "$cur"
|
|
1362
1532
|
return 0 ;;
|
|
1363
|
-
--
|
|
1364
|
-
_postman_filematch '!*.@(json
|
|
1533
|
+
--export-cookie-jar)
|
|
1534
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1365
1535
|
return 0 ;;
|
|
1366
|
-
|
|
1536
|
+
--dataset)
|
|
1367
1537
|
_postman_filematch '!*.@(json)' "$cur"
|
|
1368
1538
|
return 0 ;;
|
|
1369
|
-
|
|
1370
|
-
|
|
1539
|
+
-o|--output)
|
|
1540
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1371
1541
|
return 0 ;;
|
|
1372
1542
|
esac
|
|
1373
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1374
1543
|
}
|
|
1375
1544
|
|
|
1376
|
-
|
|
1377
|
-
if [[ "$
|
|
1378
|
-
|
|
1545
|
+
_postman_runner() {
|
|
1546
|
+
if [[ -z "$subcmd" ]]; then
|
|
1547
|
+
if [[ "$cur" == -* ]]; then
|
|
1548
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1549
|
+
else
|
|
1550
|
+
COMPREPLY=( $(compgen -W "start list regions" -- "$cur") )
|
|
1551
|
+
fi
|
|
1379
1552
|
return 0
|
|
1380
1553
|
fi
|
|
1381
|
-
case "$
|
|
1554
|
+
case "$subcmd" in
|
|
1555
|
+
start) _postman_runner_start ;;
|
|
1556
|
+
list) _postman_runner_list ;;
|
|
1557
|
+
regions) _postman_runner_regions ;;
|
|
1382
1558
|
esac
|
|
1383
1559
|
}
|
|
1384
1560
|
|
|
1385
|
-
|
|
1561
|
+
_postman_runner_start() {
|
|
1386
1562
|
if [[ "$cur" == -* ]]; then
|
|
1387
|
-
COMPREPLY=( $(compgen -W "
|
|
1563
|
+
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") )
|
|
1388
1564
|
return 0
|
|
1389
1565
|
fi
|
|
1390
1566
|
case "$prev" in
|
|
1567
|
+
--key)
|
|
1568
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1569
|
+
return 0 ;;
|
|
1570
|
+
--ssl-extra-ca-certs)
|
|
1571
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1572
|
+
return 0 ;;
|
|
1573
|
+
--dataset-jdbc-driver-dir)
|
|
1574
|
+
COMPREPLY=( $(compgen -d -- "$cur") )
|
|
1575
|
+
return 0 ;;
|
|
1391
1576
|
esac
|
|
1392
1577
|
}
|
|
1393
1578
|
|
|
1394
|
-
|
|
1579
|
+
_postman_runner_list() {
|
|
1395
1580
|
if [[ "$cur" == -* ]]; then
|
|
1396
|
-
COMPREPLY=( $(compgen -W "
|
|
1581
|
+
COMPREPLY=( $(compgen -W "--api-key -w --workspace --json -h --help" -- "$cur") )
|
|
1397
1582
|
return 0
|
|
1398
1583
|
fi
|
|
1399
1584
|
case "$prev" in
|
|
1585
|
+
--api-key)
|
|
1586
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1587
|
+
return 0 ;;
|
|
1400
1588
|
esac
|
|
1401
1589
|
}
|
|
1402
1590
|
|
|
1403
|
-
|
|
1591
|
+
_postman_runner_regions() {
|
|
1404
1592
|
if [[ "$cur" == -* ]]; then
|
|
1405
|
-
COMPREPLY=( $(compgen -W "
|
|
1593
|
+
COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
|
|
1406
1594
|
return 0
|
|
1407
1595
|
fi
|
|
1408
1596
|
case "$prev" in
|
|
1409
|
-
-
|
|
1410
|
-
_postman_filematch '!*.@(
|
|
1411
|
-
return 0 ;;
|
|
1412
|
-
--dataset)
|
|
1413
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1414
|
-
return 0 ;;
|
|
1415
|
-
-o|--output)
|
|
1416
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1597
|
+
--api-key)
|
|
1598
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1417
1599
|
return 0 ;;
|
|
1418
1600
|
esac
|
|
1419
1601
|
}
|
|
@@ -1472,279 +1654,483 @@ _postman_sdk_track() {
|
|
|
1472
1654
|
esac
|
|
1473
1655
|
}
|
|
1474
1656
|
|
|
1475
|
-
_postman_sdk_list() {
|
|
1657
|
+
_postman_sdk_list() {
|
|
1658
|
+
if [[ "$cur" == -* ]]; then
|
|
1659
|
+
COMPREPLY=( $(compgen -W "-s --status -o --output --log-level -h --help" -- "$cur") )
|
|
1660
|
+
return 0
|
|
1661
|
+
fi
|
|
1662
|
+
case "$prev" in
|
|
1663
|
+
esac
|
|
1664
|
+
}
|
|
1665
|
+
|
|
1666
|
+
_postman_sdk_fetch() {
|
|
1667
|
+
if [[ "$cur" == -* ]]; then
|
|
1668
|
+
COMPREPLY=( $(compgen -W "-o --output-dir -l --language --overwrite --verbose --log-level -h --help" -- "$cur") )
|
|
1669
|
+
return 0
|
|
1670
|
+
fi
|
|
1671
|
+
case "$prev" in
|
|
1672
|
+
-o|--output-dir)
|
|
1673
|
+
COMPREPLY=( $(compgen -d -- "$cur") )
|
|
1674
|
+
return 0 ;;
|
|
1675
|
+
esac
|
|
1676
|
+
}
|
|
1677
|
+
|
|
1678
|
+
_postman_sdk_connect() {
|
|
1679
|
+
if [[ "$cur" == -* ]]; then
|
|
1680
|
+
COMPREPLY=( $(compgen -W "-l --language -r --repo --repo-owner --repo-name -b --branch --push-to-base --auto-update-pull-requests --auth-provider --verbose -h --help" -- "$cur") )
|
|
1681
|
+
return 0
|
|
1682
|
+
fi
|
|
1683
|
+
case "$prev" in
|
|
1684
|
+
esac
|
|
1685
|
+
}
|
|
1686
|
+
|
|
1687
|
+
_postman_sdk_connections() {
|
|
1688
|
+
if [[ -z "$subcmd" ]]; then
|
|
1689
|
+
if [[ "$cur" == -* ]]; then
|
|
1690
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1691
|
+
else
|
|
1692
|
+
COMPREPLY=( $(compgen -W "list ls delete rm" -- "$cur") )
|
|
1693
|
+
fi
|
|
1694
|
+
return 0
|
|
1695
|
+
fi
|
|
1696
|
+
case "$subcmd" in
|
|
1697
|
+
list|ls) _postman_sdk_connections_list ;;
|
|
1698
|
+
delete|rm) _postman_sdk_connections_delete ;;
|
|
1699
|
+
esac
|
|
1700
|
+
}
|
|
1701
|
+
|
|
1702
|
+
_postman_sdk_connections_list() {
|
|
1703
|
+
if [[ "$cur" == -* ]]; then
|
|
1704
|
+
COMPREPLY=( $(compgen -W "--refresh --json --verbose -h --help" -- "$cur") )
|
|
1705
|
+
return 0
|
|
1706
|
+
fi
|
|
1707
|
+
}
|
|
1708
|
+
|
|
1709
|
+
_postman_sdk_connections_delete() {
|
|
1710
|
+
if [[ "$cur" == -* ]]; then
|
|
1711
|
+
COMPREPLY=( $(compgen -W "-y --yes --verbose -h --help" -- "$cur") )
|
|
1712
|
+
return 0
|
|
1713
|
+
fi
|
|
1714
|
+
}
|
|
1715
|
+
|
|
1716
|
+
_postman_spec() {
|
|
1717
|
+
if [[ -z "$subcmd" ]]; then
|
|
1718
|
+
if [[ "$cur" == -* ]]; then
|
|
1719
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1720
|
+
else
|
|
1721
|
+
COMPREPLY=( $(compgen -W "lint ai-readiness list get file create generate sync delete" -- "$cur") )
|
|
1722
|
+
fi
|
|
1723
|
+
return 0
|
|
1724
|
+
fi
|
|
1725
|
+
case "$subcmd" in
|
|
1726
|
+
lint) _postman_spec_lint ;;
|
|
1727
|
+
ai-readiness) _postman_spec_ai_readiness ;;
|
|
1728
|
+
list) _postman_spec_list ;;
|
|
1729
|
+
get) _postman_spec_get ;;
|
|
1730
|
+
file) _postman_spec_file ;;
|
|
1731
|
+
create) _postman_spec_create ;;
|
|
1732
|
+
generate) _postman_spec_generate ;;
|
|
1733
|
+
sync) _postman_spec_sync ;;
|
|
1734
|
+
delete) _postman_spec_delete ;;
|
|
1735
|
+
esac
|
|
1736
|
+
}
|
|
1737
|
+
|
|
1738
|
+
_postman_spec_lint() {
|
|
1739
|
+
if [[ "$cur" == -* ]]; then
|
|
1740
|
+
COMPREPLY=( $(compgen -W "-f --fail-severity --issueType -o --output --workspace-id --report-events --no-report-events -h --help" -- "$cur") )
|
|
1741
|
+
return 0
|
|
1742
|
+
fi
|
|
1743
|
+
case "$prev" in
|
|
1744
|
+
esac
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1747
|
+
_postman_spec_ai_readiness() {
|
|
1748
|
+
if [[ "$cur" == -* ]]; then
|
|
1749
|
+
COMPREPLY=( $(compgen -W "-o --output --export --min-score -h --help" -- "$cur") )
|
|
1750
|
+
return 0
|
|
1751
|
+
fi
|
|
1752
|
+
case "$prev" in
|
|
1753
|
+
--export)
|
|
1754
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1755
|
+
return 0 ;;
|
|
1756
|
+
esac
|
|
1757
|
+
}
|
|
1758
|
+
|
|
1759
|
+
_postman_spec_list() {
|
|
1760
|
+
if [[ "$cur" == -* ]]; then
|
|
1761
|
+
COMPREPLY=( $(compgen -W "-w --workspace --api-key --json -h --help" -- "$cur") )
|
|
1762
|
+
return 0
|
|
1763
|
+
fi
|
|
1764
|
+
case "$prev" in
|
|
1765
|
+
--api-key)
|
|
1766
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1767
|
+
return 0 ;;
|
|
1768
|
+
esac
|
|
1769
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1770
|
+
}
|
|
1771
|
+
|
|
1772
|
+
_postman_spec_get() {
|
|
1773
|
+
if [[ "$cur" == -* ]]; then
|
|
1774
|
+
COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
|
|
1775
|
+
return 0
|
|
1776
|
+
fi
|
|
1777
|
+
case "$prev" in
|
|
1778
|
+
--api-key)
|
|
1779
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1780
|
+
return 0 ;;
|
|
1781
|
+
esac
|
|
1782
|
+
}
|
|
1783
|
+
|
|
1784
|
+
_postman_spec_file() {
|
|
1785
|
+
if [[ -z "$subcmd" ]]; then
|
|
1786
|
+
if [[ "$cur" == -* ]]; then
|
|
1787
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1788
|
+
else
|
|
1789
|
+
COMPREPLY=( $(compgen -W "get add update rm" -- "$cur") )
|
|
1790
|
+
fi
|
|
1791
|
+
return 0
|
|
1792
|
+
fi
|
|
1793
|
+
case "$subcmd" in
|
|
1794
|
+
get) _postman_spec_file_get ;;
|
|
1795
|
+
add) _postman_spec_file_add ;;
|
|
1796
|
+
update) _postman_spec_file_update ;;
|
|
1797
|
+
rm) _postman_spec_file_rm ;;
|
|
1798
|
+
esac
|
|
1799
|
+
}
|
|
1800
|
+
|
|
1801
|
+
_postman_spec_file_get() {
|
|
1802
|
+
if [[ "$cur" == -* ]]; then
|
|
1803
|
+
COMPREPLY=( $(compgen -W "--json --api-key -h --help" -- "$cur") )
|
|
1804
|
+
return 0
|
|
1805
|
+
fi
|
|
1806
|
+
case "$prev" in
|
|
1807
|
+
--api-key)
|
|
1808
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1809
|
+
return 0 ;;
|
|
1810
|
+
esac
|
|
1811
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1812
|
+
}
|
|
1813
|
+
|
|
1814
|
+
_postman_spec_file_add() {
|
|
1815
|
+
if [[ "$cur" == -* ]]; then
|
|
1816
|
+
COMPREPLY=( $(compgen -W "-c --content --api-key -h --help" -- "$cur") )
|
|
1817
|
+
return 0
|
|
1818
|
+
fi
|
|
1819
|
+
case "$prev" in
|
|
1820
|
+
--api-key)
|
|
1821
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1822
|
+
return 0 ;;
|
|
1823
|
+
esac
|
|
1824
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1825
|
+
}
|
|
1826
|
+
|
|
1827
|
+
_postman_spec_file_update() {
|
|
1828
|
+
if [[ "$cur" == -* ]]; then
|
|
1829
|
+
COMPREPLY=( $(compgen -W "-c --content --api-key -h --help" -- "$cur") )
|
|
1830
|
+
return 0
|
|
1831
|
+
fi
|
|
1832
|
+
case "$prev" in
|
|
1833
|
+
--api-key)
|
|
1834
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1835
|
+
return 0 ;;
|
|
1836
|
+
esac
|
|
1837
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1838
|
+
}
|
|
1839
|
+
|
|
1840
|
+
_postman_spec_file_rm() {
|
|
1841
|
+
if [[ "$cur" == -* ]]; then
|
|
1842
|
+
COMPREPLY=( $(compgen -W "-y --yes --api-key -h --help" -- "$cur") )
|
|
1843
|
+
return 0
|
|
1844
|
+
fi
|
|
1845
|
+
case "$prev" in
|
|
1846
|
+
--api-key)
|
|
1847
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1848
|
+
return 0 ;;
|
|
1849
|
+
esac
|
|
1850
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1851
|
+
}
|
|
1852
|
+
|
|
1853
|
+
_postman_spec_create() {
|
|
1476
1854
|
if [[ "$cur" == -* ]]; then
|
|
1477
|
-
COMPREPLY=( $(compgen -W "-
|
|
1855
|
+
COMPREPLY=( $(compgen -W "-n --name -t --type --spec-version -f --format -w --workspace --force --api-key -h --help" -- "$cur") )
|
|
1478
1856
|
return 0
|
|
1479
1857
|
fi
|
|
1480
1858
|
case "$prev" in
|
|
1859
|
+
--api-key)
|
|
1860
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1861
|
+
return 0 ;;
|
|
1481
1862
|
esac
|
|
1863
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1482
1864
|
}
|
|
1483
1865
|
|
|
1484
|
-
|
|
1485
|
-
if [[ "$
|
|
1486
|
-
|
|
1866
|
+
_postman_spec_generate() {
|
|
1867
|
+
if [[ -z "$subcmd" ]]; then
|
|
1868
|
+
if [[ "$cur" == -* ]]; then
|
|
1869
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1870
|
+
else
|
|
1871
|
+
COMPREPLY=( $(compgen -W "collection" -- "$cur") )
|
|
1872
|
+
fi
|
|
1487
1873
|
return 0
|
|
1488
1874
|
fi
|
|
1489
|
-
case "$
|
|
1490
|
-
|
|
1491
|
-
COMPREPLY=( $(compgen -d -- "$cur") )
|
|
1492
|
-
return 0 ;;
|
|
1875
|
+
case "$subcmd" in
|
|
1876
|
+
collection) _postman_spec_generate_collection ;;
|
|
1493
1877
|
esac
|
|
1494
1878
|
}
|
|
1495
1879
|
|
|
1496
|
-
|
|
1880
|
+
_postman_spec_generate_collection() {
|
|
1497
1881
|
if [[ "$cur" == -* ]]; then
|
|
1498
|
-
COMPREPLY=( $(compgen -W "-
|
|
1882
|
+
COMPREPLY=( $(compgen -W "-n --name --folder-strategy -w --workspace --api-key --force -h --help" -- "$cur") )
|
|
1499
1883
|
return 0
|
|
1500
1884
|
fi
|
|
1501
1885
|
case "$prev" in
|
|
1886
|
+
--api-key)
|
|
1887
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1888
|
+
return 0 ;;
|
|
1502
1889
|
esac
|
|
1503
1890
|
}
|
|
1504
1891
|
|
|
1505
|
-
|
|
1892
|
+
_postman_spec_sync() {
|
|
1506
1893
|
if [[ -z "$subcmd" ]]; then
|
|
1507
1894
|
if [[ "$cur" == -* ]]; then
|
|
1508
1895
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1509
1896
|
else
|
|
1510
|
-
COMPREPLY=( $(compgen -W "
|
|
1897
|
+
COMPREPLY=( $(compgen -W "collection" -- "$cur") )
|
|
1511
1898
|
fi
|
|
1512
1899
|
return 0
|
|
1513
1900
|
fi
|
|
1514
1901
|
case "$subcmd" in
|
|
1515
|
-
|
|
1516
|
-
delete|rm) _postman_sdk_connections_delete ;;
|
|
1902
|
+
collection) _postman_spec_sync_collection ;;
|
|
1517
1903
|
esac
|
|
1518
1904
|
}
|
|
1519
1905
|
|
|
1520
|
-
|
|
1906
|
+
_postman_spec_sync_collection() {
|
|
1521
1907
|
if [[ "$cur" == -* ]]; then
|
|
1522
|
-
COMPREPLY=( $(compgen -W "--
|
|
1908
|
+
COMPREPLY=( $(compgen -W "--collection-id --api-key --force -h --help" -- "$cur") )
|
|
1523
1909
|
return 0
|
|
1524
1910
|
fi
|
|
1911
|
+
case "$prev" in
|
|
1912
|
+
--api-key)
|
|
1913
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1914
|
+
return 0 ;;
|
|
1915
|
+
esac
|
|
1525
1916
|
}
|
|
1526
1917
|
|
|
1527
|
-
|
|
1918
|
+
_postman_spec_delete() {
|
|
1528
1919
|
if [[ "$cur" == -* ]]; then
|
|
1529
|
-
COMPREPLY=( $(compgen -W "-y --yes --
|
|
1920
|
+
COMPREPLY=( $(compgen -W "-y --yes --api-key -h --help" -- "$cur") )
|
|
1530
1921
|
return 0
|
|
1531
1922
|
fi
|
|
1923
|
+
case "$prev" in
|
|
1924
|
+
--api-key)
|
|
1925
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1926
|
+
return 0 ;;
|
|
1927
|
+
esac
|
|
1532
1928
|
}
|
|
1533
1929
|
|
|
1534
|
-
|
|
1930
|
+
_postman_workspace() {
|
|
1535
1931
|
if [[ -z "$subcmd" ]]; then
|
|
1536
1932
|
if [[ "$cur" == -* ]]; then
|
|
1537
1933
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1538
1934
|
else
|
|
1539
|
-
COMPREPLY=( $(compgen -W "
|
|
1935
|
+
COMPREPLY=( $(compgen -W "list prepare push lint get create delete pull connect-git disconnect-git diff" -- "$cur") )
|
|
1540
1936
|
fi
|
|
1541
1937
|
return 0
|
|
1542
1938
|
fi
|
|
1543
1939
|
case "$subcmd" in
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
push)
|
|
1547
|
-
|
|
1548
|
-
get)
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1940
|
+
list) _postman_workspace_list ;;
|
|
1941
|
+
prepare) _postman_workspace_prepare ;;
|
|
1942
|
+
push) _postman_workspace_push ;;
|
|
1943
|
+
lint) _postman_workspace_lint ;;
|
|
1944
|
+
get) _postman_workspace_get ;;
|
|
1945
|
+
create) _postman_workspace_create ;;
|
|
1946
|
+
delete) _postman_workspace_delete ;;
|
|
1947
|
+
pull) _postman_workspace_pull ;;
|
|
1948
|
+
connect-git) _postman_workspace_connect_git ;;
|
|
1949
|
+
disconnect-git) _postman_workspace_disconnect_git ;;
|
|
1950
|
+
diff) _postman_workspace_diff ;;
|
|
1552
1951
|
esac
|
|
1553
1952
|
}
|
|
1554
1953
|
|
|
1555
|
-
|
|
1954
|
+
_postman_workspace_list() {
|
|
1556
1955
|
if [[ "$cur" == -* ]]; then
|
|
1557
|
-
COMPREPLY=( $(compgen -W "-
|
|
1956
|
+
COMPREPLY=( $(compgen -W "-f --filter -t --type --cursor --verbose --debug --json -h --help" -- "$cur") )
|
|
1558
1957
|
return 0
|
|
1559
1958
|
fi
|
|
1560
1959
|
case "$prev" in
|
|
1561
|
-
-o|--output)
|
|
1562
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1563
|
-
return 0 ;;
|
|
1564
|
-
-u|--update)
|
|
1565
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1566
|
-
return 0 ;;
|
|
1567
|
-
--api-key)
|
|
1568
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1569
|
-
return 0 ;;
|
|
1570
1960
|
esac
|
|
1571
1961
|
}
|
|
1572
1962
|
|
|
1573
|
-
|
|
1963
|
+
_postman_workspace_prepare() {
|
|
1574
1964
|
if [[ "$cur" == -* ]]; then
|
|
1575
|
-
COMPREPLY=( $(compgen -W "
|
|
1965
|
+
COMPREPLY=( $(compgen -W "--verbose --json -h --help" -- "$cur") )
|
|
1966
|
+
return 0
|
|
1967
|
+
fi
|
|
1968
|
+
}
|
|
1969
|
+
|
|
1970
|
+
_postman_workspace_push() {
|
|
1971
|
+
if [[ "$cur" == -* ]]; then
|
|
1972
|
+
COMPREPLY=( $(compgen -W "--no-prepare -y --yes --push-strategy --json --verbose --report-events --no-report-events -h --help" -- "$cur") )
|
|
1576
1973
|
return 0
|
|
1577
1974
|
fi
|
|
1578
1975
|
case "$prev" in
|
|
1579
|
-
-e|--environment)
|
|
1580
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1581
|
-
return 0 ;;
|
|
1582
|
-
-g|--globals)
|
|
1583
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1584
|
-
return 0 ;;
|
|
1585
|
-
--api-key)
|
|
1586
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1587
|
-
return 0 ;;
|
|
1588
|
-
--dataset)
|
|
1589
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1590
|
-
return 0 ;;
|
|
1591
1976
|
esac
|
|
1592
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1593
1977
|
}
|
|
1594
1978
|
|
|
1595
|
-
|
|
1979
|
+
_postman_workspace_lint() {
|
|
1596
1980
|
if [[ "$cur" == -* ]]; then
|
|
1597
|
-
COMPREPLY=( $(compgen -W "-
|
|
1981
|
+
COMPREPLY=( $(compgen -W "-f --fail-severity -o --output --meta --workspace-id --fix -h --help" -- "$cur") )
|
|
1598
1982
|
return 0
|
|
1599
1983
|
fi
|
|
1600
1984
|
case "$prev" in
|
|
1601
|
-
--api-key)
|
|
1602
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1603
|
-
return 0 ;;
|
|
1604
1985
|
esac
|
|
1605
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1606
1986
|
}
|
|
1607
1987
|
|
|
1608
|
-
|
|
1988
|
+
_postman_workspace_get() {
|
|
1609
1989
|
if [[ "$cur" == -* ]]; then
|
|
1610
|
-
COMPREPLY=( $(compgen -W "
|
|
1990
|
+
COMPREPLY=( $(compgen -W "--elements --json --timeout -h --help" -- "$cur") )
|
|
1611
1991
|
return 0
|
|
1612
1992
|
fi
|
|
1613
1993
|
case "$prev" in
|
|
1614
|
-
--api-key)
|
|
1615
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1616
|
-
return 0 ;;
|
|
1617
1994
|
esac
|
|
1618
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1619
1995
|
}
|
|
1620
1996
|
|
|
1621
|
-
|
|
1997
|
+
_postman_workspace_create() {
|
|
1622
1998
|
if [[ "$cur" == -* ]]; then
|
|
1623
|
-
COMPREPLY=( $(compgen -W "--
|
|
1999
|
+
COMPREPLY=( $(compgen -W "--visibility --name --summary --team-id --team-role --path --no-connect --force --json -h --help" -- "$cur") )
|
|
1624
2000
|
return 0
|
|
1625
2001
|
fi
|
|
1626
2002
|
case "$prev" in
|
|
1627
|
-
--
|
|
1628
|
-
_postman_filematch '!*.@(
|
|
2003
|
+
--path)
|
|
2004
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1629
2005
|
return 0 ;;
|
|
1630
2006
|
esac
|
|
1631
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1632
2007
|
}
|
|
1633
2008
|
|
|
1634
|
-
|
|
2009
|
+
_postman_workspace_delete() {
|
|
1635
2010
|
if [[ "$cur" == -* ]]; then
|
|
1636
|
-
COMPREPLY=( $(compgen -W "-
|
|
2011
|
+
COMPREPLY=( $(compgen -W "-y --yes --json --verbose --timeout -h --help" -- "$cur") )
|
|
1637
2012
|
return 0
|
|
1638
2013
|
fi
|
|
1639
2014
|
case "$prev" in
|
|
1640
|
-
--api-key)
|
|
1641
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1642
|
-
return 0 ;;
|
|
1643
2015
|
esac
|
|
1644
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1645
2016
|
}
|
|
1646
2017
|
|
|
1647
|
-
|
|
2018
|
+
_postman_workspace_pull() {
|
|
1648
2019
|
if [[ "$cur" == -* ]]; then
|
|
1649
|
-
COMPREPLY=( $(compgen -W "
|
|
2020
|
+
COMPREPLY=( $(compgen -W "-y --yes --source-workspace --json --verbose -h --help" -- "$cur") )
|
|
1650
2021
|
return 0
|
|
1651
2022
|
fi
|
|
1652
2023
|
case "$prev" in
|
|
1653
|
-
--api-key)
|
|
1654
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1655
|
-
return 0 ;;
|
|
1656
2024
|
esac
|
|
2025
|
+
}
|
|
2026
|
+
|
|
2027
|
+
_postman_workspace_connect_git() {
|
|
2028
|
+
if [[ "$cur" == -* ]]; then
|
|
2029
|
+
COMPREPLY=( $(compgen -W "--verbose --json -h --help" -- "$cur") )
|
|
2030
|
+
return 0
|
|
2031
|
+
fi
|
|
1657
2032
|
_postman_filematch '!*.@(json)' "$cur"
|
|
1658
2033
|
}
|
|
1659
2034
|
|
|
1660
|
-
|
|
2035
|
+
_postman_workspace_disconnect_git() {
|
|
1661
2036
|
if [[ "$cur" == -* ]]; then
|
|
1662
|
-
COMPREPLY=( $(compgen -W "-y --yes --
|
|
2037
|
+
COMPREPLY=( $(compgen -W "-y --yes --verbose --json -h --help" -- "$cur") )
|
|
2038
|
+
return 0
|
|
2039
|
+
fi
|
|
2040
|
+
}
|
|
2041
|
+
|
|
2042
|
+
_postman_workspace_diff() {
|
|
2043
|
+
if [[ "$cur" == -* ]]; then
|
|
2044
|
+
COMPREPLY=( $(compgen -W "--push-strategy --summary --json --exit-code --verbose --timeout -h --help" -- "$cur") )
|
|
1663
2045
|
return 0
|
|
1664
2046
|
fi
|
|
1665
2047
|
case "$prev" in
|
|
1666
|
-
--api-key)
|
|
1667
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1668
|
-
return 0 ;;
|
|
1669
2048
|
esac
|
|
1670
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1671
2049
|
}
|
|
1672
2050
|
|
|
1673
|
-
|
|
2051
|
+
_postman_context_graph() {
|
|
1674
2052
|
if [[ -z "$subcmd" ]]; then
|
|
1675
2053
|
if [[ "$cur" == -* ]]; then
|
|
1676
2054
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1677
2055
|
else
|
|
1678
|
-
COMPREPLY=( $(compgen -W "
|
|
2056
|
+
COMPREPLY=( $(compgen -W "ask status ingest" -- "$cur") )
|
|
1679
2057
|
fi
|
|
1680
2058
|
return 0
|
|
1681
2059
|
fi
|
|
1682
2060
|
case "$subcmd" in
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
2061
|
+
ask) _postman_context_graph_ask ;;
|
|
2062
|
+
status) _postman_context_graph_status ;;
|
|
2063
|
+
ingest) _postman_context_graph_ingest ;;
|
|
1686
2064
|
esac
|
|
1687
2065
|
}
|
|
1688
2066
|
|
|
1689
|
-
|
|
2067
|
+
_postman_context_graph_ask() {
|
|
1690
2068
|
if [[ "$cur" == -* ]]; then
|
|
1691
|
-
COMPREPLY=( $(compgen -W "--
|
|
2069
|
+
COMPREPLY=( $(compgen -W "--wait --api-key --json --no-include-answer --max-steps --interval --timeout -h --help" -- "$cur") )
|
|
1692
2070
|
return 0
|
|
1693
2071
|
fi
|
|
1694
2072
|
case "$prev" in
|
|
2073
|
+
--api-key)
|
|
2074
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2075
|
+
return 0 ;;
|
|
1695
2076
|
esac
|
|
1696
2077
|
}
|
|
1697
2078
|
|
|
1698
|
-
|
|
2079
|
+
_postman_context_graph_status() {
|
|
1699
2080
|
if [[ "$cur" == -* ]]; then
|
|
1700
|
-
COMPREPLY=( $(compgen -W "--
|
|
2081
|
+
COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
|
|
1701
2082
|
return 0
|
|
1702
2083
|
fi
|
|
1703
2084
|
case "$prev" in
|
|
1704
|
-
--
|
|
1705
|
-
_postman_filematch '!*.@(
|
|
1706
|
-
return 0 ;;
|
|
1707
|
-
--target-environment)
|
|
1708
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1709
|
-
return 0 ;;
|
|
1710
|
-
--network-log)
|
|
1711
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1712
|
-
return 0 ;;
|
|
1713
|
-
--output)
|
|
1714
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
2085
|
+
--api-key)
|
|
2086
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1715
2087
|
return 0 ;;
|
|
1716
2088
|
esac
|
|
1717
2089
|
}
|
|
1718
2090
|
|
|
1719
|
-
|
|
2091
|
+
_postman_context_graph_ingest() {
|
|
2092
|
+
if [[ -z "$subcmd" ]]; then
|
|
2093
|
+
if [[ "$cur" == -* ]]; then
|
|
2094
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2095
|
+
else
|
|
2096
|
+
COMPREPLY=( $(compgen -W "git workspaces status" -- "$cur") )
|
|
2097
|
+
fi
|
|
2098
|
+
return 0
|
|
2099
|
+
fi
|
|
2100
|
+
case "$subcmd" in
|
|
2101
|
+
git) _postman_context_graph_ingest_git ;;
|
|
2102
|
+
workspaces) _postman_context_graph_ingest_workspaces ;;
|
|
2103
|
+
status) _postman_context_graph_ingest_status ;;
|
|
2104
|
+
esac
|
|
2105
|
+
}
|
|
2106
|
+
|
|
2107
|
+
_postman_context_graph_ingest_git() {
|
|
1720
2108
|
if [[ "$cur" == -* ]]; then
|
|
1721
|
-
COMPREPLY=( $(compgen -W "--
|
|
2109
|
+
COMPREPLY=( $(compgen -W "--all-git-linked-workspaces --tag --ttl --api-key --json -h --help" -- "$cur") )
|
|
1722
2110
|
return 0
|
|
1723
2111
|
fi
|
|
1724
2112
|
case "$prev" in
|
|
1725
|
-
--
|
|
1726
|
-
_postman_filematch '!*.@(
|
|
2113
|
+
--api-key)
|
|
2114
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1727
2115
|
return 0 ;;
|
|
1728
2116
|
esac
|
|
1729
2117
|
}
|
|
1730
2118
|
|
|
1731
|
-
|
|
1732
|
-
if [[
|
|
1733
|
-
|
|
1734
|
-
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1735
|
-
else
|
|
1736
|
-
COMPREPLY=( $(compgen -W "run" -- "$cur") )
|
|
1737
|
-
fi
|
|
2119
|
+
_postman_context_graph_ingest_workspaces() {
|
|
2120
|
+
if [[ "$cur" == -* ]]; then
|
|
2121
|
+
COMPREPLY=( $(compgen -W "-w --workspace --top --ttl --api-key --json -h --help" -- "$cur") )
|
|
1738
2122
|
return 0
|
|
1739
2123
|
fi
|
|
1740
|
-
case "$
|
|
1741
|
-
|
|
2124
|
+
case "$prev" in
|
|
2125
|
+
--api-key)
|
|
2126
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2127
|
+
return 0 ;;
|
|
1742
2128
|
esac
|
|
1743
2129
|
}
|
|
1744
2130
|
|
|
1745
|
-
|
|
2131
|
+
_postman_context_graph_ingest_status() {
|
|
1746
2132
|
if [[ "$cur" == -* ]]; then
|
|
1747
|
-
COMPREPLY=( $(compgen -W "
|
|
2133
|
+
COMPREPLY=( $(compgen -W "--source --api-key --json -h --help" -- "$cur") )
|
|
1748
2134
|
return 0
|
|
1749
2135
|
fi
|
|
1750
2136
|
case "$prev" in
|
|
@@ -1752,7 +2138,6 @@ _postman_simulate_run() {
|
|
|
1752
2138
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1753
2139
|
return 0 ;;
|
|
1754
2140
|
esac
|
|
1755
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1756
2141
|
}
|
|
1757
2142
|
|
|
1758
2143
|
_postman_describe() {
|
|
@@ -1894,79 +2279,53 @@ _postman_describe_workspace() {
|
|
|
1894
2279
|
return 0
|
|
1895
2280
|
fi
|
|
1896
2281
|
case "$subcmd" in
|
|
1897
|
-
get) _postman_describe_workspace_get ;;
|
|
1898
|
-
esac
|
|
1899
|
-
}
|
|
1900
|
-
|
|
1901
|
-
_postman_describe_workspace_get() {
|
|
1902
|
-
if [[ "$cur" == -* ]]; then
|
|
1903
|
-
COMPREPLY=( $(compgen -W "-w --workspace-id -h --help" -- "$cur") )
|
|
1904
|
-
return 0
|
|
1905
|
-
fi
|
|
1906
|
-
case "$prev" in
|
|
1907
|
-
esac
|
|
1908
|
-
}
|
|
1909
|
-
|
|
1910
|
-
_postman_describe_environment() {
|
|
1911
|
-
if [[ -z "$subcmd" ]]; then
|
|
1912
|
-
if [[ "$cur" == -* ]]; then
|
|
1913
|
-
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1914
|
-
else
|
|
1915
|
-
COMPREPLY=( $(compgen -W "get" -- "$cur") )
|
|
1916
|
-
fi
|
|
1917
|
-
return 0
|
|
1918
|
-
fi
|
|
1919
|
-
case "$subcmd" in
|
|
1920
|
-
get) _postman_describe_environment_get ;;
|
|
2282
|
+
get) _postman_describe_workspace_get ;;
|
|
1921
2283
|
esac
|
|
1922
2284
|
}
|
|
1923
2285
|
|
|
1924
|
-
|
|
2286
|
+
_postman_describe_workspace_get() {
|
|
1925
2287
|
if [[ "$cur" == -* ]]; then
|
|
1926
|
-
COMPREPLY=( $(compgen -W "-
|
|
2288
|
+
COMPREPLY=( $(compgen -W "-w --workspace-id -h --help" -- "$cur") )
|
|
1927
2289
|
return 0
|
|
1928
2290
|
fi
|
|
1929
2291
|
case "$prev" in
|
|
1930
2292
|
esac
|
|
1931
2293
|
}
|
|
1932
2294
|
|
|
1933
|
-
|
|
2295
|
+
_postman_describe_environment() {
|
|
1934
2296
|
if [[ -z "$subcmd" ]]; then
|
|
1935
2297
|
if [[ "$cur" == -* ]]; then
|
|
1936
2298
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1937
2299
|
else
|
|
1938
|
-
COMPREPLY=( $(compgen -W "
|
|
2300
|
+
COMPREPLY=( $(compgen -W "get" -- "$cur") )
|
|
1939
2301
|
fi
|
|
1940
2302
|
return 0
|
|
1941
2303
|
fi
|
|
1942
2304
|
case "$subcmd" in
|
|
1943
|
-
|
|
1944
|
-
status) _postman_context_graph_status ;;
|
|
2305
|
+
get) _postman_describe_environment_get ;;
|
|
1945
2306
|
esac
|
|
1946
2307
|
}
|
|
1947
2308
|
|
|
1948
|
-
|
|
2309
|
+
_postman_describe_environment_get() {
|
|
1949
2310
|
if [[ "$cur" == -* ]]; then
|
|
1950
|
-
COMPREPLY=( $(compgen -W "
|
|
2311
|
+
COMPREPLY=( $(compgen -W "-e --environment-id -h --help" -- "$cur") )
|
|
1951
2312
|
return 0
|
|
1952
2313
|
fi
|
|
1953
2314
|
case "$prev" in
|
|
1954
|
-
--api-key)
|
|
1955
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1956
|
-
return 0 ;;
|
|
1957
2315
|
esac
|
|
1958
2316
|
}
|
|
1959
2317
|
|
|
1960
|
-
|
|
2318
|
+
_postman_init() {
|
|
1961
2319
|
if [[ "$cur" == -* ]]; then
|
|
1962
|
-
COMPREPLY=( $(compgen -W "--
|
|
2320
|
+
COMPREPLY=( $(compgen -W "--json --dry-run --no-fetch --spec --visibility -y --yes --report-events -h --help" -- "$cur") )
|
|
1963
2321
|
return 0
|
|
1964
2322
|
fi
|
|
1965
2323
|
case "$prev" in
|
|
1966
|
-
--
|
|
1967
|
-
_postman_filematch '!*.@(
|
|
2324
|
+
--spec)
|
|
2325
|
+
_postman_filematch '!*.@(yaml|yml|json)' "$cur"
|
|
1968
2326
|
return 0 ;;
|
|
1969
2327
|
esac
|
|
2328
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1970
2329
|
}
|
|
1971
2330
|
|
|
1972
2331
|
_postman_search() {
|
|
@@ -2046,169 +2405,292 @@ _postman_search_documents() {
|
|
|
2046
2405
|
fi
|
|
2047
2406
|
}
|
|
2048
2407
|
|
|
2049
|
-
|
|
2408
|
+
_postman_skills() {
|
|
2050
2409
|
if [[ -z "$subcmd" ]]; then
|
|
2051
2410
|
if [[ "$cur" == -* ]]; then
|
|
2052
2411
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2053
2412
|
else
|
|
2054
|
-
COMPREPLY=( $(compgen -W "
|
|
2413
|
+
COMPREPLY=( $(compgen -W "status update" -- "$cur") )
|
|
2055
2414
|
fi
|
|
2056
2415
|
return 0
|
|
2057
2416
|
fi
|
|
2058
2417
|
case "$subcmd" in
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
pause) _postman_webhook_pause ;;
|
|
2062
|
-
list) _postman_webhook_list ;;
|
|
2063
|
-
delete) _postman_webhook_delete ;;
|
|
2064
|
-
status) _postman_webhook_status ;;
|
|
2065
|
-
requests) _postman_webhook_requests ;;
|
|
2066
|
-
scripts) _postman_webhook_scripts ;;
|
|
2067
|
-
forward) _postman_webhook_forward ;;
|
|
2418
|
+
status) _postman_skills_status ;;
|
|
2419
|
+
update) _postman_skills_update ;;
|
|
2068
2420
|
esac
|
|
2069
2421
|
}
|
|
2070
2422
|
|
|
2071
|
-
|
|
2423
|
+
_postman_skills_status() {
|
|
2072
2424
|
if [[ "$cur" == -* ]]; then
|
|
2073
|
-
COMPREPLY=( $(compgen -W "
|
|
2425
|
+
COMPREPLY=( $(compgen -W "--json --strict -h --help" -- "$cur") )
|
|
2426
|
+
return 0
|
|
2427
|
+
fi
|
|
2428
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2429
|
+
}
|
|
2430
|
+
|
|
2431
|
+
_postman_skills_update() {
|
|
2432
|
+
if [[ "$cur" == -* ]]; then
|
|
2433
|
+
COMPREPLY=( $(compgen -W "--json --dry-run --force -h --help" -- "$cur") )
|
|
2434
|
+
return 0
|
|
2435
|
+
fi
|
|
2436
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2437
|
+
}
|
|
2438
|
+
|
|
2439
|
+
_postman_login() {
|
|
2440
|
+
if [[ "$cur" == -* ]]; then
|
|
2441
|
+
COMPREPLY=( $(compgen -W "--alias --with-api-key --region --verbose -h --help" -- "$cur") )
|
|
2074
2442
|
return 0
|
|
2075
2443
|
fi
|
|
2076
2444
|
case "$prev" in
|
|
2077
|
-
--
|
|
2078
|
-
|
|
2445
|
+
--region)
|
|
2446
|
+
COMPREPLY=( $(compgen -W "us eu" -- "$cur") )
|
|
2079
2447
|
return 0 ;;
|
|
2080
2448
|
esac
|
|
2081
2449
|
}
|
|
2082
2450
|
|
|
2083
|
-
|
|
2451
|
+
_postman_logout() {
|
|
2084
2452
|
if [[ "$cur" == -* ]]; then
|
|
2085
|
-
COMPREPLY=( $(compgen -W "
|
|
2453
|
+
COMPREPLY=( $(compgen -W "--alias -h --help" -- "$cur") )
|
|
2086
2454
|
return 0
|
|
2087
2455
|
fi
|
|
2088
2456
|
case "$prev" in
|
|
2089
|
-
--api-key)
|
|
2090
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2091
|
-
return 0 ;;
|
|
2092
2457
|
esac
|
|
2093
2458
|
}
|
|
2094
2459
|
|
|
2095
|
-
|
|
2460
|
+
_postman_signup() {
|
|
2096
2461
|
if [[ "$cur" == -* ]]; then
|
|
2097
|
-
COMPREPLY=( $(compgen -W "
|
|
2462
|
+
COMPREPLY=( $(compgen -W "--guest --json -h --help" -- "$cur") )
|
|
2463
|
+
return 0
|
|
2464
|
+
fi
|
|
2465
|
+
}
|
|
2466
|
+
|
|
2467
|
+
_postman_whoami() {
|
|
2468
|
+
if [[ "$cur" == -* ]]; then
|
|
2469
|
+
COMPREPLY=( $(compgen -W "--json -h --help" -- "$cur") )
|
|
2470
|
+
return 0
|
|
2471
|
+
fi
|
|
2472
|
+
}
|
|
2473
|
+
|
|
2474
|
+
_postman_application() {
|
|
2475
|
+
if [[ -z "$subcmd" ]]; then
|
|
2476
|
+
if [[ "$cur" == -* ]]; then
|
|
2477
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2478
|
+
else
|
|
2479
|
+
COMPREPLY=( $(compgen -W "init test setup-capture" -- "$cur") )
|
|
2480
|
+
fi
|
|
2481
|
+
return 0
|
|
2482
|
+
fi
|
|
2483
|
+
case "$subcmd" in
|
|
2484
|
+
init) _postman_application_init ;;
|
|
2485
|
+
test) _postman_application_test ;;
|
|
2486
|
+
setup-capture) _postman_application_setup_capture ;;
|
|
2487
|
+
esac
|
|
2488
|
+
}
|
|
2489
|
+
|
|
2490
|
+
_postman_application_init() {
|
|
2491
|
+
if [[ "$cur" == -* ]]; then
|
|
2492
|
+
COMPREPLY=( $(compgen -W "--target-collection --target-environment --filter-urlpatterns --filter-methods --filter-headers --command -h --help" -- "$cur") )
|
|
2098
2493
|
return 0
|
|
2099
2494
|
fi
|
|
2100
2495
|
case "$prev" in
|
|
2101
|
-
--api-key)
|
|
2102
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2103
|
-
return 0 ;;
|
|
2104
2496
|
esac
|
|
2105
2497
|
}
|
|
2106
2498
|
|
|
2107
|
-
|
|
2499
|
+
_postman_application_test() {
|
|
2108
2500
|
if [[ "$cur" == -* ]]; then
|
|
2109
|
-
COMPREPLY=( $(compgen -W "-
|
|
2501
|
+
COMPREPLY=( $(compgen -W "--target --target-collection --target-environment --command --deployed-version --network-log --capture-only --output --force --report-events --no-report-events --verbose -h --help" -- "$cur") )
|
|
2110
2502
|
return 0
|
|
2111
2503
|
fi
|
|
2112
2504
|
case "$prev" in
|
|
2113
|
-
--
|
|
2114
|
-
_postman_filematch '!*.@(
|
|
2505
|
+
--target-collection)
|
|
2506
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2507
|
+
return 0 ;;
|
|
2508
|
+
--target-environment)
|
|
2509
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2510
|
+
return 0 ;;
|
|
2511
|
+
--network-log)
|
|
2512
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2513
|
+
return 0 ;;
|
|
2514
|
+
--output)
|
|
2515
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2115
2516
|
return 0 ;;
|
|
2116
2517
|
esac
|
|
2117
2518
|
}
|
|
2118
2519
|
|
|
2119
|
-
|
|
2520
|
+
_postman_application_setup_capture() {
|
|
2120
2521
|
if [[ "$cur" == -* ]]; then
|
|
2121
|
-
COMPREPLY=( $(compgen -W "
|
|
2522
|
+
COMPREPLY=( $(compgen -W "--config -h --help" -- "$cur") )
|
|
2122
2523
|
return 0
|
|
2123
2524
|
fi
|
|
2124
2525
|
case "$prev" in
|
|
2125
|
-
--
|
|
2126
|
-
_postman_filematch '!*.@(
|
|
2526
|
+
--config)
|
|
2527
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2127
2528
|
return 0 ;;
|
|
2128
2529
|
esac
|
|
2129
2530
|
}
|
|
2130
2531
|
|
|
2131
|
-
|
|
2532
|
+
_postman_dependency() {
|
|
2533
|
+
if [[ -z "$subcmd" ]]; then
|
|
2534
|
+
if [[ "$cur" == -* ]]; then
|
|
2535
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2536
|
+
else
|
|
2537
|
+
COMPREPLY=( $(compgen -W "add get list install update remove" -- "$cur") )
|
|
2538
|
+
fi
|
|
2539
|
+
return 0
|
|
2540
|
+
fi
|
|
2541
|
+
case "$subcmd" in
|
|
2542
|
+
add) _postman_dependency_add ;;
|
|
2543
|
+
get) _postman_dependency_get ;;
|
|
2544
|
+
list) _postman_dependency_list ;;
|
|
2545
|
+
install) _postman_dependency_install ;;
|
|
2546
|
+
update) _postman_dependency_update ;;
|
|
2547
|
+
remove) _postman_dependency_remove ;;
|
|
2548
|
+
esac
|
|
2549
|
+
}
|
|
2550
|
+
|
|
2551
|
+
_postman_dependency_add() {
|
|
2132
2552
|
if [[ "$cur" == -* ]]; then
|
|
2133
|
-
COMPREPLY=( $(compgen -W "-w --workspace
|
|
2553
|
+
COMPREPLY=( $(compgen -W "-w --workspace -y --yes --json -h --help" -- "$cur") )
|
|
2134
2554
|
return 0
|
|
2135
2555
|
fi
|
|
2136
2556
|
case "$prev" in
|
|
2137
|
-
--api-key)
|
|
2138
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2139
|
-
return 0 ;;
|
|
2140
2557
|
esac
|
|
2141
2558
|
}
|
|
2142
2559
|
|
|
2143
|
-
|
|
2560
|
+
_postman_dependency_get() {
|
|
2561
|
+
if [[ "$cur" == -* ]]; then
|
|
2562
|
+
COMPREPLY=( $(compgen -W "--type --json -h --help" -- "$cur") )
|
|
2563
|
+
return 0
|
|
2564
|
+
fi
|
|
2565
|
+
case "$prev" in
|
|
2566
|
+
esac
|
|
2567
|
+
}
|
|
2568
|
+
|
|
2569
|
+
_postman_dependency_list() {
|
|
2570
|
+
if [[ "$cur" == -* ]]; then
|
|
2571
|
+
COMPREPLY=( $(compgen -W "--type --json -h --help" -- "$cur") )
|
|
2572
|
+
return 0
|
|
2573
|
+
fi
|
|
2574
|
+
case "$prev" in
|
|
2575
|
+
esac
|
|
2576
|
+
}
|
|
2577
|
+
|
|
2578
|
+
_postman_dependency_install() {
|
|
2579
|
+
if [[ "$cur" == -* ]]; then
|
|
2580
|
+
COMPREPLY=( $(compgen -W "--type --json -h --help" -- "$cur") )
|
|
2581
|
+
return 0
|
|
2582
|
+
fi
|
|
2583
|
+
case "$prev" in
|
|
2584
|
+
esac
|
|
2585
|
+
}
|
|
2586
|
+
|
|
2587
|
+
_postman_dependency_update() {
|
|
2588
|
+
if [[ "$cur" == -* ]]; then
|
|
2589
|
+
COMPREPLY=( $(compgen -W "--type --json -h --help" -- "$cur") )
|
|
2590
|
+
return 0
|
|
2591
|
+
fi
|
|
2592
|
+
case "$prev" in
|
|
2593
|
+
esac
|
|
2594
|
+
}
|
|
2595
|
+
|
|
2596
|
+
_postman_dependency_remove() {
|
|
2597
|
+
if [[ "$cur" == -* ]]; then
|
|
2598
|
+
COMPREPLY=( $(compgen -W "--type -y --yes --json -h --help" -- "$cur") )
|
|
2599
|
+
return 0
|
|
2600
|
+
fi
|
|
2601
|
+
case "$prev" in
|
|
2602
|
+
esac
|
|
2603
|
+
}
|
|
2604
|
+
|
|
2605
|
+
_postman_feedback() {
|
|
2606
|
+
if [[ "$cur" == -* ]]; then
|
|
2607
|
+
COMPREPLY=( $(compgen -W "--type --context --json -h --help" -- "$cur") )
|
|
2608
|
+
return 0
|
|
2609
|
+
fi
|
|
2610
|
+
case "$prev" in
|
|
2611
|
+
esac
|
|
2612
|
+
}
|
|
2613
|
+
|
|
2614
|
+
_postman_performance() {
|
|
2144
2615
|
if [[ -z "$subcmd" ]]; then
|
|
2145
2616
|
if [[ "$cur" == -* ]]; then
|
|
2146
2617
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2147
2618
|
else
|
|
2148
|
-
COMPREPLY=( $(compgen -W "list
|
|
2619
|
+
COMPREPLY=( $(compgen -W "run list get" -- "$cur") )
|
|
2149
2620
|
fi
|
|
2150
2621
|
return 0
|
|
2151
2622
|
fi
|
|
2152
2623
|
case "$subcmd" in
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2624
|
+
run) _postman_performance_run ;;
|
|
2625
|
+
list) _postman_performance_list ;;
|
|
2626
|
+
get) _postman_performance_get ;;
|
|
2156
2627
|
esac
|
|
2157
2628
|
}
|
|
2158
2629
|
|
|
2159
|
-
|
|
2630
|
+
_postman_performance_run() {
|
|
2160
2631
|
if [[ "$cur" == -* ]]; then
|
|
2161
|
-
COMPREPLY=( $(compgen -W "-
|
|
2632
|
+
COMPREPLY=( $(compgen -W "-e --environment -g --globals --setup-collection --teardown-collection --peak-vu --vu-count --base-vu -d --duration -p --load-profile -s --load-segments --data-file --ssl-client-cert-list --ssl-client-cert --ssl-client-key --ssl-client-passphrase -k --insecure --ssl-extra-ca-certs --dataset-id --dataset-view-id --dataset-distribution --postman-api-key --output --runner --disable-unicode --pass-if --use-mock --dataset -h --help" -- "$cur") )
|
|
2162
2633
|
return 0
|
|
2163
2634
|
fi
|
|
2164
2635
|
case "$prev" in
|
|
2165
|
-
--
|
|
2636
|
+
--data-file)
|
|
2637
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2638
|
+
return 0 ;;
|
|
2639
|
+
--ssl-client-cert-list)
|
|
2640
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2641
|
+
return 0 ;;
|
|
2642
|
+
--ssl-client-cert)
|
|
2643
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2644
|
+
return 0 ;;
|
|
2645
|
+
--ssl-client-key)
|
|
2646
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2647
|
+
return 0 ;;
|
|
2648
|
+
--ssl-extra-ca-certs)
|
|
2166
2649
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2167
2650
|
return 0 ;;
|
|
2651
|
+
--dataset)
|
|
2652
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2653
|
+
return 0 ;;
|
|
2168
2654
|
esac
|
|
2655
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2169
2656
|
}
|
|
2170
2657
|
|
|
2171
|
-
|
|
2658
|
+
_postman_performance_list() {
|
|
2172
2659
|
if [[ "$cur" == -* ]]; then
|
|
2173
|
-
COMPREPLY=( $(compgen -W "-
|
|
2660
|
+
COMPREPLY=( $(compgen -W "-c --collection-id --cursor --output --json --timeout -h --help" -- "$cur") )
|
|
2174
2661
|
return 0
|
|
2175
2662
|
fi
|
|
2176
2663
|
case "$prev" in
|
|
2177
|
-
--api-key)
|
|
2178
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2179
|
-
return 0 ;;
|
|
2180
2664
|
esac
|
|
2181
2665
|
}
|
|
2182
2666
|
|
|
2183
|
-
|
|
2667
|
+
_postman_performance_get() {
|
|
2184
2668
|
if [[ "$cur" == -* ]]; then
|
|
2185
|
-
COMPREPLY=( $(compgen -W "
|
|
2669
|
+
COMPREPLY=( $(compgen -W "--output --json --timeout -h --help" -- "$cur") )
|
|
2186
2670
|
return 0
|
|
2187
2671
|
fi
|
|
2188
2672
|
case "$prev" in
|
|
2189
|
-
--api-key)
|
|
2190
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2191
|
-
return 0 ;;
|
|
2192
2673
|
esac
|
|
2193
2674
|
}
|
|
2194
2675
|
|
|
2195
|
-
|
|
2676
|
+
_postman_secret() {
|
|
2196
2677
|
if [[ -z "$subcmd" ]]; then
|
|
2197
2678
|
if [[ "$cur" == -* ]]; then
|
|
2198
2679
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2199
2680
|
else
|
|
2200
|
-
COMPREPLY=( $(compgen -W "
|
|
2681
|
+
COMPREPLY=( $(compgen -W "create list" -- "$cur") )
|
|
2201
2682
|
fi
|
|
2202
2683
|
return 0
|
|
2203
2684
|
fi
|
|
2204
2685
|
case "$subcmd" in
|
|
2205
|
-
|
|
2686
|
+
create) _postman_secret_create ;;
|
|
2687
|
+
list) _postman_secret_list ;;
|
|
2206
2688
|
esac
|
|
2207
2689
|
}
|
|
2208
2690
|
|
|
2209
|
-
|
|
2691
|
+
_postman_secret_create() {
|
|
2210
2692
|
if [[ "$cur" == -* ]]; then
|
|
2211
|
-
COMPREPLY=( $(compgen -W "--
|
|
2693
|
+
COMPREPLY=( $(compgen -W "--team-id -w --workspace --api-key --terminal --value-stdin --timeout -h --help" -- "$cur") )
|
|
2212
2694
|
return 0
|
|
2213
2695
|
fi
|
|
2214
2696
|
case "$prev" in
|
|
@@ -2216,11 +2698,12 @@ _postman_webhook_scripts_set() {
|
|
|
2216
2698
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2217
2699
|
return 0 ;;
|
|
2218
2700
|
esac
|
|
2701
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2219
2702
|
}
|
|
2220
2703
|
|
|
2221
|
-
|
|
2704
|
+
_postman_secret_list() {
|
|
2222
2705
|
if [[ "$cur" == -* ]]; then
|
|
2223
|
-
COMPREPLY=( $(compgen -W "-w --workspace --api-key -h --help" -- "$cur") )
|
|
2706
|
+
COMPREPLY=( $(compgen -W "-w --workspace --api-key --json -h --help" -- "$cur") )
|
|
2224
2707
|
return 0
|
|
2225
2708
|
fi
|
|
2226
2709
|
case "$prev" in
|
|
@@ -2230,43 +2713,49 @@ _postman_webhook_forward() {
|
|
|
2230
2713
|
esac
|
|
2231
2714
|
}
|
|
2232
2715
|
|
|
2233
|
-
|
|
2716
|
+
_postman_simulation() {
|
|
2234
2717
|
if [[ -z "$subcmd" ]]; then
|
|
2235
2718
|
if [[ "$cur" == -* ]]; then
|
|
2236
2719
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2237
2720
|
else
|
|
2238
|
-
COMPREPLY=( $(compgen -W "list get
|
|
2721
|
+
COMPREPLY=( $(compgen -W "create list get run push deploy update log delete" -- "$cur") )
|
|
2239
2722
|
fi
|
|
2240
2723
|
return 0
|
|
2241
2724
|
fi
|
|
2242
2725
|
case "$subcmd" in
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2726
|
+
create) _postman_simulation_create ;;
|
|
2727
|
+
list) _postman_simulation_list ;;
|
|
2728
|
+
get) _postman_simulation_get ;;
|
|
2729
|
+
run) _postman_simulation_run ;;
|
|
2730
|
+
push) _postman_simulation_push ;;
|
|
2731
|
+
deploy) _postman_simulation_deploy ;;
|
|
2732
|
+
update) _postman_simulation_update ;;
|
|
2733
|
+
log) _postman_simulation_log ;;
|
|
2734
|
+
delete) _postman_simulation_delete ;;
|
|
2251
2735
|
esac
|
|
2252
2736
|
}
|
|
2253
2737
|
|
|
2254
|
-
|
|
2738
|
+
_postman_simulation_create() {
|
|
2255
2739
|
if [[ "$cur" == -* ]]; then
|
|
2256
|
-
COMPREPLY=( $(compgen -W "-w --workspace --api-key
|
|
2740
|
+
COMPREPLY=( $(compgen -W "-n --name --mock --routing -o --output --force -w --workspace --api-key -h --help" -- "$cur") )
|
|
2257
2741
|
return 0
|
|
2258
2742
|
fi
|
|
2259
2743
|
case "$prev" in
|
|
2744
|
+
--mock)
|
|
2745
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2746
|
+
return 0 ;;
|
|
2747
|
+
-o|--output)
|
|
2748
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2749
|
+
return 0 ;;
|
|
2260
2750
|
--api-key)
|
|
2261
2751
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2262
2752
|
return 0 ;;
|
|
2263
2753
|
esac
|
|
2264
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
2265
2754
|
}
|
|
2266
2755
|
|
|
2267
|
-
|
|
2756
|
+
_postman_simulation_list() {
|
|
2268
2757
|
if [[ "$cur" == -* ]]; then
|
|
2269
|
-
COMPREPLY=( $(compgen -W "--api-key --
|
|
2758
|
+
COMPREPLY=( $(compgen -W "-w --workspace --api-key --json -h --help" -- "$cur") )
|
|
2270
2759
|
return 0
|
|
2271
2760
|
fi
|
|
2272
2761
|
case "$prev" in
|
|
@@ -2274,11 +2763,12 @@ _postman_dataset_get() {
|
|
|
2274
2763
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2275
2764
|
return 0 ;;
|
|
2276
2765
|
esac
|
|
2766
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2277
2767
|
}
|
|
2278
2768
|
|
|
2279
|
-
|
|
2769
|
+
_postman_simulation_get() {
|
|
2280
2770
|
if [[ "$cur" == -* ]]; then
|
|
2281
|
-
COMPREPLY=( $(compgen -W "
|
|
2771
|
+
COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
|
|
2282
2772
|
return 0
|
|
2283
2773
|
fi
|
|
2284
2774
|
case "$prev" in
|
|
@@ -2288,22 +2778,30 @@ _postman_dataset_query() {
|
|
|
2288
2778
|
esac
|
|
2289
2779
|
}
|
|
2290
2780
|
|
|
2291
|
-
|
|
2781
|
+
_postman_simulation_run() {
|
|
2292
2782
|
if [[ "$cur" == -* ]]; then
|
|
2293
|
-
COMPREPLY=( $(compgen -W "-
|
|
2783
|
+
COMPREPLY=( $(compgen -W "-e --environment -g --globals -p --port --dataset -w --workspace --simulation --api-key --no-history --output --proxy --proxy-port --scenario --session --log-format --log-body --doctor -h --help" -- "$cur") )
|
|
2294
2784
|
return 0
|
|
2295
2785
|
fi
|
|
2296
2786
|
case "$prev" in
|
|
2787
|
+
-e|--environment)
|
|
2788
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2789
|
+
return 0 ;;
|
|
2790
|
+
-g|--globals)
|
|
2791
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2792
|
+
return 0 ;;
|
|
2793
|
+
--dataset)
|
|
2794
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2795
|
+
return 0 ;;
|
|
2297
2796
|
--api-key)
|
|
2298
2797
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2299
2798
|
return 0 ;;
|
|
2300
2799
|
esac
|
|
2301
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
2302
2800
|
}
|
|
2303
2801
|
|
|
2304
|
-
|
|
2802
|
+
_postman_simulation_push() {
|
|
2305
2803
|
if [[ "$cur" == -* ]]; then
|
|
2306
|
-
COMPREPLY=( $(compgen -W "-
|
|
2804
|
+
COMPREPLY=( $(compgen -W "-w --workspace --api-key -h --help" -- "$cur") )
|
|
2307
2805
|
return 0
|
|
2308
2806
|
fi
|
|
2309
2807
|
case "$prev" in
|
|
@@ -2313,27 +2811,9 @@ _postman_dataset_delete() {
|
|
|
2313
2811
|
esac
|
|
2314
2812
|
}
|
|
2315
2813
|
|
|
2316
|
-
|
|
2317
|
-
if [[ -z "$subcmd" ]]; then
|
|
2318
|
-
if [[ "$cur" == -* ]]; then
|
|
2319
|
-
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2320
|
-
else
|
|
2321
|
-
COMPREPLY=( $(compgen -W "list add remove update test" -- "$cur") )
|
|
2322
|
-
fi
|
|
2323
|
-
return 0
|
|
2324
|
-
fi
|
|
2325
|
-
case "$subcmd" in
|
|
2326
|
-
list) _postman_dataset_source_list ;;
|
|
2327
|
-
add) _postman_dataset_source_add ;;
|
|
2328
|
-
remove) _postman_dataset_source_remove ;;
|
|
2329
|
-
update) _postman_dataset_source_update ;;
|
|
2330
|
-
test) _postman_dataset_source_test ;;
|
|
2331
|
-
esac
|
|
2332
|
-
}
|
|
2333
|
-
|
|
2334
|
-
_postman_dataset_source_list() {
|
|
2814
|
+
_postman_simulation_deploy() {
|
|
2335
2815
|
if [[ "$cur" == -* ]]; then
|
|
2336
|
-
COMPREPLY=( $(compgen -W "-
|
|
2816
|
+
COMPREPLY=( $(compgen -W "-w --workspace -n --name -s --slug --private -y --yes --api-key -h --help" -- "$cur") )
|
|
2337
2817
|
return 0
|
|
2338
2818
|
fi
|
|
2339
2819
|
case "$prev" in
|
|
@@ -2343,28 +2823,16 @@ _postman_dataset_source_list() {
|
|
|
2343
2823
|
esac
|
|
2344
2824
|
}
|
|
2345
2825
|
|
|
2346
|
-
|
|
2826
|
+
_postman_simulation_update() {
|
|
2347
2827
|
if [[ "$cur" == -* ]]; then
|
|
2348
|
-
COMPREPLY=( $(compgen -W "-
|
|
2828
|
+
COMPREPLY=( $(compgen -W "-n --name --routing --add-mock --route-key --api-key --json -h --help" -- "$cur") )
|
|
2349
2829
|
return 0
|
|
2350
2830
|
fi
|
|
2351
2831
|
case "$prev" in
|
|
2352
|
-
--
|
|
2353
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
2354
|
-
return 0 ;;
|
|
2355
|
-
--driver-jar)
|
|
2356
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
2357
|
-
return 0 ;;
|
|
2358
|
-
--vars-file)
|
|
2359
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
2360
|
-
return 0 ;;
|
|
2361
|
-
--java-path)
|
|
2832
|
+
--add-mock)
|
|
2362
2833
|
_postman_filematch '!*.@(json)' "$cur"
|
|
2363
2834
|
return 0 ;;
|
|
2364
|
-
--
|
|
2365
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2366
|
-
return 0 ;;
|
|
2367
|
-
--tls-certificate)
|
|
2835
|
+
--route-key)
|
|
2368
2836
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2369
2837
|
return 0 ;;
|
|
2370
2838
|
--api-key)
|
|
@@ -2373,9 +2841,9 @@ _postman_dataset_source_add() {
|
|
|
2373
2841
|
esac
|
|
2374
2842
|
}
|
|
2375
2843
|
|
|
2376
|
-
|
|
2844
|
+
_postman_simulation_log() {
|
|
2377
2845
|
if [[ "$cur" == -* ]]; then
|
|
2378
|
-
COMPREPLY=( $(compgen -W "
|
|
2846
|
+
COMPREPLY=( $(compgen -W "--mock --limit --method --status --path --since --until --api-key --json -h --help" -- "$cur") )
|
|
2379
2847
|
return 0
|
|
2380
2848
|
fi
|
|
2381
2849
|
case "$prev" in
|
|
@@ -2383,74 +2851,76 @@ _postman_dataset_source_remove() {
|
|
|
2383
2851
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2384
2852
|
return 0 ;;
|
|
2385
2853
|
esac
|
|
2854
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2386
2855
|
}
|
|
2387
2856
|
|
|
2388
|
-
|
|
2857
|
+
_postman_simulation_delete() {
|
|
2389
2858
|
if [[ "$cur" == -* ]]; then
|
|
2390
|
-
COMPREPLY=( $(compgen -W "-
|
|
2859
|
+
COMPREPLY=( $(compgen -W "-y --yes --api-key -h --help" -- "$cur") )
|
|
2391
2860
|
return 0
|
|
2392
2861
|
fi
|
|
2393
2862
|
case "$prev" in
|
|
2394
|
-
--file)
|
|
2395
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
2396
|
-
return 0 ;;
|
|
2397
|
-
--driver-jar)
|
|
2398
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
2399
|
-
return 0 ;;
|
|
2400
|
-
--vars-file)
|
|
2401
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
2402
|
-
return 0 ;;
|
|
2403
|
-
--java-path)
|
|
2404
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
2405
|
-
return 0 ;;
|
|
2406
|
-
--ssh-private-key)
|
|
2407
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2408
|
-
return 0 ;;
|
|
2409
|
-
--tls-certificate)
|
|
2410
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2411
|
-
return 0 ;;
|
|
2412
2863
|
--api-key)
|
|
2413
2864
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2414
2865
|
return 0 ;;
|
|
2415
2866
|
esac
|
|
2416
2867
|
}
|
|
2417
2868
|
|
|
2418
|
-
|
|
2869
|
+
_postman_team() {
|
|
2870
|
+
if [[ -z "$subcmd" ]]; then
|
|
2871
|
+
if [[ "$cur" == -* ]]; then
|
|
2872
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2873
|
+
else
|
|
2874
|
+
COMPREPLY=( $(compgen -W "list" -- "$cur") )
|
|
2875
|
+
fi
|
|
2876
|
+
return 0
|
|
2877
|
+
fi
|
|
2878
|
+
case "$subcmd" in
|
|
2879
|
+
list) _postman_team_list ;;
|
|
2880
|
+
esac
|
|
2881
|
+
}
|
|
2882
|
+
|
|
2883
|
+
_postman_team_list() {
|
|
2419
2884
|
if [[ "$cur" == -* ]]; then
|
|
2420
|
-
COMPREPLY=( $(compgen -W "
|
|
2885
|
+
COMPREPLY=( $(compgen -W "--can-create-workspace --json --timeout -h --help" -- "$cur") )
|
|
2421
2886
|
return 0
|
|
2422
2887
|
fi
|
|
2423
2888
|
case "$prev" in
|
|
2424
|
-
--java-path)
|
|
2425
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
2426
|
-
return 0 ;;
|
|
2427
|
-
--api-key)
|
|
2428
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2429
|
-
return 0 ;;
|
|
2430
2889
|
esac
|
|
2431
2890
|
}
|
|
2432
2891
|
|
|
2433
|
-
|
|
2892
|
+
_postman_update() {
|
|
2893
|
+
if [[ "$cur" == -* ]]; then
|
|
2894
|
+
COMPREPLY=( $(compgen -W "--check -h --help" -- "$cur") )
|
|
2895
|
+
return 0
|
|
2896
|
+
fi
|
|
2897
|
+
}
|
|
2898
|
+
|
|
2899
|
+
_postman_webhook() {
|
|
2434
2900
|
if [[ -z "$subcmd" ]]; then
|
|
2435
2901
|
if [[ "$cur" == -* ]]; then
|
|
2436
2902
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2437
2903
|
else
|
|
2438
|
-
COMPREPLY=( $(compgen -W "
|
|
2904
|
+
COMPREPLY=( $(compgen -W "create start pause list delete status requests scripts forward" -- "$cur") )
|
|
2439
2905
|
fi
|
|
2440
2906
|
return 0
|
|
2441
2907
|
fi
|
|
2442
2908
|
case "$subcmd" in
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2909
|
+
create) _postman_webhook_create ;;
|
|
2910
|
+
start) _postman_webhook_start ;;
|
|
2911
|
+
pause) _postman_webhook_pause ;;
|
|
2912
|
+
list) _postman_webhook_list ;;
|
|
2913
|
+
delete) _postman_webhook_delete ;;
|
|
2914
|
+
status) _postman_webhook_status ;;
|
|
2915
|
+
requests) _postman_webhook_requests ;;
|
|
2916
|
+
scripts) _postman_webhook_scripts ;;
|
|
2917
|
+
forward) _postman_webhook_forward ;;
|
|
2448
2918
|
esac
|
|
2449
2919
|
}
|
|
2450
2920
|
|
|
2451
|
-
|
|
2921
|
+
_postman_webhook_create() {
|
|
2452
2922
|
if [[ "$cur" == -* ]]; then
|
|
2453
|
-
COMPREPLY=( $(compgen -W "-
|
|
2923
|
+
COMPREPLY=( $(compgen -W "-t --title -w --workspace --api-key -h --help" -- "$cur") )
|
|
2454
2924
|
return 0
|
|
2455
2925
|
fi
|
|
2456
2926
|
case "$prev" in
|
|
@@ -2460,9 +2930,9 @@ _postman_dataset_view_list() {
|
|
|
2460
2930
|
esac
|
|
2461
2931
|
}
|
|
2462
2932
|
|
|
2463
|
-
|
|
2933
|
+
_postman_webhook_start() {
|
|
2464
2934
|
if [[ "$cur" == -* ]]; then
|
|
2465
|
-
COMPREPLY=( $(compgen -W "-
|
|
2935
|
+
COMPREPLY=( $(compgen -W "-w --workspace --api-key -h --help" -- "$cur") )
|
|
2466
2936
|
return 0
|
|
2467
2937
|
fi
|
|
2468
2938
|
case "$prev" in
|
|
@@ -2472,9 +2942,9 @@ _postman_dataset_view_run() {
|
|
|
2472
2942
|
esac
|
|
2473
2943
|
}
|
|
2474
2944
|
|
|
2475
|
-
|
|
2945
|
+
_postman_webhook_pause() {
|
|
2476
2946
|
if [[ "$cur" == -* ]]; then
|
|
2477
|
-
COMPREPLY=( $(compgen -W "-
|
|
2947
|
+
COMPREPLY=( $(compgen -W "-w --workspace --api-key -h --help" -- "$cur") )
|
|
2478
2948
|
return 0
|
|
2479
2949
|
fi
|
|
2480
2950
|
case "$prev" in
|
|
@@ -2484,9 +2954,9 @@ _postman_dataset_view_create() {
|
|
|
2484
2954
|
esac
|
|
2485
2955
|
}
|
|
2486
2956
|
|
|
2487
|
-
|
|
2957
|
+
_postman_webhook_list() {
|
|
2488
2958
|
if [[ "$cur" == -* ]]; then
|
|
2489
|
-
COMPREPLY=( $(compgen -W "-
|
|
2959
|
+
COMPREPLY=( $(compgen -W "-w --workspace --api-key -h --help" -- "$cur") )
|
|
2490
2960
|
return 0
|
|
2491
2961
|
fi
|
|
2492
2962
|
case "$prev" in
|
|
@@ -2496,9 +2966,9 @@ _postman_dataset_view_delete() {
|
|
|
2496
2966
|
esac
|
|
2497
2967
|
}
|
|
2498
2968
|
|
|
2499
|
-
|
|
2969
|
+
_postman_webhook_delete() {
|
|
2500
2970
|
if [[ "$cur" == -* ]]; then
|
|
2501
|
-
COMPREPLY=( $(compgen -W "-
|
|
2971
|
+
COMPREPLY=( $(compgen -W "-w --workspace --api-key -h --help" -- "$cur") )
|
|
2502
2972
|
return 0
|
|
2503
2973
|
fi
|
|
2504
2974
|
case "$prev" in
|
|
@@ -2508,92 +2978,105 @@ _postman_dataset_view_update() {
|
|
|
2508
2978
|
esac
|
|
2509
2979
|
}
|
|
2510
2980
|
|
|
2511
|
-
|
|
2512
|
-
if [[ -z "$subcmd" ]]; then
|
|
2513
|
-
if [[ "$cur" == -* ]]; then
|
|
2514
|
-
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2515
|
-
else
|
|
2516
|
-
COMPREPLY=( $(compgen -W "inspect" -- "$cur") )
|
|
2517
|
-
fi
|
|
2518
|
-
return 0
|
|
2519
|
-
fi
|
|
2520
|
-
case "$subcmd" in
|
|
2521
|
-
inspect) _postman_dataset_jdbc_inspect ;;
|
|
2522
|
-
esac
|
|
2523
|
-
}
|
|
2524
|
-
|
|
2525
|
-
_postman_dataset_jdbc_inspect() {
|
|
2981
|
+
_postman_webhook_status() {
|
|
2526
2982
|
if [[ "$cur" == -* ]]; then
|
|
2527
|
-
COMPREPLY=( $(compgen -W "
|
|
2983
|
+
COMPREPLY=( $(compgen -W "-w --workspace --api-key -h --help" -- "$cur") )
|
|
2528
2984
|
return 0
|
|
2529
2985
|
fi
|
|
2530
2986
|
case "$prev" in
|
|
2531
|
-
--
|
|
2532
|
-
_postman_filematch '!*.@(
|
|
2987
|
+
--api-key)
|
|
2988
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2533
2989
|
return 0 ;;
|
|
2534
2990
|
esac
|
|
2535
2991
|
}
|
|
2536
2992
|
|
|
2537
|
-
|
|
2993
|
+
_postman_webhook_requests() {
|
|
2538
2994
|
if [[ -z "$subcmd" ]]; then
|
|
2539
2995
|
if [[ "$cur" == -* ]]; then
|
|
2540
2996
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2541
2997
|
else
|
|
2542
|
-
COMPREPLY=( $(compgen -W "
|
|
2998
|
+
COMPREPLY=( $(compgen -W "list describe replay" -- "$cur") )
|
|
2543
2999
|
fi
|
|
2544
3000
|
return 0
|
|
2545
3001
|
fi
|
|
2546
3002
|
case "$subcmd" in
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
update) _postman_dependency_update ;;
|
|
2551
|
-
remove) _postman_dependency_remove ;;
|
|
3003
|
+
list) _postman_webhook_requests_list ;;
|
|
3004
|
+
describe) _postman_webhook_requests_describe ;;
|
|
3005
|
+
replay) _postman_webhook_requests_replay ;;
|
|
2552
3006
|
esac
|
|
2553
3007
|
}
|
|
2554
3008
|
|
|
2555
|
-
|
|
3009
|
+
_postman_webhook_requests_list() {
|
|
2556
3010
|
if [[ "$cur" == -* ]]; then
|
|
2557
|
-
COMPREPLY=( $(compgen -W "-w --workspace
|
|
3011
|
+
COMPREPLY=( $(compgen -W "-w --workspace --cursor --api-key -h --help" -- "$cur") )
|
|
2558
3012
|
return 0
|
|
2559
3013
|
fi
|
|
2560
3014
|
case "$prev" in
|
|
3015
|
+
--api-key)
|
|
3016
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
3017
|
+
return 0 ;;
|
|
2561
3018
|
esac
|
|
2562
3019
|
}
|
|
2563
3020
|
|
|
2564
|
-
|
|
3021
|
+
_postman_webhook_requests_describe() {
|
|
2565
3022
|
if [[ "$cur" == -* ]]; then
|
|
2566
|
-
COMPREPLY=( $(compgen -W "--
|
|
3023
|
+
COMPREPLY=( $(compgen -W "-w --workspace --api-key --verbose -h --help" -- "$cur") )
|
|
2567
3024
|
return 0
|
|
2568
3025
|
fi
|
|
2569
3026
|
case "$prev" in
|
|
3027
|
+
--api-key)
|
|
3028
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
3029
|
+
return 0 ;;
|
|
2570
3030
|
esac
|
|
2571
3031
|
}
|
|
2572
3032
|
|
|
2573
|
-
|
|
3033
|
+
_postman_webhook_requests_replay() {
|
|
2574
3034
|
if [[ "$cur" == -* ]]; then
|
|
2575
|
-
COMPREPLY=( $(compgen -W "--
|
|
3035
|
+
COMPREPLY=( $(compgen -W "-w --workspace --api-key -h --help" -- "$cur") )
|
|
2576
3036
|
return 0
|
|
2577
3037
|
fi
|
|
2578
3038
|
case "$prev" in
|
|
3039
|
+
--api-key)
|
|
3040
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
3041
|
+
return 0 ;;
|
|
2579
3042
|
esac
|
|
2580
3043
|
}
|
|
2581
3044
|
|
|
2582
|
-
|
|
3045
|
+
_postman_webhook_scripts() {
|
|
3046
|
+
if [[ -z "$subcmd" ]]; then
|
|
3047
|
+
if [[ "$cur" == -* ]]; then
|
|
3048
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
3049
|
+
else
|
|
3050
|
+
COMPREPLY=( $(compgen -W "set" -- "$cur") )
|
|
3051
|
+
fi
|
|
3052
|
+
return 0
|
|
3053
|
+
fi
|
|
3054
|
+
case "$subcmd" in
|
|
3055
|
+
set) _postman_webhook_scripts_set ;;
|
|
3056
|
+
esac
|
|
3057
|
+
}
|
|
3058
|
+
|
|
3059
|
+
_postman_webhook_scripts_set() {
|
|
2583
3060
|
if [[ "$cur" == -* ]]; then
|
|
2584
|
-
COMPREPLY=( $(compgen -W "--
|
|
3061
|
+
COMPREPLY=( $(compgen -W "--event -w --workspace --api-key -h --help" -- "$cur") )
|
|
2585
3062
|
return 0
|
|
2586
3063
|
fi
|
|
2587
3064
|
case "$prev" in
|
|
3065
|
+
--api-key)
|
|
3066
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
3067
|
+
return 0 ;;
|
|
2588
3068
|
esac
|
|
2589
3069
|
}
|
|
2590
3070
|
|
|
2591
|
-
|
|
3071
|
+
_postman_webhook_forward() {
|
|
2592
3072
|
if [[ "$cur" == -* ]]; then
|
|
2593
|
-
COMPREPLY=( $(compgen -W "
|
|
3073
|
+
COMPREPLY=( $(compgen -W "-w --workspace --api-key -h --help" -- "$cur") )
|
|
2594
3074
|
return 0
|
|
2595
3075
|
fi
|
|
2596
3076
|
case "$prev" in
|
|
3077
|
+
--api-key)
|
|
3078
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
3079
|
+
return 0 ;;
|
|
2597
3080
|
esac
|
|
2598
3081
|
}
|
|
2599
3082
|
|