postman-cli-completion 1.56.3 → 1.58.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 +490 -8
- package/completions/fish/postman.fish +327 -54
- package/completions/zsh/_postman +587 -48
- 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.58.0)
|
|
2
2
|
# Auto-generated by scripts/generate.mjs — DO NOT EDIT
|
|
3
3
|
# Source: spec/commands.json
|
|
4
4
|
# https://github.com/yokawasa/postman-cli-completion
|
|
@@ -22,7 +22,7 @@ _postman() {
|
|
|
22
22
|
cur="${COMP_WORDS[COMP_CWORD]}"
|
|
23
23
|
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
|
24
24
|
|
|
25
|
-
local top_commands="login logout init skills collection environment globals api runner spec monitor workspace ws performance flows fl request sdk mock application app simulate context search webhook dataset"
|
|
25
|
+
local top_commands="login signup logout init whoami skills collection environment globals api runner spec monitor workspace ws performance flows fl request sdk mock application app simulate context context-graph search webhook dataset dependency"
|
|
26
26
|
local global_flags="-v --version --silent --color -h --help -h --help"
|
|
27
27
|
|
|
28
28
|
local i cmd="" subcmd=""
|
|
@@ -47,8 +47,10 @@ _postman() {
|
|
|
47
47
|
|
|
48
48
|
case "$cmd" in
|
|
49
49
|
login) _postman_login ;;
|
|
50
|
+
signup) _postman_signup ;;
|
|
50
51
|
logout) _postman_logout ;;
|
|
51
52
|
init) _postman_init ;;
|
|
53
|
+
whoami) _postman_whoami ;;
|
|
52
54
|
skills) _postman_skills ;;
|
|
53
55
|
collection) _postman_collection ;;
|
|
54
56
|
environment) _postman_environment ;;
|
|
@@ -66,9 +68,11 @@ _postman() {
|
|
|
66
68
|
application|app) _postman_application ;;
|
|
67
69
|
simulate) _postman_simulate ;;
|
|
68
70
|
context) _postman_context ;;
|
|
71
|
+
context-graph) _postman_context_graph ;;
|
|
69
72
|
search) _postman_search ;;
|
|
70
73
|
webhook) _postman_webhook ;;
|
|
71
74
|
dataset) _postman_dataset ;;
|
|
75
|
+
dependency) _postman_dependency ;;
|
|
72
76
|
esac
|
|
73
77
|
}
|
|
74
78
|
|
|
@@ -84,6 +88,13 @@ _postman_login() {
|
|
|
84
88
|
esac
|
|
85
89
|
}
|
|
86
90
|
|
|
91
|
+
_postman_signup() {
|
|
92
|
+
if [[ "$cur" == -* ]]; then
|
|
93
|
+
COMPREPLY=( $(compgen -W "--browser --json -h --help" -- "$cur") )
|
|
94
|
+
return 0
|
|
95
|
+
fi
|
|
96
|
+
}
|
|
97
|
+
|
|
87
98
|
_postman_logout() {
|
|
88
99
|
if [[ "$cur" == -* ]]; then
|
|
89
100
|
COMPREPLY=( $(compgen -W "--alias -h --help" -- "$cur") )
|
|
@@ -106,6 +117,13 @@ _postman_init() {
|
|
|
106
117
|
_postman_filematch '!*.@(json)' "$cur"
|
|
107
118
|
}
|
|
108
119
|
|
|
120
|
+
_postman_whoami() {
|
|
121
|
+
if [[ "$cur" == -* ]]; then
|
|
122
|
+
COMPREPLY=( $(compgen -W "--json -h --help" -- "$cur") )
|
|
123
|
+
return 0
|
|
124
|
+
fi
|
|
125
|
+
}
|
|
126
|
+
|
|
109
127
|
_postman_skills() {
|
|
110
128
|
if [[ -z "$subcmd" ]]; then
|
|
111
129
|
if [[ "$cur" == -* ]]; then
|
|
@@ -259,15 +277,89 @@ _postman_environment() {
|
|
|
259
277
|
if [[ "$cur" == -* ]]; then
|
|
260
278
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
261
279
|
else
|
|
262
|
-
COMPREPLY=( $(compgen -W "lint" -- "$cur") )
|
|
280
|
+
COMPREPLY=( $(compgen -W "list get var lint" -- "$cur") )
|
|
263
281
|
fi
|
|
264
282
|
return 0
|
|
265
283
|
fi
|
|
266
284
|
case "$subcmd" in
|
|
285
|
+
list) _postman_environment_list ;;
|
|
286
|
+
get) _postman_environment_get ;;
|
|
287
|
+
var) _postman_environment_var ;;
|
|
267
288
|
lint) _postman_environment_lint ;;
|
|
268
289
|
esac
|
|
269
290
|
}
|
|
270
291
|
|
|
292
|
+
_postman_environment_list() {
|
|
293
|
+
if [[ "$cur" == -* ]]; then
|
|
294
|
+
COMPREPLY=( $(compgen -W "-w --workspace -f --filter --verbose --json -h --help" -- "$cur") )
|
|
295
|
+
return 0
|
|
296
|
+
fi
|
|
297
|
+
case "$prev" in
|
|
298
|
+
esac
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
_postman_environment_get() {
|
|
302
|
+
if [[ "$cur" == -* ]]; then
|
|
303
|
+
COMPREPLY=( $(compgen -W "--verbose --json --show-secrets -h --help" -- "$cur") )
|
|
304
|
+
return 0
|
|
305
|
+
fi
|
|
306
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
_postman_environment_var() {
|
|
310
|
+
if [[ -z "$subcmd" ]]; then
|
|
311
|
+
if [[ "$cur" == -* ]]; then
|
|
312
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
313
|
+
else
|
|
314
|
+
COMPREPLY=( $(compgen -W "set get unset" -- "$cur") )
|
|
315
|
+
fi
|
|
316
|
+
return 0
|
|
317
|
+
fi
|
|
318
|
+
case "$subcmd" in
|
|
319
|
+
set) _postman_environment_var_set ;;
|
|
320
|
+
get) _postman_environment_var_get ;;
|
|
321
|
+
unset) _postman_environment_var_unset ;;
|
|
322
|
+
esac
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
_postman_environment_var_set() {
|
|
326
|
+
if [[ "$cur" == -* ]]; then
|
|
327
|
+
COMPREPLY=( $(compgen -W "-e --environment --verbose --json -h --help" -- "$cur") )
|
|
328
|
+
return 0
|
|
329
|
+
fi
|
|
330
|
+
case "$prev" in
|
|
331
|
+
-e|--environment)
|
|
332
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
333
|
+
return 0 ;;
|
|
334
|
+
esac
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
_postman_environment_var_get() {
|
|
338
|
+
if [[ "$cur" == -* ]]; then
|
|
339
|
+
COMPREPLY=( $(compgen -W "-e --environment --verbose --json --show-secrets -h --help" -- "$cur") )
|
|
340
|
+
return 0
|
|
341
|
+
fi
|
|
342
|
+
case "$prev" in
|
|
343
|
+
-e|--environment)
|
|
344
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
345
|
+
return 0 ;;
|
|
346
|
+
esac
|
|
347
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
_postman_environment_var_unset() {
|
|
351
|
+
if [[ "$cur" == -* ]]; then
|
|
352
|
+
COMPREPLY=( $(compgen -W "-e --environment --verbose --json -h --help" -- "$cur") )
|
|
353
|
+
return 0
|
|
354
|
+
fi
|
|
355
|
+
case "$prev" in
|
|
356
|
+
-e|--environment)
|
|
357
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
358
|
+
return 0 ;;
|
|
359
|
+
esac
|
|
360
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
361
|
+
}
|
|
362
|
+
|
|
271
363
|
_postman_environment_lint() {
|
|
272
364
|
if [[ "$cur" == -* ]]; then
|
|
273
365
|
COMPREPLY=( $(compgen -W "-f --fail-severity -o --output -h --help" -- "$cur") )
|
|
@@ -343,12 +435,14 @@ _postman_runner() {
|
|
|
343
435
|
if [[ "$cur" == -* ]]; then
|
|
344
436
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
345
437
|
else
|
|
346
|
-
COMPREPLY=( $(compgen -W "start" -- "$cur") )
|
|
438
|
+
COMPREPLY=( $(compgen -W "start list regions" -- "$cur") )
|
|
347
439
|
fi
|
|
348
440
|
return 0
|
|
349
441
|
fi
|
|
350
442
|
case "$subcmd" in
|
|
351
443
|
start) _postman_runner_start ;;
|
|
444
|
+
list) _postman_runner_list ;;
|
|
445
|
+
regions) _postman_runner_regions ;;
|
|
352
446
|
esac
|
|
353
447
|
}
|
|
354
448
|
|
|
@@ -367,18 +461,46 @@ _postman_runner_start() {
|
|
|
367
461
|
esac
|
|
368
462
|
}
|
|
369
463
|
|
|
464
|
+
_postman_runner_list() {
|
|
465
|
+
if [[ "$cur" == -* ]]; then
|
|
466
|
+
COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
|
|
467
|
+
return 0
|
|
468
|
+
fi
|
|
469
|
+
case "$prev" in
|
|
470
|
+
--api-key)
|
|
471
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
472
|
+
return 0 ;;
|
|
473
|
+
esac
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
_postman_runner_regions() {
|
|
477
|
+
if [[ "$cur" == -* ]]; then
|
|
478
|
+
COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
|
|
479
|
+
return 0
|
|
480
|
+
fi
|
|
481
|
+
case "$prev" in
|
|
482
|
+
--api-key)
|
|
483
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
484
|
+
return 0 ;;
|
|
485
|
+
esac
|
|
486
|
+
}
|
|
487
|
+
|
|
370
488
|
_postman_spec() {
|
|
371
489
|
if [[ -z "$subcmd" ]]; then
|
|
372
490
|
if [[ "$cur" == -* ]]; then
|
|
373
491
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
374
492
|
else
|
|
375
|
-
COMPREPLY=( $(compgen -W "lint ai-readiness" -- "$cur") )
|
|
493
|
+
COMPREPLY=( $(compgen -W "lint ai-readiness list get file create" -- "$cur") )
|
|
376
494
|
fi
|
|
377
495
|
return 0
|
|
378
496
|
fi
|
|
379
497
|
case "$subcmd" in
|
|
380
498
|
lint) _postman_spec_lint ;;
|
|
381
499
|
ai-readiness) _postman_spec_ai_readiness ;;
|
|
500
|
+
list) _postman_spec_list ;;
|
|
501
|
+
get) _postman_spec_get ;;
|
|
502
|
+
file) _postman_spec_file ;;
|
|
503
|
+
create) _postman_spec_create ;;
|
|
382
504
|
esac
|
|
383
505
|
}
|
|
384
506
|
|
|
@@ -400,26 +522,280 @@ _postman_spec_ai_readiness() {
|
|
|
400
522
|
esac
|
|
401
523
|
}
|
|
402
524
|
|
|
525
|
+
_postman_spec_list() {
|
|
526
|
+
if [[ "$cur" == -* ]]; then
|
|
527
|
+
COMPREPLY=( $(compgen -W "-w --workspace --api-key --json -h --help" -- "$cur") )
|
|
528
|
+
return 0
|
|
529
|
+
fi
|
|
530
|
+
case "$prev" in
|
|
531
|
+
--api-key)
|
|
532
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
533
|
+
return 0 ;;
|
|
534
|
+
esac
|
|
535
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
_postman_spec_get() {
|
|
539
|
+
if [[ "$cur" == -* ]]; then
|
|
540
|
+
COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
|
|
541
|
+
return 0
|
|
542
|
+
fi
|
|
543
|
+
case "$prev" in
|
|
544
|
+
--api-key)
|
|
545
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
546
|
+
return 0 ;;
|
|
547
|
+
esac
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
_postman_spec_file() {
|
|
551
|
+
if [[ -z "$subcmd" ]]; then
|
|
552
|
+
if [[ "$cur" == -* ]]; then
|
|
553
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
554
|
+
else
|
|
555
|
+
COMPREPLY=( $(compgen -W "add update rm" -- "$cur") )
|
|
556
|
+
fi
|
|
557
|
+
return 0
|
|
558
|
+
fi
|
|
559
|
+
case "$subcmd" in
|
|
560
|
+
add) _postman_spec_file_add ;;
|
|
561
|
+
update) _postman_spec_file_update ;;
|
|
562
|
+
rm) _postman_spec_file_rm ;;
|
|
563
|
+
esac
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
_postman_spec_file_add() {
|
|
567
|
+
if [[ "$cur" == -* ]]; then
|
|
568
|
+
COMPREPLY=( $(compgen -W "-c --content --api-key -h --help" -- "$cur") )
|
|
569
|
+
return 0
|
|
570
|
+
fi
|
|
571
|
+
case "$prev" in
|
|
572
|
+
--api-key)
|
|
573
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
574
|
+
return 0 ;;
|
|
575
|
+
esac
|
|
576
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
_postman_spec_file_update() {
|
|
580
|
+
if [[ "$cur" == -* ]]; then
|
|
581
|
+
COMPREPLY=( $(compgen -W "-c --content --api-key -h --help" -- "$cur") )
|
|
582
|
+
return 0
|
|
583
|
+
fi
|
|
584
|
+
case "$prev" in
|
|
585
|
+
--api-key)
|
|
586
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
587
|
+
return 0 ;;
|
|
588
|
+
esac
|
|
589
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
_postman_spec_file_rm() {
|
|
593
|
+
if [[ "$cur" == -* ]]; then
|
|
594
|
+
COMPREPLY=( $(compgen -W "-y --yes --api-key -h --help" -- "$cur") )
|
|
595
|
+
return 0
|
|
596
|
+
fi
|
|
597
|
+
case "$prev" in
|
|
598
|
+
--api-key)
|
|
599
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
600
|
+
return 0 ;;
|
|
601
|
+
esac
|
|
602
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
_postman_spec_create() {
|
|
606
|
+
if [[ "$cur" == -* ]]; then
|
|
607
|
+
COMPREPLY=( $(compgen -W "-n --name -t --type --spec-version -f --format -w --workspace --force --api-key -h --help" -- "$cur") )
|
|
608
|
+
return 0
|
|
609
|
+
fi
|
|
610
|
+
case "$prev" in
|
|
611
|
+
--api-key)
|
|
612
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
613
|
+
return 0 ;;
|
|
614
|
+
esac
|
|
615
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
616
|
+
}
|
|
617
|
+
|
|
403
618
|
_postman_monitor() {
|
|
404
619
|
if [[ -z "$subcmd" ]]; then
|
|
405
620
|
if [[ "$cur" == -* ]]; then
|
|
406
621
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
407
622
|
else
|
|
408
|
-
COMPREPLY=( $(compgen -W "run" -- "$cur") )
|
|
623
|
+
COMPREPLY=( $(compgen -W "run create update delete jobs runs list get pause resume" -- "$cur") )
|
|
409
624
|
fi
|
|
410
625
|
return 0
|
|
411
626
|
fi
|
|
412
627
|
case "$subcmd" in
|
|
413
628
|
run) _postman_monitor_run ;;
|
|
629
|
+
create) _postman_monitor_create ;;
|
|
630
|
+
update) _postman_monitor_update ;;
|
|
631
|
+
delete) _postman_monitor_delete ;;
|
|
632
|
+
jobs) _postman_monitor_jobs ;;
|
|
633
|
+
runs) _postman_monitor_runs ;;
|
|
634
|
+
list) _postman_monitor_list ;;
|
|
635
|
+
get) _postman_monitor_get ;;
|
|
636
|
+
pause) _postman_monitor_pause ;;
|
|
637
|
+
resume) _postman_monitor_resume ;;
|
|
414
638
|
esac
|
|
415
639
|
}
|
|
416
640
|
|
|
417
641
|
_postman_monitor_run() {
|
|
418
642
|
if [[ "$cur" == -* ]]; then
|
|
419
|
-
COMPREPLY=( $(compgen -W "-x --suppress-exit-code -t --timeout -h --help" -- "$cur") )
|
|
643
|
+
COMPREPLY=( $(compgen -W "--api-key -x --suppress-exit-code -t --timeout --async --json -h --help" -- "$cur") )
|
|
644
|
+
return 0
|
|
645
|
+
fi
|
|
646
|
+
case "$prev" in
|
|
647
|
+
--api-key)
|
|
648
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
649
|
+
return 0 ;;
|
|
650
|
+
esac
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
_postman_monitor_create() {
|
|
654
|
+
if [[ "$cur" == -* ]]; then
|
|
655
|
+
COMPREPLY=( $(compgen -W "-c --collection --name --environment -w --workspace --schedule --timezone --runner --notify-email --notification-limit --retry --timeout --delay --strict-ssl --insecure --follow-redirects --block-redirects --dataset-id --dataset-view-id --iteration-count --iteration-strategy --no-run-now --api-key --json -h --help" -- "$cur") )
|
|
656
|
+
return 0
|
|
657
|
+
fi
|
|
658
|
+
case "$prev" in
|
|
659
|
+
--api-key)
|
|
660
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
661
|
+
return 0 ;;
|
|
662
|
+
esac
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
_postman_monitor_update() {
|
|
666
|
+
if [[ "$cur" == -* ]]; then
|
|
667
|
+
COMPREPLY=( $(compgen -W "--name --schedule --timezone --runner --notify-email --clear-notifications --notification-limit --retry --timeout --delay --strict-ssl --insecure --follow-redirects --block-redirects --dataset-id --dataset-view-id --iteration-count --iteration-strategy --api-key --json -h --help" -- "$cur") )
|
|
668
|
+
return 0
|
|
669
|
+
fi
|
|
670
|
+
case "$prev" in
|
|
671
|
+
--api-key)
|
|
672
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
673
|
+
return 0 ;;
|
|
674
|
+
esac
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
_postman_monitor_delete() {
|
|
678
|
+
if [[ "$cur" == -* ]]; then
|
|
679
|
+
COMPREPLY=( $(compgen -W "-y --yes --api-key --json -h --help" -- "$cur") )
|
|
680
|
+
return 0
|
|
681
|
+
fi
|
|
682
|
+
case "$prev" in
|
|
683
|
+
--api-key)
|
|
684
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
685
|
+
return 0 ;;
|
|
686
|
+
esac
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
_postman_monitor_jobs() {
|
|
690
|
+
if [[ -z "$subcmd" ]]; then
|
|
691
|
+
if [[ "$cur" == -* ]]; then
|
|
692
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
693
|
+
else
|
|
694
|
+
COMPREPLY=( $(compgen -W "list get" -- "$cur") )
|
|
695
|
+
fi
|
|
696
|
+
return 0
|
|
697
|
+
fi
|
|
698
|
+
case "$subcmd" in
|
|
699
|
+
list) _postman_monitor_jobs_list ;;
|
|
700
|
+
get) _postman_monitor_jobs_get ;;
|
|
701
|
+
esac
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
_postman_monitor_jobs_list() {
|
|
705
|
+
if [[ "$cur" == -* ]]; then
|
|
706
|
+
COMPREPLY=( $(compgen -W "--api-key --result --trigger --since --limit --cursor --json -h --help" -- "$cur") )
|
|
707
|
+
return 0
|
|
708
|
+
fi
|
|
709
|
+
case "$prev" in
|
|
710
|
+
--api-key)
|
|
711
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
712
|
+
return 0 ;;
|
|
713
|
+
esac
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
_postman_monitor_jobs_get() {
|
|
717
|
+
if [[ "$cur" == -* ]]; then
|
|
718
|
+
COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
|
|
719
|
+
return 0
|
|
720
|
+
fi
|
|
721
|
+
case "$prev" in
|
|
722
|
+
--api-key)
|
|
723
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
724
|
+
return 0 ;;
|
|
725
|
+
esac
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
_postman_monitor_runs() {
|
|
729
|
+
if [[ -z "$subcmd" ]]; then
|
|
730
|
+
if [[ "$cur" == -* ]]; then
|
|
731
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
732
|
+
else
|
|
733
|
+
COMPREPLY=( $(compgen -W "get" -- "$cur") )
|
|
734
|
+
fi
|
|
735
|
+
return 0
|
|
736
|
+
fi
|
|
737
|
+
case "$subcmd" in
|
|
738
|
+
get) _postman_monitor_runs_get ;;
|
|
739
|
+
esac
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
_postman_monitor_runs_get() {
|
|
743
|
+
if [[ "$cur" == -* ]]; then
|
|
744
|
+
COMPREPLY=( $(compgen -W "--api-key --attempt --failed-only --json -h --help" -- "$cur") )
|
|
745
|
+
return 0
|
|
746
|
+
fi
|
|
747
|
+
case "$prev" in
|
|
748
|
+
--api-key)
|
|
749
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
750
|
+
return 0 ;;
|
|
751
|
+
esac
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
_postman_monitor_list() {
|
|
755
|
+
if [[ "$cur" == -* ]]; then
|
|
756
|
+
COMPREPLY=( $(compgen -W "--api-key -w --workspace -c --collection --environment --runner --owner --team --active --limit --offset --cursor --columns --no-headers -f --filter --sort --json -h --help" -- "$cur") )
|
|
420
757
|
return 0
|
|
421
758
|
fi
|
|
422
759
|
case "$prev" in
|
|
760
|
+
--api-key)
|
|
761
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
762
|
+
return 0 ;;
|
|
763
|
+
esac
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
_postman_monitor_get() {
|
|
767
|
+
if [[ "$cur" == -* ]]; then
|
|
768
|
+
COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
|
|
769
|
+
return 0
|
|
770
|
+
fi
|
|
771
|
+
case "$prev" in
|
|
772
|
+
--api-key)
|
|
773
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
774
|
+
return 0 ;;
|
|
775
|
+
esac
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
_postman_monitor_pause() {
|
|
779
|
+
if [[ "$cur" == -* ]]; then
|
|
780
|
+
COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
|
|
781
|
+
return 0
|
|
782
|
+
fi
|
|
783
|
+
case "$prev" in
|
|
784
|
+
--api-key)
|
|
785
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
786
|
+
return 0 ;;
|
|
787
|
+
esac
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
_postman_monitor_resume() {
|
|
791
|
+
if [[ "$cur" == -* ]]; then
|
|
792
|
+
COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
|
|
793
|
+
return 0
|
|
794
|
+
fi
|
|
795
|
+
case "$prev" in
|
|
796
|
+
--api-key)
|
|
797
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
798
|
+
return 0 ;;
|
|
423
799
|
esac
|
|
424
800
|
}
|
|
425
801
|
|
|
@@ -783,13 +1159,14 @@ _postman_mock() {
|
|
|
783
1159
|
if [[ "$cur" == -* ]]; then
|
|
784
1160
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
785
1161
|
else
|
|
786
|
-
COMPREPLY=( $(compgen -W "generate run deploy get list log delete" -- "$cur") )
|
|
1162
|
+
COMPREPLY=( $(compgen -W "generate run push deploy get list log delete" -- "$cur") )
|
|
787
1163
|
fi
|
|
788
1164
|
return 0
|
|
789
1165
|
fi
|
|
790
1166
|
case "$subcmd" in
|
|
791
1167
|
generate) _postman_mock_generate ;;
|
|
792
1168
|
run) _postman_mock_run ;;
|
|
1169
|
+
push) _postman_mock_push ;;
|
|
793
1170
|
deploy) _postman_mock_deploy ;;
|
|
794
1171
|
get) _postman_mock_get ;;
|
|
795
1172
|
list) _postman_mock_list ;;
|
|
@@ -835,6 +1212,19 @@ _postman_mock_run() {
|
|
|
835
1212
|
_postman_filematch '!*.@(json)' "$cur"
|
|
836
1213
|
}
|
|
837
1214
|
|
|
1215
|
+
_postman_mock_push() {
|
|
1216
|
+
if [[ "$cur" == -* ]]; then
|
|
1217
|
+
COMPREPLY=( $(compgen -W "-w --workspace --api-key -h --help" -- "$cur") )
|
|
1218
|
+
return 0
|
|
1219
|
+
fi
|
|
1220
|
+
case "$prev" in
|
|
1221
|
+
--api-key)
|
|
1222
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1223
|
+
return 0 ;;
|
|
1224
|
+
esac
|
|
1225
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1226
|
+
}
|
|
1227
|
+
|
|
838
1228
|
_postman_mock_deploy() {
|
|
839
1229
|
if [[ "$cur" == -* ]]; then
|
|
840
1230
|
COMPREPLY=( $(compgen -W "-w --workspace -n --name -s --slug --public --auto-deploy -y --yes --api-key -h --help" -- "$cur") )
|
|
@@ -1155,6 +1545,45 @@ _postman_context_environment_get() {
|
|
|
1155
1545
|
esac
|
|
1156
1546
|
}
|
|
1157
1547
|
|
|
1548
|
+
_postman_context_graph() {
|
|
1549
|
+
if [[ -z "$subcmd" ]]; then
|
|
1550
|
+
if [[ "$cur" == -* ]]; then
|
|
1551
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1552
|
+
else
|
|
1553
|
+
COMPREPLY=( $(compgen -W "ask status" -- "$cur") )
|
|
1554
|
+
fi
|
|
1555
|
+
return 0
|
|
1556
|
+
fi
|
|
1557
|
+
case "$subcmd" in
|
|
1558
|
+
ask) _postman_context_graph_ask ;;
|
|
1559
|
+
status) _postman_context_graph_status ;;
|
|
1560
|
+
esac
|
|
1561
|
+
}
|
|
1562
|
+
|
|
1563
|
+
_postman_context_graph_ask() {
|
|
1564
|
+
if [[ "$cur" == -* ]]; then
|
|
1565
|
+
COMPREPLY=( $(compgen -W "--wait --api-key --json --no-include-answer --max-steps --interval --timeout -h --help" -- "$cur") )
|
|
1566
|
+
return 0
|
|
1567
|
+
fi
|
|
1568
|
+
case "$prev" in
|
|
1569
|
+
--api-key)
|
|
1570
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1571
|
+
return 0 ;;
|
|
1572
|
+
esac
|
|
1573
|
+
}
|
|
1574
|
+
|
|
1575
|
+
_postman_context_graph_status() {
|
|
1576
|
+
if [[ "$cur" == -* ]]; then
|
|
1577
|
+
COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
|
|
1578
|
+
return 0
|
|
1579
|
+
fi
|
|
1580
|
+
case "$prev" in
|
|
1581
|
+
--api-key)
|
|
1582
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1583
|
+
return 0 ;;
|
|
1584
|
+
esac
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1158
1587
|
_postman_search() {
|
|
1159
1588
|
if [[ -z "$subcmd" ]]; then
|
|
1160
1589
|
if [[ "$cur" == -* ]]; then
|
|
@@ -1659,4 +2088,57 @@ _postman_dataset_view_update() {
|
|
|
1659
2088
|
esac
|
|
1660
2089
|
}
|
|
1661
2090
|
|
|
2091
|
+
_postman_dependency() {
|
|
2092
|
+
if [[ -z "$subcmd" ]]; then
|
|
2093
|
+
if [[ "$cur" == -* ]]; then
|
|
2094
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2095
|
+
else
|
|
2096
|
+
COMPREPLY=( $(compgen -W "add list install update" -- "$cur") )
|
|
2097
|
+
fi
|
|
2098
|
+
return 0
|
|
2099
|
+
fi
|
|
2100
|
+
case "$subcmd" in
|
|
2101
|
+
add) _postman_dependency_add ;;
|
|
2102
|
+
list) _postman_dependency_list ;;
|
|
2103
|
+
install) _postman_dependency_install ;;
|
|
2104
|
+
update) _postman_dependency_update ;;
|
|
2105
|
+
esac
|
|
2106
|
+
}
|
|
2107
|
+
|
|
2108
|
+
_postman_dependency_add() {
|
|
2109
|
+
if [[ "$cur" == -* ]]; then
|
|
2110
|
+
COMPREPLY=( $(compgen -W "-w --workspace -y --yes --json -h --help" -- "$cur") )
|
|
2111
|
+
return 0
|
|
2112
|
+
fi
|
|
2113
|
+
case "$prev" in
|
|
2114
|
+
esac
|
|
2115
|
+
}
|
|
2116
|
+
|
|
2117
|
+
_postman_dependency_list() {
|
|
2118
|
+
if [[ "$cur" == -* ]]; then
|
|
2119
|
+
COMPREPLY=( $(compgen -W "--type --json -h --help" -- "$cur") )
|
|
2120
|
+
return 0
|
|
2121
|
+
fi
|
|
2122
|
+
case "$prev" in
|
|
2123
|
+
esac
|
|
2124
|
+
}
|
|
2125
|
+
|
|
2126
|
+
_postman_dependency_install() {
|
|
2127
|
+
if [[ "$cur" == -* ]]; then
|
|
2128
|
+
COMPREPLY=( $(compgen -W "--type --json -h --help" -- "$cur") )
|
|
2129
|
+
return 0
|
|
2130
|
+
fi
|
|
2131
|
+
case "$prev" in
|
|
2132
|
+
esac
|
|
2133
|
+
}
|
|
2134
|
+
|
|
2135
|
+
_postman_dependency_update() {
|
|
2136
|
+
if [[ "$cur" == -* ]]; then
|
|
2137
|
+
COMPREPLY=( $(compgen -W "--type --json -h --help" -- "$cur") )
|
|
2138
|
+
return 0
|
|
2139
|
+
fi
|
|
2140
|
+
case "$prev" in
|
|
2141
|
+
esac
|
|
2142
|
+
}
|
|
2143
|
+
|
|
1662
2144
|
complete -F _postman postman
|