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