postman-cli-completion 1.71.0 → 1.73.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/completions/bash/postman.bash +1084 -998
- package/completions/fish/postman.fish +1100 -1054
- package/completions/zsh/_postman +1728 -1639
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Bash completion for Postman CLI (postman v1.
|
|
1
|
+
# Bash completion for Postman CLI (postman v1.73.0)
|
|
2
2
|
# Auto-generated by scripts/generate.mjs — DO NOT EDIT
|
|
3
3
|
# Source: spec/commands.json
|
|
4
4
|
# https://github.com/yokawasa/postman-cli-completion
|
|
@@ -22,8 +22,8 @@ _postman() {
|
|
|
22
22
|
cur="${COMP_WORDS[COMP_CWORD]}"
|
|
23
23
|
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
|
24
24
|
|
|
25
|
-
local top_commands="
|
|
26
|
-
local global_flags="-
|
|
25
|
+
local top_commands="api collection dataset environment flows fl globals mock monitor request runner sdk spec workspace ws context-graph describe init search skills login logout signup whoami application app dependency feedback performance secret simulation team update webhook"
|
|
26
|
+
local global_flags="--color -h --help --silent -v --version -h --help"
|
|
27
27
|
|
|
28
28
|
local i cmd="" subcmd=""
|
|
29
29
|
for ((i=1; i<COMP_CWORD; i++)); do
|
|
@@ -46,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,519 +536,767 @@ _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)
|
|
669
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
670
|
+
return 0 ;;
|
|
671
|
+
--vars-file)
|
|
693
672
|
_postman_filematch '!*.@(json)' "$cur"
|
|
694
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 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
|
+
list-runs) _postman_flows_list_runs ;;
|
|
983
|
+
get-run) _postman_flows_get_run ;;
|
|
990
984
|
esac
|
|
991
985
|
}
|
|
992
986
|
|
|
993
|
-
|
|
987
|
+
_postman_flows_list() {
|
|
994
988
|
if [[ "$cur" == -* ]]; then
|
|
995
|
-
COMPREPLY=( $(compgen -W "--
|
|
989
|
+
COMPREPLY=( $(compgen -W "-w --workspace -p --paginate -f --filter -s --sort --verbose --debug --json -h --help" -- "$cur") )
|
|
996
990
|
return 0
|
|
997
991
|
fi
|
|
998
992
|
case "$prev" in
|
|
999
|
-
--api-key)
|
|
1000
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1001
|
-
return 0 ;;
|
|
1002
993
|
esac
|
|
1003
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1004
994
|
}
|
|
1005
995
|
|
|
1006
|
-
|
|
996
|
+
_postman_flows_trigger() {
|
|
1007
997
|
if [[ "$cur" == -* ]]; then
|
|
1008
|
-
COMPREPLY=( $(compgen -W "-
|
|
998
|
+
COMPREPLY=( $(compgen -W "-i --input -f --input-file -q --query --headers -n --dry-run --show-secrets -r --result -s --scenario --verbose --debug --json -h --help" -- "$cur") )
|
|
1009
999
|
return 0
|
|
1010
1000
|
fi
|
|
1011
1001
|
case "$prev" in
|
|
1012
|
-
|
|
1002
|
+
-i|--input)
|
|
1013
1003
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1014
1004
|
return 0 ;;
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1005
|
+
-f|--input-file)
|
|
1006
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1007
|
+
return 0 ;;
|
|
1008
|
+
-q|--query)
|
|
1009
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1010
|
+
return 0 ;;
|
|
1011
|
+
--headers)
|
|
1012
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1013
|
+
return 0 ;;
|
|
1014
|
+
esac
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
_postman_flows_deploy() {
|
|
1018
|
+
if [[ "$cur" == -* ]]; then
|
|
1019
|
+
COMPREPLY=( $(compgen -W "-p --path -t --timeout -a --auth --verbose --debug --json -h --help" -- "$cur") )
|
|
1022
1020
|
return 0
|
|
1023
1021
|
fi
|
|
1024
1022
|
case "$prev" in
|
|
1025
|
-
|
|
1026
|
-
_postman_filematch '!*.@(
|
|
1023
|
+
-p|--path)
|
|
1024
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1027
1025
|
return 0 ;;
|
|
1028
1026
|
esac
|
|
1029
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1030
1027
|
}
|
|
1031
1028
|
|
|
1032
|
-
|
|
1029
|
+
_postman_flows_run() {
|
|
1033
1030
|
if [[ "$cur" == -* ]]; then
|
|
1034
|
-
COMPREPLY=( $(compgen -W "-
|
|
1031
|
+
COMPREPLY=( $(compgen -W "-i --input -f --input-file -s --scenario --iteration-data-dataset --iteration-data-view -m --map-column -e --environment --working-dir --no-insecure-file-read --verbose --no-truncate --output --reporters -x --suppress-exit-code --workspace --report-events --no-report-events --verbose --debug --json -h --help" -- "$cur") )
|
|
1035
1032
|
return 0
|
|
1036
1033
|
fi
|
|
1037
1034
|
case "$prev" in
|
|
1038
|
-
|
|
1035
|
+
-i|--input)
|
|
1039
1036
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1040
1037
|
return 0 ;;
|
|
1038
|
+
-f|--input-file)
|
|
1039
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1040
|
+
return 0 ;;
|
|
1041
|
+
--iteration-data-dataset)
|
|
1042
|
+
_postman_filematch '!*.@(json|csv)' "$cur"
|
|
1043
|
+
return 0 ;;
|
|
1044
|
+
-e|--environment)
|
|
1045
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1046
|
+
return 0 ;;
|
|
1047
|
+
--working-dir)
|
|
1048
|
+
COMPREPLY=( $(compgen -d -- "$cur") )
|
|
1049
|
+
return 0 ;;
|
|
1041
1050
|
esac
|
|
1042
1051
|
_postman_filematch '!*.@(json)' "$cur"
|
|
1043
1052
|
}
|
|
1044
1053
|
|
|
1045
|
-
|
|
1054
|
+
_postman_flows_update() {
|
|
1046
1055
|
if [[ "$cur" == -* ]]; then
|
|
1047
|
-
COMPREPLY=( $(compgen -W "-
|
|
1056
|
+
COMPREPLY=( $(compgen -W "-t --trigger -a --auth --verbose --debug --json -h --help" -- "$cur") )
|
|
1048
1057
|
return 0
|
|
1049
1058
|
fi
|
|
1050
1059
|
case "$prev" in
|
|
1051
|
-
|
|
1052
|
-
|
|
1060
|
+
esac
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
_postman_flows_list_runs() {
|
|
1064
|
+
if [[ "$cur" == -* ]]; then
|
|
1065
|
+
COMPREPLY=( $(compgen -W "-w --workspace -f --flow -r --range --verbose --debug --json -h --help" -- "$cur") )
|
|
1066
|
+
return 0
|
|
1067
|
+
fi
|
|
1068
|
+
case "$prev" in
|
|
1069
|
+
esac
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
_postman_flows_get_run() {
|
|
1073
|
+
if [[ "$cur" == -* ]]; then
|
|
1074
|
+
COMPREPLY=( $(compgen -W "-r --run-id -l --logs --filter --verbose --debug --json -h --help" -- "$cur") )
|
|
1075
|
+
return 0
|
|
1076
|
+
fi
|
|
1077
|
+
case "$prev" in
|
|
1078
|
+
esac
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
_postman_globals() {
|
|
1082
|
+
if [[ -z "$subcmd" ]]; then
|
|
1083
|
+
if [[ "$cur" == -* ]]; then
|
|
1084
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1085
|
+
else
|
|
1086
|
+
COMPREPLY=( $(compgen -W "get var lint" -- "$cur") )
|
|
1087
|
+
fi
|
|
1088
|
+
return 0
|
|
1089
|
+
fi
|
|
1090
|
+
case "$subcmd" in
|
|
1091
|
+
get) _postman_globals_get ;;
|
|
1092
|
+
var) _postman_globals_var ;;
|
|
1093
|
+
lint) _postman_globals_lint ;;
|
|
1094
|
+
esac
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
_postman_globals_get() {
|
|
1098
|
+
if [[ "$cur" == -* ]]; then
|
|
1099
|
+
COMPREPLY=( $(compgen -W "-w --workspace --workspace-path --verbose --json -h --help" -- "$cur") )
|
|
1100
|
+
return 0
|
|
1101
|
+
fi
|
|
1102
|
+
case "$prev" in
|
|
1103
|
+
--workspace-path)
|
|
1104
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1053
1105
|
return 0 ;;
|
|
1054
1106
|
esac
|
|
1055
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1056
1107
|
}
|
|
1057
1108
|
|
|
1058
|
-
|
|
1109
|
+
_postman_globals_var() {
|
|
1059
1110
|
if [[ -z "$subcmd" ]]; then
|
|
1060
1111
|
if [[ "$cur" == -* ]]; then
|
|
1061
1112
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1062
1113
|
else
|
|
1063
|
-
COMPREPLY=( $(compgen -W "
|
|
1114
|
+
COMPREPLY=( $(compgen -W "set get unset" -- "$cur") )
|
|
1064
1115
|
fi
|
|
1065
1116
|
return 0
|
|
1066
1117
|
fi
|
|
1067
1118
|
case "$subcmd" in
|
|
1068
|
-
|
|
1119
|
+
set) _postman_globals_var_set ;;
|
|
1120
|
+
get) _postman_globals_var_get ;;
|
|
1121
|
+
unset) _postman_globals_var_unset ;;
|
|
1069
1122
|
esac
|
|
1070
1123
|
}
|
|
1071
1124
|
|
|
1072
|
-
|
|
1125
|
+
_postman_globals_var_set() {
|
|
1073
1126
|
if [[ "$cur" == -* ]]; then
|
|
1074
|
-
COMPREPLY=( $(compgen -W "-
|
|
1127
|
+
COMPREPLY=( $(compgen -W "-w --workspace --secret-id --vault-id --workspace-path --verbose --json -h --help" -- "$cur") )
|
|
1075
1128
|
return 0
|
|
1076
1129
|
fi
|
|
1077
1130
|
case "$prev" in
|
|
1078
|
-
--
|
|
1079
|
-
_postman_filematch '!*.@(
|
|
1131
|
+
--workspace-path)
|
|
1132
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1080
1133
|
return 0 ;;
|
|
1081
1134
|
esac
|
|
1082
1135
|
}
|
|
1083
1136
|
|
|
1084
|
-
|
|
1137
|
+
_postman_globals_var_get() {
|
|
1138
|
+
if [[ "$cur" == -* ]]; then
|
|
1139
|
+
COMPREPLY=( $(compgen -W "-w --workspace --workspace-path --verbose --json -h --help" -- "$cur") )
|
|
1140
|
+
return 0
|
|
1141
|
+
fi
|
|
1142
|
+
case "$prev" in
|
|
1143
|
+
--workspace-path)
|
|
1144
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1145
|
+
return 0 ;;
|
|
1146
|
+
esac
|
|
1147
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
_postman_globals_var_unset() {
|
|
1151
|
+
if [[ "$cur" == -* ]]; then
|
|
1152
|
+
COMPREPLY=( $(compgen -W "-w --workspace --workspace-path --verbose --json -h --help" -- "$cur") )
|
|
1153
|
+
return 0
|
|
1154
|
+
fi
|
|
1155
|
+
case "$prev" in
|
|
1156
|
+
--workspace-path)
|
|
1157
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1158
|
+
return 0 ;;
|
|
1159
|
+
esac
|
|
1160
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
_postman_globals_lint() {
|
|
1164
|
+
if [[ "$cur" == -* ]]; then
|
|
1165
|
+
COMPREPLY=( $(compgen -W "-f --fail-severity -o --output -h --help" -- "$cur") )
|
|
1166
|
+
return 0
|
|
1167
|
+
fi
|
|
1168
|
+
case "$prev" in
|
|
1169
|
+
esac
|
|
1170
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
_postman_mock() {
|
|
1085
1174
|
if [[ -z "$subcmd" ]]; then
|
|
1086
1175
|
if [[ "$cur" == -* ]]; then
|
|
1087
1176
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1088
1177
|
else
|
|
1089
|
-
COMPREPLY=( $(compgen -W "
|
|
1178
|
+
COMPREPLY=( $(compgen -W "generate run push deploy get list log delete" -- "$cur") )
|
|
1090
1179
|
fi
|
|
1091
1180
|
return 0
|
|
1092
1181
|
fi
|
|
1093
1182
|
case "$subcmd" in
|
|
1094
|
-
|
|
1183
|
+
generate) _postman_mock_generate ;;
|
|
1184
|
+
run) _postman_mock_run ;;
|
|
1185
|
+
push) _postman_mock_push ;;
|
|
1186
|
+
deploy) _postman_mock_deploy ;;
|
|
1187
|
+
get) _postman_mock_get ;;
|
|
1188
|
+
list) _postman_mock_list ;;
|
|
1189
|
+
log) _postman_mock_log ;;
|
|
1190
|
+
delete) _postman_mock_delete ;;
|
|
1095
1191
|
esac
|
|
1096
1192
|
}
|
|
1097
1193
|
|
|
1098
|
-
|
|
1194
|
+
_postman_mock_generate() {
|
|
1099
1195
|
if [[ "$cur" == -* ]]; then
|
|
1100
|
-
COMPREPLY=( $(compgen -W "--
|
|
1196
|
+
COMPREPLY=( $(compgen -W "-o --output -n --name --port --force -u --update -w --workspace --api-key -x --suppress-exit-code -h --help" -- "$cur") )
|
|
1101
1197
|
return 0
|
|
1102
1198
|
fi
|
|
1103
1199
|
case "$prev" in
|
|
1200
|
+
-o|--output)
|
|
1201
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1202
|
+
return 0 ;;
|
|
1203
|
+
-u|--update)
|
|
1204
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1205
|
+
return 0 ;;
|
|
1104
1206
|
--api-key)
|
|
1105
1207
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1106
1208
|
return 0 ;;
|
|
1107
1209
|
esac
|
|
1108
1210
|
}
|
|
1109
1211
|
|
|
1110
|
-
|
|
1212
|
+
_postman_mock_run() {
|
|
1213
|
+
if [[ "$cur" == -* ]]; then
|
|
1214
|
+
COMPREPLY=( $(compgen -W "-e --environment -g --globals -p --port --api-key -w --workspace --no-history --output --dataset -h --help" -- "$cur") )
|
|
1215
|
+
return 0
|
|
1216
|
+
fi
|
|
1217
|
+
case "$prev" in
|
|
1218
|
+
-e|--environment)
|
|
1219
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1220
|
+
return 0 ;;
|
|
1221
|
+
-g|--globals)
|
|
1222
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1223
|
+
return 0 ;;
|
|
1224
|
+
--api-key)
|
|
1225
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1226
|
+
return 0 ;;
|
|
1227
|
+
--dataset)
|
|
1228
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1229
|
+
return 0 ;;
|
|
1230
|
+
esac
|
|
1231
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
_postman_mock_push() {
|
|
1235
|
+
if [[ "$cur" == -* ]]; then
|
|
1236
|
+
COMPREPLY=( $(compgen -W "-w --workspace --api-key -h --help" -- "$cur") )
|
|
1237
|
+
return 0
|
|
1238
|
+
fi
|
|
1239
|
+
case "$prev" in
|
|
1240
|
+
--api-key)
|
|
1241
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1242
|
+
return 0 ;;
|
|
1243
|
+
esac
|
|
1244
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
_postman_mock_deploy() {
|
|
1248
|
+
if [[ "$cur" == -* ]]; then
|
|
1249
|
+
COMPREPLY=( $(compgen -W "-w --workspace -n --name -s --slug --public --auto-deploy -y --yes --api-key -h --help" -- "$cur") )
|
|
1250
|
+
return 0
|
|
1251
|
+
fi
|
|
1252
|
+
case "$prev" in
|
|
1253
|
+
--api-key)
|
|
1254
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1255
|
+
return 0 ;;
|
|
1256
|
+
esac
|
|
1257
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
_postman_mock_get() {
|
|
1261
|
+
if [[ "$cur" == -* ]]; then
|
|
1262
|
+
COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
|
|
1263
|
+
return 0
|
|
1264
|
+
fi
|
|
1265
|
+
case "$prev" in
|
|
1266
|
+
--api-key)
|
|
1267
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1268
|
+
return 0 ;;
|
|
1269
|
+
esac
|
|
1270
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
_postman_mock_list() {
|
|
1274
|
+
if [[ "$cur" == -* ]]; then
|
|
1275
|
+
COMPREPLY=( $(compgen -W "-w --workspace --api-key --json -h --help" -- "$cur") )
|
|
1276
|
+
return 0
|
|
1277
|
+
fi
|
|
1278
|
+
case "$prev" in
|
|
1279
|
+
--api-key)
|
|
1280
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1281
|
+
return 0 ;;
|
|
1282
|
+
esac
|
|
1283
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
_postman_mock_log() {
|
|
1287
|
+
if [[ "$cur" == -* ]]; then
|
|
1288
|
+
COMPREPLY=( $(compgen -W "--limit --method --status --path --since --until --api-key --json -h --help" -- "$cur") )
|
|
1289
|
+
return 0
|
|
1290
|
+
fi
|
|
1291
|
+
case "$prev" in
|
|
1292
|
+
--api-key)
|
|
1293
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1294
|
+
return 0 ;;
|
|
1295
|
+
esac
|
|
1296
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
_postman_mock_delete() {
|
|
1111
1300
|
if [[ "$cur" == -* ]]; then
|
|
1112
1301
|
COMPREPLY=( $(compgen -W "-y --yes --api-key -h --help" -- "$cur") )
|
|
1113
1302
|
return 0
|
|
@@ -1117,6 +1306,7 @@ _postman_spec_delete() {
|
|
|
1117
1306
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1118
1307
|
return 0 ;;
|
|
1119
1308
|
esac
|
|
1309
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1120
1310
|
}
|
|
1121
1311
|
|
|
1122
1312
|
_postman_monitor() {
|
|
@@ -1316,713 +1506,567 @@ _postman_monitor_resume() {
|
|
|
1316
1506
|
esac
|
|
1317
1507
|
}
|
|
1318
1508
|
|
|
1319
|
-
|
|
1509
|
+
_postman_request() {
|
|
1510
|
+
if [[ "$cur" == -* ]]; then
|
|
1511
|
+
COMPREPLY=( $(compgen -W "-H --header -d --body -f --form -e --environment --timeout --redirects-ignore --redirects-max --redirects-follow-method --redirects-remove-referrer -k --insecure --ssl-client-cert-list --ssl-client-cert --ssl-client-key --ssl-client-passphrase --ssl-extra-ca-certs --cookie-jar --export-cookie-jar --retry --retry-delay --script-pre-request --script-post-request --dataset -o --output --verbose --response-only --debug --report-events --no-report-events -h --help --auth-basic-username --auth-basic-password --auth-bearer-token --auth-digest-username --auth-digest-password --auth-oauth1-consumerKey --auth-oauth1-consumerSecret --auth-oauth1-token --auth-oauth1-tokenSecret --auth-oauth2-accessToken --auth-oauth2-tokenType --auth-hawk-authId --auth-hawk-authKey --auth-hawk-algorithm --auth-aws-accessKey --auth-aws-secretKey --auth-aws-region --auth-aws-service --auth-aws-sessionToken --auth-ntlm-username --auth-ntlm-password --auth-ntlm-domain --auth-ntlm-workstation --auth-apikey-key --auth-apikey-value --auth-apikey-in" -- "$cur") )
|
|
1512
|
+
return 0
|
|
1513
|
+
fi
|
|
1514
|
+
case "$prev" in
|
|
1515
|
+
-e|--environment)
|
|
1516
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1517
|
+
return 0 ;;
|
|
1518
|
+
--ssl-client-cert-list)
|
|
1519
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1520
|
+
return 0 ;;
|
|
1521
|
+
--ssl-client-cert)
|
|
1522
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1523
|
+
return 0 ;;
|
|
1524
|
+
--ssl-client-key)
|
|
1525
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1526
|
+
return 0 ;;
|
|
1527
|
+
--ssl-extra-ca-certs)
|
|
1528
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1529
|
+
return 0 ;;
|
|
1530
|
+
--cookie-jar)
|
|
1531
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1532
|
+
return 0 ;;
|
|
1533
|
+
--export-cookie-jar)
|
|
1534
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1535
|
+
return 0 ;;
|
|
1536
|
+
--dataset)
|
|
1537
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1538
|
+
return 0 ;;
|
|
1539
|
+
-o|--output)
|
|
1540
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1541
|
+
return 0 ;;
|
|
1542
|
+
esac
|
|
1543
|
+
}
|
|
1544
|
+
|
|
1545
|
+
_postman_runner() {
|
|
1320
1546
|
if [[ -z "$subcmd" ]]; then
|
|
1321
1547
|
if [[ "$cur" == -* ]]; then
|
|
1322
1548
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1323
1549
|
else
|
|
1324
|
-
COMPREPLY=( $(compgen -W "list
|
|
1550
|
+
COMPREPLY=( $(compgen -W "start list regions" -- "$cur") )
|
|
1325
1551
|
fi
|
|
1326
1552
|
return 0
|
|
1327
1553
|
fi
|
|
1328
1554
|
case "$subcmd" in
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
lint) _postman_workspace_lint ;;
|
|
1333
|
-
get) _postman_workspace_get ;;
|
|
1334
|
-
create) _postman_workspace_create ;;
|
|
1335
|
-
delete) _postman_workspace_delete ;;
|
|
1336
|
-
pull) _postman_workspace_pull ;;
|
|
1337
|
-
connect-git) _postman_workspace_connect_git ;;
|
|
1338
|
-
disconnect-git) _postman_workspace_disconnect_git ;;
|
|
1339
|
-
diff) _postman_workspace_diff ;;
|
|
1555
|
+
start) _postman_runner_start ;;
|
|
1556
|
+
list) _postman_runner_list ;;
|
|
1557
|
+
regions) _postman_runner_regions ;;
|
|
1340
1558
|
esac
|
|
1341
1559
|
}
|
|
1342
1560
|
|
|
1343
|
-
|
|
1561
|
+
_postman_runner_start() {
|
|
1344
1562
|
if [[ "$cur" == -* ]]; then
|
|
1345
|
-
COMPREPLY=( $(compgen -W "-
|
|
1563
|
+
COMPREPLY=( $(compgen -W "--id --key --region --proxy --egress-proxy --egress-proxy-authz-url --ssl-extra-ca-certs --dataset-jdbc-driver-dir --metrics --metrics-port --report-events --no-report-events -h --help" -- "$cur") )
|
|
1346
1564
|
return 0
|
|
1347
1565
|
fi
|
|
1348
1566
|
case "$prev" in
|
|
1567
|
+
--key)
|
|
1568
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1569
|
+
return 0 ;;
|
|
1570
|
+
--ssl-extra-ca-certs)
|
|
1571
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1572
|
+
return 0 ;;
|
|
1573
|
+
--dataset-jdbc-driver-dir)
|
|
1574
|
+
COMPREPLY=( $(compgen -d -- "$cur") )
|
|
1575
|
+
return 0 ;;
|
|
1349
1576
|
esac
|
|
1350
1577
|
}
|
|
1351
1578
|
|
|
1352
|
-
|
|
1579
|
+
_postman_runner_list() {
|
|
1353
1580
|
if [[ "$cur" == -* ]]; then
|
|
1354
|
-
COMPREPLY=( $(compgen -W "--
|
|
1581
|
+
COMPREPLY=( $(compgen -W "--api-key -w --workspace --json -h --help" -- "$cur") )
|
|
1355
1582
|
return 0
|
|
1356
1583
|
fi
|
|
1584
|
+
case "$prev" in
|
|
1585
|
+
--api-key)
|
|
1586
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1587
|
+
return 0 ;;
|
|
1588
|
+
esac
|
|
1357
1589
|
}
|
|
1358
1590
|
|
|
1359
|
-
|
|
1591
|
+
_postman_runner_regions() {
|
|
1360
1592
|
if [[ "$cur" == -* ]]; then
|
|
1361
|
-
COMPREPLY=( $(compgen -W "--
|
|
1593
|
+
COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
|
|
1362
1594
|
return 0
|
|
1363
1595
|
fi
|
|
1364
1596
|
case "$prev" in
|
|
1597
|
+
--api-key)
|
|
1598
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1599
|
+
return 0 ;;
|
|
1365
1600
|
esac
|
|
1366
1601
|
}
|
|
1367
1602
|
|
|
1368
|
-
|
|
1369
|
-
if [[ "$
|
|
1370
|
-
|
|
1603
|
+
_postman_sdk() {
|
|
1604
|
+
if [[ -z "$subcmd" ]]; then
|
|
1605
|
+
if [[ "$cur" == -* ]]; then
|
|
1606
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1607
|
+
else
|
|
1608
|
+
COMPREPLY=( $(compgen -W "init generate build track list ls fetch get connect connections" -- "$cur") )
|
|
1609
|
+
fi
|
|
1371
1610
|
return 0
|
|
1372
1611
|
fi
|
|
1373
|
-
case "$
|
|
1612
|
+
case "$subcmd" in
|
|
1613
|
+
init) _postman_sdk_init ;;
|
|
1614
|
+
generate|build) _postman_sdk_generate ;;
|
|
1615
|
+
track) _postman_sdk_track ;;
|
|
1616
|
+
list|ls) _postman_sdk_list ;;
|
|
1617
|
+
fetch|get) _postman_sdk_fetch ;;
|
|
1618
|
+
connect) _postman_sdk_connect ;;
|
|
1619
|
+
connections) _postman_sdk_connections ;;
|
|
1374
1620
|
esac
|
|
1375
1621
|
}
|
|
1376
1622
|
|
|
1377
|
-
|
|
1623
|
+
_postman_sdk_init() {
|
|
1378
1624
|
if [[ "$cur" == -* ]]; then
|
|
1379
|
-
COMPREPLY=( $(compgen -W "
|
|
1625
|
+
COMPREPLY=( $(compgen -W "-y --yes -h --help" -- "$cur") )
|
|
1380
1626
|
return 0
|
|
1381
1627
|
fi
|
|
1382
|
-
case "$prev" in
|
|
1383
|
-
esac
|
|
1384
1628
|
}
|
|
1385
1629
|
|
|
1386
|
-
|
|
1630
|
+
_postman_sdk_generate() {
|
|
1387
1631
|
if [[ "$cur" == -* ]]; then
|
|
1388
|
-
COMPREPLY=( $(compgen -W "--
|
|
1632
|
+
COMPREPLY=( $(compgen -W "-l --language --all -o --output-dir --name --sdk-version --config -y --yes --overwrite --verbose --log-level --no-track-changes --no-merge --conflict-strategy --no-emit -h --help" -- "$cur") )
|
|
1389
1633
|
return 0
|
|
1390
1634
|
fi
|
|
1391
1635
|
case "$prev" in
|
|
1392
|
-
|
|
1636
|
+
-o|--output-dir)
|
|
1637
|
+
COMPREPLY=( $(compgen -d -- "$cur") )
|
|
1638
|
+
return 0 ;;
|
|
1639
|
+
--config)
|
|
1393
1640
|
_postman_filematch '!*.@(json)' "$cur"
|
|
1394
1641
|
return 0 ;;
|
|
1395
1642
|
esac
|
|
1396
1643
|
}
|
|
1397
1644
|
|
|
1398
|
-
|
|
1645
|
+
_postman_sdk_track() {
|
|
1399
1646
|
if [[ "$cur" == -* ]]; then
|
|
1400
|
-
COMPREPLY=( $(compgen -W "-
|
|
1647
|
+
COMPREPLY=( $(compgen -W "-l --language -o --output-dir -h --help" -- "$cur") )
|
|
1401
1648
|
return 0
|
|
1402
1649
|
fi
|
|
1403
1650
|
case "$prev" in
|
|
1651
|
+
-o|--output-dir)
|
|
1652
|
+
COMPREPLY=( $(compgen -d -- "$cur") )
|
|
1653
|
+
return 0 ;;
|
|
1404
1654
|
esac
|
|
1405
1655
|
}
|
|
1406
1656
|
|
|
1407
|
-
|
|
1657
|
+
_postman_sdk_list() {
|
|
1408
1658
|
if [[ "$cur" == -* ]]; then
|
|
1409
|
-
COMPREPLY=( $(compgen -W "-
|
|
1659
|
+
COMPREPLY=( $(compgen -W "-s --status -o --output --log-level -h --help" -- "$cur") )
|
|
1410
1660
|
return 0
|
|
1411
1661
|
fi
|
|
1412
1662
|
case "$prev" in
|
|
1413
1663
|
esac
|
|
1414
1664
|
}
|
|
1415
1665
|
|
|
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() {
|
|
1666
|
+
_postman_sdk_fetch() {
|
|
1432
1667
|
if [[ "$cur" == -* ]]; then
|
|
1433
|
-
COMPREPLY=( $(compgen -W "
|
|
1668
|
+
COMPREPLY=( $(compgen -W "-o --output-dir -l --language --overwrite --verbose --log-level -h --help" -- "$cur") )
|
|
1434
1669
|
return 0
|
|
1435
1670
|
fi
|
|
1436
1671
|
case "$prev" in
|
|
1672
|
+
-o|--output-dir)
|
|
1673
|
+
COMPREPLY=( $(compgen -d -- "$cur") )
|
|
1674
|
+
return 0 ;;
|
|
1437
1675
|
esac
|
|
1438
1676
|
}
|
|
1439
1677
|
|
|
1440
|
-
|
|
1441
|
-
if [[ -z "$subcmd" ]]; then
|
|
1442
|
-
if [[ "$cur" == -* ]]; then
|
|
1443
|
-
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1444
|
-
else
|
|
1445
|
-
COMPREPLY=( $(compgen -W "list" -- "$cur") )
|
|
1446
|
-
fi
|
|
1447
|
-
return 0
|
|
1448
|
-
fi
|
|
1449
|
-
case "$subcmd" in
|
|
1450
|
-
list) _postman_team_list ;;
|
|
1451
|
-
esac
|
|
1452
|
-
}
|
|
1453
|
-
|
|
1454
|
-
_postman_team_list() {
|
|
1678
|
+
_postman_sdk_connect() {
|
|
1455
1679
|
if [[ "$cur" == -* ]]; then
|
|
1456
|
-
COMPREPLY=( $(compgen -W "--
|
|
1680
|
+
COMPREPLY=( $(compgen -W "-l --language -r --repo --repo-owner --repo-name -b --branch --push-to-base --auto-update-pull-requests --auth-provider --verbose -h --help" -- "$cur") )
|
|
1457
1681
|
return 0
|
|
1458
1682
|
fi
|
|
1459
1683
|
case "$prev" in
|
|
1460
1684
|
esac
|
|
1461
1685
|
}
|
|
1462
1686
|
|
|
1463
|
-
|
|
1687
|
+
_postman_sdk_connections() {
|
|
1464
1688
|
if [[ -z "$subcmd" ]]; then
|
|
1465
1689
|
if [[ "$cur" == -* ]]; then
|
|
1466
1690
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1467
1691
|
else
|
|
1468
|
-
COMPREPLY=( $(compgen -W "
|
|
1692
|
+
COMPREPLY=( $(compgen -W "list ls delete rm" -- "$cur") )
|
|
1469
1693
|
fi
|
|
1470
1694
|
return 0
|
|
1471
1695
|
fi
|
|
1472
1696
|
case "$subcmd" in
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
get) _postman_performance_get ;;
|
|
1476
|
-
esac
|
|
1477
|
-
}
|
|
1478
|
-
|
|
1479
|
-
_postman_performance_run() {
|
|
1480
|
-
if [[ "$cur" == -* ]]; then
|
|
1481
|
-
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") )
|
|
1482
|
-
return 0
|
|
1483
|
-
fi
|
|
1484
|
-
case "$prev" in
|
|
1485
|
-
--data-file)
|
|
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)
|
|
1498
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1499
|
-
return 0 ;;
|
|
1500
|
-
--dataset)
|
|
1501
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1502
|
-
return 0 ;;
|
|
1697
|
+
list|ls) _postman_sdk_connections_list ;;
|
|
1698
|
+
delete|rm) _postman_sdk_connections_delete ;;
|
|
1503
1699
|
esac
|
|
1504
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1505
1700
|
}
|
|
1506
1701
|
|
|
1507
|
-
|
|
1702
|
+
_postman_sdk_connections_list() {
|
|
1508
1703
|
if [[ "$cur" == -* ]]; then
|
|
1509
|
-
COMPREPLY=( $(compgen -W "
|
|
1704
|
+
COMPREPLY=( $(compgen -W "--refresh --json --verbose -h --help" -- "$cur") )
|
|
1510
1705
|
return 0
|
|
1511
1706
|
fi
|
|
1512
|
-
case "$prev" in
|
|
1513
|
-
esac
|
|
1514
1707
|
}
|
|
1515
1708
|
|
|
1516
|
-
|
|
1709
|
+
_postman_sdk_connections_delete() {
|
|
1517
1710
|
if [[ "$cur" == -* ]]; then
|
|
1518
|
-
COMPREPLY=( $(compgen -W "
|
|
1711
|
+
COMPREPLY=( $(compgen -W "-y --yes --verbose -h --help" -- "$cur") )
|
|
1519
1712
|
return 0
|
|
1520
1713
|
fi
|
|
1521
|
-
case "$prev" in
|
|
1522
|
-
esac
|
|
1523
1714
|
}
|
|
1524
1715
|
|
|
1525
|
-
|
|
1716
|
+
_postman_spec() {
|
|
1526
1717
|
if [[ -z "$subcmd" ]]; then
|
|
1527
1718
|
if [[ "$cur" == -* ]]; then
|
|
1528
1719
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1529
1720
|
else
|
|
1530
|
-
COMPREPLY=( $(compgen -W "list
|
|
1721
|
+
COMPREPLY=( $(compgen -W "lint ai-readiness list get file create generate sync delete" -- "$cur") )
|
|
1531
1722
|
fi
|
|
1532
1723
|
return 0
|
|
1533
1724
|
fi
|
|
1534
1725
|
case "$subcmd" in
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1726
|
+
lint) _postman_spec_lint ;;
|
|
1727
|
+
ai-readiness) _postman_spec_ai_readiness ;;
|
|
1728
|
+
list) _postman_spec_list ;;
|
|
1729
|
+
get) _postman_spec_get ;;
|
|
1730
|
+
file) _postman_spec_file ;;
|
|
1731
|
+
create) _postman_spec_create ;;
|
|
1732
|
+
generate) _postman_spec_generate ;;
|
|
1733
|
+
sync) _postman_spec_sync ;;
|
|
1734
|
+
delete) _postman_spec_delete ;;
|
|
1542
1735
|
esac
|
|
1543
1736
|
}
|
|
1544
1737
|
|
|
1545
|
-
|
|
1738
|
+
_postman_spec_lint() {
|
|
1546
1739
|
if [[ "$cur" == -* ]]; then
|
|
1547
|
-
COMPREPLY=( $(compgen -W "-
|
|
1740
|
+
COMPREPLY=( $(compgen -W "-f --fail-severity --issueType -o --output --workspace-id --report-events --no-report-events -h --help" -- "$cur") )
|
|
1548
1741
|
return 0
|
|
1549
1742
|
fi
|
|
1550
1743
|
case "$prev" in
|
|
1551
1744
|
esac
|
|
1552
1745
|
}
|
|
1553
1746
|
|
|
1554
|
-
|
|
1555
|
-
if [[ "$cur" == -* ]]; then
|
|
1556
|
-
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") )
|
|
1557
|
-
return 0
|
|
1558
|
-
fi
|
|
1559
|
-
case "$prev" in
|
|
1560
|
-
-i|--input)
|
|
1561
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1562
|
-
return 0 ;;
|
|
1563
|
-
-f|--input-file)
|
|
1564
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1565
|
-
return 0 ;;
|
|
1566
|
-
-q|--query)
|
|
1567
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1568
|
-
return 0 ;;
|
|
1569
|
-
--headers)
|
|
1570
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1571
|
-
return 0 ;;
|
|
1572
|
-
esac
|
|
1573
|
-
}
|
|
1574
|
-
|
|
1575
|
-
_postman_flows_deploy() {
|
|
1747
|
+
_postman_spec_ai_readiness() {
|
|
1576
1748
|
if [[ "$cur" == -* ]]; then
|
|
1577
|
-
COMPREPLY=( $(compgen -W "-
|
|
1749
|
+
COMPREPLY=( $(compgen -W "-o --output --export --min-score -h --help" -- "$cur") )
|
|
1578
1750
|
return 0
|
|
1579
1751
|
fi
|
|
1580
1752
|
case "$prev" in
|
|
1581
|
-
|
|
1753
|
+
--export)
|
|
1582
1754
|
_postman_filematch '!*.@(json)' "$cur"
|
|
1583
1755
|
return 0 ;;
|
|
1584
1756
|
esac
|
|
1585
1757
|
}
|
|
1586
1758
|
|
|
1587
|
-
|
|
1759
|
+
_postman_spec_list() {
|
|
1588
1760
|
if [[ "$cur" == -* ]]; then
|
|
1589
|
-
COMPREPLY=( $(compgen -W "-
|
|
1761
|
+
COMPREPLY=( $(compgen -W "-w --workspace --api-key --json -h --help" -- "$cur") )
|
|
1590
1762
|
return 0
|
|
1591
1763
|
fi
|
|
1592
1764
|
case "$prev" in
|
|
1593
|
-
-
|
|
1765
|
+
--api-key)
|
|
1594
1766
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1595
1767
|
return 0 ;;
|
|
1596
|
-
-f|--input-file)
|
|
1597
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1598
|
-
return 0 ;;
|
|
1599
|
-
--iteration-data-dataset)
|
|
1600
|
-
_postman_filematch '!*.@(json|csv)' "$cur"
|
|
1601
|
-
return 0 ;;
|
|
1602
|
-
-e|--environment)
|
|
1603
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1604
|
-
return 0 ;;
|
|
1605
|
-
--working-dir)
|
|
1606
|
-
COMPREPLY=( $(compgen -d -- "$cur") )
|
|
1607
|
-
return 0 ;;
|
|
1608
1768
|
esac
|
|
1609
1769
|
_postman_filematch '!*.@(json)' "$cur"
|
|
1610
1770
|
}
|
|
1611
1771
|
|
|
1612
|
-
|
|
1613
|
-
if [[ "$cur" == -* ]]; then
|
|
1614
|
-
COMPREPLY=( $(compgen -W "-t --trigger -a --auth --verbose --debug --json -h --help" -- "$cur") )
|
|
1615
|
-
return 0
|
|
1616
|
-
fi
|
|
1617
|
-
case "$prev" in
|
|
1618
|
-
esac
|
|
1619
|
-
}
|
|
1620
|
-
|
|
1621
|
-
_postman_flows_list_runs() {
|
|
1622
|
-
if [[ "$cur" == -* ]]; then
|
|
1623
|
-
COMPREPLY=( $(compgen -W "-w --workspace -f --flow -r --range --verbose --debug --json -h --help" -- "$cur") )
|
|
1624
|
-
return 0
|
|
1625
|
-
fi
|
|
1626
|
-
case "$prev" in
|
|
1627
|
-
esac
|
|
1628
|
-
}
|
|
1629
|
-
|
|
1630
|
-
_postman_flows_get_run() {
|
|
1631
|
-
if [[ "$cur" == -* ]]; then
|
|
1632
|
-
COMPREPLY=( $(compgen -W "-r --run-id -l --logs --filter --verbose --debug --json -h --help" -- "$cur") )
|
|
1633
|
-
return 0
|
|
1634
|
-
fi
|
|
1635
|
-
case "$prev" in
|
|
1636
|
-
esac
|
|
1637
|
-
}
|
|
1638
|
-
|
|
1639
|
-
_postman_request() {
|
|
1772
|
+
_postman_spec_get() {
|
|
1640
1773
|
if [[ "$cur" == -* ]]; then
|
|
1641
|
-
COMPREPLY=( $(compgen -W "
|
|
1774
|
+
COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
|
|
1642
1775
|
return 0
|
|
1643
1776
|
fi
|
|
1644
1777
|
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)
|
|
1778
|
+
--api-key)
|
|
1658
1779
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1659
1780
|
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
1781
|
esac
|
|
1673
1782
|
}
|
|
1674
1783
|
|
|
1675
|
-
|
|
1784
|
+
_postman_spec_file() {
|
|
1676
1785
|
if [[ -z "$subcmd" ]]; then
|
|
1677
1786
|
if [[ "$cur" == -* ]]; then
|
|
1678
1787
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1679
1788
|
else
|
|
1680
|
-
COMPREPLY=( $(compgen -W "
|
|
1789
|
+
COMPREPLY=( $(compgen -W "get add update rm" -- "$cur") )
|
|
1681
1790
|
fi
|
|
1682
1791
|
return 0
|
|
1683
1792
|
fi
|
|
1684
1793
|
case "$subcmd" in
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
fetch|get) _postman_sdk_fetch ;;
|
|
1690
|
-
connect) _postman_sdk_connect ;;
|
|
1691
|
-
connections) _postman_sdk_connections ;;
|
|
1794
|
+
get) _postman_spec_file_get ;;
|
|
1795
|
+
add) _postman_spec_file_add ;;
|
|
1796
|
+
update) _postman_spec_file_update ;;
|
|
1797
|
+
rm) _postman_spec_file_rm ;;
|
|
1692
1798
|
esac
|
|
1693
1799
|
}
|
|
1694
1800
|
|
|
1695
|
-
|
|
1696
|
-
if [[ "$cur" == -* ]]; then
|
|
1697
|
-
COMPREPLY=( $(compgen -W "-y --yes -h --help" -- "$cur") )
|
|
1698
|
-
return 0
|
|
1699
|
-
fi
|
|
1700
|
-
}
|
|
1701
|
-
|
|
1702
|
-
_postman_sdk_generate() {
|
|
1801
|
+
_postman_spec_file_get() {
|
|
1703
1802
|
if [[ "$cur" == -* ]]; then
|
|
1704
|
-
COMPREPLY=( $(compgen -W "
|
|
1803
|
+
COMPREPLY=( $(compgen -W "--json --api-key -h --help" -- "$cur") )
|
|
1705
1804
|
return 0
|
|
1706
1805
|
fi
|
|
1707
1806
|
case "$prev" in
|
|
1708
|
-
-
|
|
1709
|
-
|
|
1710
|
-
return 0 ;;
|
|
1711
|
-
--config)
|
|
1712
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1807
|
+
--api-key)
|
|
1808
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1713
1809
|
return 0 ;;
|
|
1714
1810
|
esac
|
|
1811
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1715
1812
|
}
|
|
1716
1813
|
|
|
1717
|
-
|
|
1814
|
+
_postman_spec_file_add() {
|
|
1718
1815
|
if [[ "$cur" == -* ]]; then
|
|
1719
|
-
COMPREPLY=( $(compgen -W "-
|
|
1816
|
+
COMPREPLY=( $(compgen -W "-c --content --api-key -h --help" -- "$cur") )
|
|
1720
1817
|
return 0
|
|
1721
1818
|
fi
|
|
1722
1819
|
case "$prev" in
|
|
1723
|
-
-
|
|
1724
|
-
|
|
1820
|
+
--api-key)
|
|
1821
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1725
1822
|
return 0 ;;
|
|
1726
1823
|
esac
|
|
1824
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1727
1825
|
}
|
|
1728
1826
|
|
|
1729
|
-
|
|
1827
|
+
_postman_spec_file_update() {
|
|
1730
1828
|
if [[ "$cur" == -* ]]; then
|
|
1731
|
-
COMPREPLY=( $(compgen -W "-
|
|
1829
|
+
COMPREPLY=( $(compgen -W "-c --content --api-key -h --help" -- "$cur") )
|
|
1732
1830
|
return 0
|
|
1733
1831
|
fi
|
|
1734
1832
|
case "$prev" in
|
|
1833
|
+
--api-key)
|
|
1834
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1835
|
+
return 0 ;;
|
|
1735
1836
|
esac
|
|
1837
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1736
1838
|
}
|
|
1737
1839
|
|
|
1738
|
-
|
|
1840
|
+
_postman_spec_file_rm() {
|
|
1739
1841
|
if [[ "$cur" == -* ]]; then
|
|
1740
|
-
COMPREPLY=( $(compgen -W "-
|
|
1842
|
+
COMPREPLY=( $(compgen -W "-y --yes --api-key -h --help" -- "$cur") )
|
|
1741
1843
|
return 0
|
|
1742
1844
|
fi
|
|
1743
1845
|
case "$prev" in
|
|
1744
|
-
-
|
|
1745
|
-
|
|
1846
|
+
--api-key)
|
|
1847
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1746
1848
|
return 0 ;;
|
|
1747
1849
|
esac
|
|
1850
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1748
1851
|
}
|
|
1749
1852
|
|
|
1750
|
-
|
|
1853
|
+
_postman_spec_create() {
|
|
1751
1854
|
if [[ "$cur" == -* ]]; then
|
|
1752
|
-
COMPREPLY=( $(compgen -W "-
|
|
1855
|
+
COMPREPLY=( $(compgen -W "-n --name -t --type --spec-version -f --format -w --workspace --force --api-key -h --help" -- "$cur") )
|
|
1753
1856
|
return 0
|
|
1754
1857
|
fi
|
|
1755
1858
|
case "$prev" in
|
|
1859
|
+
--api-key)
|
|
1860
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1861
|
+
return 0 ;;
|
|
1756
1862
|
esac
|
|
1863
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1757
1864
|
}
|
|
1758
1865
|
|
|
1759
|
-
|
|
1866
|
+
_postman_spec_generate() {
|
|
1760
1867
|
if [[ -z "$subcmd" ]]; then
|
|
1761
1868
|
if [[ "$cur" == -* ]]; then
|
|
1762
1869
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1763
1870
|
else
|
|
1764
|
-
COMPREPLY=( $(compgen -W "
|
|
1871
|
+
COMPREPLY=( $(compgen -W "collection" -- "$cur") )
|
|
1765
1872
|
fi
|
|
1766
1873
|
return 0
|
|
1767
1874
|
fi
|
|
1768
1875
|
case "$subcmd" in
|
|
1769
|
-
|
|
1770
|
-
delete|rm) _postman_sdk_connections_delete ;;
|
|
1876
|
+
collection) _postman_spec_generate_collection ;;
|
|
1771
1877
|
esac
|
|
1772
1878
|
}
|
|
1773
1879
|
|
|
1774
|
-
|
|
1775
|
-
if [[ "$cur" == -* ]]; then
|
|
1776
|
-
COMPREPLY=( $(compgen -W "--refresh --json --verbose -h --help" -- "$cur") )
|
|
1777
|
-
return 0
|
|
1778
|
-
fi
|
|
1779
|
-
}
|
|
1780
|
-
|
|
1781
|
-
_postman_sdk_connections_delete() {
|
|
1880
|
+
_postman_spec_generate_collection() {
|
|
1782
1881
|
if [[ "$cur" == -* ]]; then
|
|
1783
|
-
COMPREPLY=( $(compgen -W "-
|
|
1882
|
+
COMPREPLY=( $(compgen -W "-n --name --folder-strategy -w --workspace --api-key --force -h --help" -- "$cur") )
|
|
1784
1883
|
return 0
|
|
1785
1884
|
fi
|
|
1885
|
+
case "$prev" in
|
|
1886
|
+
--api-key)
|
|
1887
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1888
|
+
return 0 ;;
|
|
1889
|
+
esac
|
|
1786
1890
|
}
|
|
1787
1891
|
|
|
1788
|
-
|
|
1892
|
+
_postman_spec_sync() {
|
|
1789
1893
|
if [[ -z "$subcmd" ]]; then
|
|
1790
1894
|
if [[ "$cur" == -* ]]; then
|
|
1791
1895
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1792
1896
|
else
|
|
1793
|
-
COMPREPLY=( $(compgen -W "
|
|
1897
|
+
COMPREPLY=( $(compgen -W "collection" -- "$cur") )
|
|
1794
1898
|
fi
|
|
1795
1899
|
return 0
|
|
1796
1900
|
fi
|
|
1797
1901
|
case "$subcmd" in
|
|
1798
|
-
|
|
1799
|
-
run) _postman_mock_run ;;
|
|
1800
|
-
push) _postman_mock_push ;;
|
|
1801
|
-
deploy) _postman_mock_deploy ;;
|
|
1802
|
-
get) _postman_mock_get ;;
|
|
1803
|
-
list) _postman_mock_list ;;
|
|
1804
|
-
log) _postman_mock_log ;;
|
|
1805
|
-
delete) _postman_mock_delete ;;
|
|
1902
|
+
collection) _postman_spec_sync_collection ;;
|
|
1806
1903
|
esac
|
|
1807
1904
|
}
|
|
1808
1905
|
|
|
1809
|
-
|
|
1906
|
+
_postman_spec_sync_collection() {
|
|
1810
1907
|
if [[ "$cur" == -* ]]; then
|
|
1811
|
-
COMPREPLY=( $(compgen -W "
|
|
1908
|
+
COMPREPLY=( $(compgen -W "--collection-id --api-key --force -h --help" -- "$cur") )
|
|
1812
1909
|
return 0
|
|
1813
1910
|
fi
|
|
1814
1911
|
case "$prev" in
|
|
1815
|
-
-o|--output)
|
|
1816
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1817
|
-
return 0 ;;
|
|
1818
|
-
-u|--update)
|
|
1819
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1820
|
-
return 0 ;;
|
|
1821
1912
|
--api-key)
|
|
1822
1913
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1823
1914
|
return 0 ;;
|
|
1824
1915
|
esac
|
|
1825
1916
|
}
|
|
1826
1917
|
|
|
1827
|
-
|
|
1918
|
+
_postman_spec_delete() {
|
|
1828
1919
|
if [[ "$cur" == -* ]]; then
|
|
1829
|
-
COMPREPLY=( $(compgen -W "-
|
|
1920
|
+
COMPREPLY=( $(compgen -W "-y --yes --api-key -h --help" -- "$cur") )
|
|
1830
1921
|
return 0
|
|
1831
1922
|
fi
|
|
1832
1923
|
case "$prev" in
|
|
1833
|
-
-e|--environment)
|
|
1834
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1835
|
-
return 0 ;;
|
|
1836
|
-
-g|--globals)
|
|
1837
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1838
|
-
return 0 ;;
|
|
1839
1924
|
--api-key)
|
|
1840
1925
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1841
1926
|
return 0 ;;
|
|
1842
|
-
--dataset)
|
|
1843
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1844
|
-
return 0 ;;
|
|
1845
1927
|
esac
|
|
1846
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1847
1928
|
}
|
|
1848
1929
|
|
|
1849
|
-
|
|
1930
|
+
_postman_workspace() {
|
|
1931
|
+
if [[ -z "$subcmd" ]]; then
|
|
1932
|
+
if [[ "$cur" == -* ]]; then
|
|
1933
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1934
|
+
else
|
|
1935
|
+
COMPREPLY=( $(compgen -W "list prepare push lint get create delete pull connect-git disconnect-git diff" -- "$cur") )
|
|
1936
|
+
fi
|
|
1937
|
+
return 0
|
|
1938
|
+
fi
|
|
1939
|
+
case "$subcmd" in
|
|
1940
|
+
list) _postman_workspace_list ;;
|
|
1941
|
+
prepare) _postman_workspace_prepare ;;
|
|
1942
|
+
push) _postman_workspace_push ;;
|
|
1943
|
+
lint) _postman_workspace_lint ;;
|
|
1944
|
+
get) _postman_workspace_get ;;
|
|
1945
|
+
create) _postman_workspace_create ;;
|
|
1946
|
+
delete) _postman_workspace_delete ;;
|
|
1947
|
+
pull) _postman_workspace_pull ;;
|
|
1948
|
+
connect-git) _postman_workspace_connect_git ;;
|
|
1949
|
+
disconnect-git) _postman_workspace_disconnect_git ;;
|
|
1950
|
+
diff) _postman_workspace_diff ;;
|
|
1951
|
+
esac
|
|
1952
|
+
}
|
|
1953
|
+
|
|
1954
|
+
_postman_workspace_list() {
|
|
1850
1955
|
if [[ "$cur" == -* ]]; then
|
|
1851
|
-
COMPREPLY=( $(compgen -W "-
|
|
1956
|
+
COMPREPLY=( $(compgen -W "-f --filter -t --type --cursor --verbose --debug --json -h --help" -- "$cur") )
|
|
1852
1957
|
return 0
|
|
1853
1958
|
fi
|
|
1854
1959
|
case "$prev" in
|
|
1855
|
-
--api-key)
|
|
1856
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1857
|
-
return 0 ;;
|
|
1858
1960
|
esac
|
|
1859
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1860
1961
|
}
|
|
1861
1962
|
|
|
1862
|
-
|
|
1963
|
+
_postman_workspace_prepare() {
|
|
1964
|
+
if [[ "$cur" == -* ]]; then
|
|
1965
|
+
COMPREPLY=( $(compgen -W "--verbose --json -h --help" -- "$cur") )
|
|
1966
|
+
return 0
|
|
1967
|
+
fi
|
|
1968
|
+
}
|
|
1969
|
+
|
|
1970
|
+
_postman_workspace_push() {
|
|
1863
1971
|
if [[ "$cur" == -* ]]; then
|
|
1864
|
-
COMPREPLY=( $(compgen -W "-
|
|
1972
|
+
COMPREPLY=( $(compgen -W "--no-prepare -y --yes --push-strategy --json --verbose --report-events --no-report-events -h --help" -- "$cur") )
|
|
1865
1973
|
return 0
|
|
1866
1974
|
fi
|
|
1867
1975
|
case "$prev" in
|
|
1868
|
-
--api-key)
|
|
1869
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1870
|
-
return 0 ;;
|
|
1871
1976
|
esac
|
|
1872
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1873
1977
|
}
|
|
1874
1978
|
|
|
1875
|
-
|
|
1979
|
+
_postman_workspace_lint() {
|
|
1876
1980
|
if [[ "$cur" == -* ]]; then
|
|
1877
|
-
COMPREPLY=( $(compgen -W "--
|
|
1981
|
+
COMPREPLY=( $(compgen -W "-f --fail-severity -o --output --meta --workspace-id --fix -h --help" -- "$cur") )
|
|
1878
1982
|
return 0
|
|
1879
1983
|
fi
|
|
1880
1984
|
case "$prev" in
|
|
1881
|
-
--api-key)
|
|
1882
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1883
|
-
return 0 ;;
|
|
1884
1985
|
esac
|
|
1885
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1886
1986
|
}
|
|
1887
1987
|
|
|
1888
|
-
|
|
1988
|
+
_postman_workspace_get() {
|
|
1889
1989
|
if [[ "$cur" == -* ]]; then
|
|
1890
|
-
COMPREPLY=( $(compgen -W "
|
|
1990
|
+
COMPREPLY=( $(compgen -W "--elements --json --timeout -h --help" -- "$cur") )
|
|
1891
1991
|
return 0
|
|
1892
1992
|
fi
|
|
1893
1993
|
case "$prev" in
|
|
1894
|
-
--api-key)
|
|
1895
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1896
|
-
return 0 ;;
|
|
1897
1994
|
esac
|
|
1898
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1899
1995
|
}
|
|
1900
1996
|
|
|
1901
|
-
|
|
1997
|
+
_postman_workspace_create() {
|
|
1902
1998
|
if [[ "$cur" == -* ]]; then
|
|
1903
|
-
COMPREPLY=( $(compgen -W "--
|
|
1999
|
+
COMPREPLY=( $(compgen -W "--visibility --name --summary --team-id --team-role --path --no-connect --force --json -h --help" -- "$cur") )
|
|
1904
2000
|
return 0
|
|
1905
2001
|
fi
|
|
1906
2002
|
case "$prev" in
|
|
1907
|
-
--
|
|
1908
|
-
_postman_filematch '!*.@(
|
|
2003
|
+
--path)
|
|
2004
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1909
2005
|
return 0 ;;
|
|
1910
2006
|
esac
|
|
1911
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1912
2007
|
}
|
|
1913
2008
|
|
|
1914
|
-
|
|
2009
|
+
_postman_workspace_delete() {
|
|
1915
2010
|
if [[ "$cur" == -* ]]; then
|
|
1916
|
-
COMPREPLY=( $(compgen -W "-y --yes --
|
|
2011
|
+
COMPREPLY=( $(compgen -W "-y --yes --json --verbose --timeout -h --help" -- "$cur") )
|
|
1917
2012
|
return 0
|
|
1918
2013
|
fi
|
|
1919
2014
|
case "$prev" in
|
|
1920
|
-
--api-key)
|
|
1921
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1922
|
-
return 0 ;;
|
|
1923
2015
|
esac
|
|
1924
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1925
2016
|
}
|
|
1926
2017
|
|
|
1927
|
-
|
|
1928
|
-
if [[
|
|
1929
|
-
|
|
1930
|
-
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1931
|
-
else
|
|
1932
|
-
COMPREPLY=( $(compgen -W "init test setup-capture" -- "$cur") )
|
|
1933
|
-
fi
|
|
2018
|
+
_postman_workspace_pull() {
|
|
2019
|
+
if [[ "$cur" == -* ]]; then
|
|
2020
|
+
COMPREPLY=( $(compgen -W "-y --yes --source-workspace --json --verbose -h --help" -- "$cur") )
|
|
1934
2021
|
return 0
|
|
1935
2022
|
fi
|
|
1936
|
-
case "$
|
|
1937
|
-
init) _postman_application_init ;;
|
|
1938
|
-
test) _postman_application_test ;;
|
|
1939
|
-
setup-capture) _postman_application_setup_capture ;;
|
|
2023
|
+
case "$prev" in
|
|
1940
2024
|
esac
|
|
1941
2025
|
}
|
|
1942
2026
|
|
|
1943
|
-
|
|
2027
|
+
_postman_workspace_connect_git() {
|
|
1944
2028
|
if [[ "$cur" == -* ]]; then
|
|
1945
|
-
COMPREPLY=( $(compgen -W "--
|
|
2029
|
+
COMPREPLY=( $(compgen -W "--verbose --json -h --help" -- "$cur") )
|
|
1946
2030
|
return 0
|
|
1947
2031
|
fi
|
|
1948
|
-
|
|
1949
|
-
esac
|
|
2032
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1950
2033
|
}
|
|
1951
2034
|
|
|
1952
|
-
|
|
2035
|
+
_postman_workspace_disconnect_git() {
|
|
1953
2036
|
if [[ "$cur" == -* ]]; then
|
|
1954
|
-
COMPREPLY=( $(compgen -W "
|
|
2037
|
+
COMPREPLY=( $(compgen -W "-y --yes --verbose --json -h --help" -- "$cur") )
|
|
1955
2038
|
return 0
|
|
1956
2039
|
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
2040
|
}
|
|
1972
2041
|
|
|
1973
|
-
|
|
2042
|
+
_postman_workspace_diff() {
|
|
1974
2043
|
if [[ "$cur" == -* ]]; then
|
|
1975
|
-
COMPREPLY=( $(compgen -W "--
|
|
2044
|
+
COMPREPLY=( $(compgen -W "--push-strategy --summary --json --exit-code --verbose --timeout -h --help" -- "$cur") )
|
|
1976
2045
|
return 0
|
|
1977
2046
|
fi
|
|
1978
2047
|
case "$prev" in
|
|
1979
|
-
--config)
|
|
1980
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1981
|
-
return 0 ;;
|
|
1982
2048
|
esac
|
|
1983
2049
|
}
|
|
1984
2050
|
|
|
1985
|
-
|
|
2051
|
+
_postman_context_graph() {
|
|
1986
2052
|
if [[ -z "$subcmd" ]]; then
|
|
1987
2053
|
if [[ "$cur" == -* ]]; then
|
|
1988
2054
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1989
2055
|
else
|
|
1990
|
-
COMPREPLY=( $(compgen -W "
|
|
2056
|
+
COMPREPLY=( $(compgen -W "ask status ingest" -- "$cur") )
|
|
1991
2057
|
fi
|
|
1992
2058
|
return 0
|
|
1993
2059
|
fi
|
|
1994
2060
|
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 ;;
|
|
2061
|
+
ask) _postman_context_graph_ask ;;
|
|
2062
|
+
status) _postman_context_graph_status ;;
|
|
2063
|
+
ingest) _postman_context_graph_ingest ;;
|
|
2020
2064
|
esac
|
|
2021
2065
|
}
|
|
2022
2066
|
|
|
2023
|
-
|
|
2067
|
+
_postman_context_graph_ask() {
|
|
2024
2068
|
if [[ "$cur" == -* ]]; then
|
|
2025
|
-
COMPREPLY=( $(compgen -W "
|
|
2069
|
+
COMPREPLY=( $(compgen -W "--wait --api-key --json --no-include-answer --max-steps --interval --timeout -h --help" -- "$cur") )
|
|
2026
2070
|
return 0
|
|
2027
2071
|
fi
|
|
2028
2072
|
case "$prev" in
|
|
@@ -2030,10 +2074,9 @@ _postman_simulation_list() {
|
|
|
2030
2074
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2031
2075
|
return 0 ;;
|
|
2032
2076
|
esac
|
|
2033
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
2034
2077
|
}
|
|
2035
2078
|
|
|
2036
|
-
|
|
2079
|
+
_postman_context_graph_status() {
|
|
2037
2080
|
if [[ "$cur" == -* ]]; then
|
|
2038
2081
|
COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
|
|
2039
2082
|
return 0
|
|
@@ -2045,30 +2088,25 @@ _postman_simulation_get() {
|
|
|
2045
2088
|
esac
|
|
2046
2089
|
}
|
|
2047
2090
|
|
|
2048
|
-
|
|
2049
|
-
if [[ "$
|
|
2050
|
-
|
|
2091
|
+
_postman_context_graph_ingest() {
|
|
2092
|
+
if [[ -z "$subcmd" ]]; then
|
|
2093
|
+
if [[ "$cur" == -* ]]; then
|
|
2094
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2095
|
+
else
|
|
2096
|
+
COMPREPLY=( $(compgen -W "git workspaces status" -- "$cur") )
|
|
2097
|
+
fi
|
|
2051
2098
|
return 0
|
|
2052
2099
|
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 ;;
|
|
2100
|
+
case "$subcmd" in
|
|
2101
|
+
git) _postman_context_graph_ingest_git ;;
|
|
2102
|
+
workspaces) _postman_context_graph_ingest_workspaces ;;
|
|
2103
|
+
status) _postman_context_graph_ingest_status ;;
|
|
2066
2104
|
esac
|
|
2067
2105
|
}
|
|
2068
2106
|
|
|
2069
|
-
|
|
2107
|
+
_postman_context_graph_ingest_git() {
|
|
2070
2108
|
if [[ "$cur" == -* ]]; then
|
|
2071
|
-
COMPREPLY=( $(compgen -W "-
|
|
2109
|
+
COMPREPLY=( $(compgen -W "--all-git-linked-workspaces --tag --ttl --api-key --json -h --help" -- "$cur") )
|
|
2072
2110
|
return 0
|
|
2073
2111
|
fi
|
|
2074
2112
|
case "$prev" in
|
|
@@ -2078,9 +2116,9 @@ _postman_simulation_push() {
|
|
|
2078
2116
|
esac
|
|
2079
2117
|
}
|
|
2080
2118
|
|
|
2081
|
-
|
|
2119
|
+
_postman_context_graph_ingest_workspaces() {
|
|
2082
2120
|
if [[ "$cur" == -* ]]; then
|
|
2083
|
-
COMPREPLY=( $(compgen -W "-w --workspace
|
|
2121
|
+
COMPREPLY=( $(compgen -W "-w --workspace --top --ttl --api-key --json -h --help" -- "$cur") )
|
|
2084
2122
|
return 0
|
|
2085
2123
|
fi
|
|
2086
2124
|
case "$prev" in
|
|
@@ -2090,9 +2128,9 @@ _postman_simulation_deploy() {
|
|
|
2090
2128
|
esac
|
|
2091
2129
|
}
|
|
2092
2130
|
|
|
2093
|
-
|
|
2131
|
+
_postman_context_graph_ingest_status() {
|
|
2094
2132
|
if [[ "$cur" == -* ]]; then
|
|
2095
|
-
COMPREPLY=( $(compgen -W "
|
|
2133
|
+
COMPREPLY=( $(compgen -W "--source --api-key --json -h --help" -- "$cur") )
|
|
2096
2134
|
return 0
|
|
2097
2135
|
fi
|
|
2098
2136
|
case "$prev" in
|
|
@@ -2277,285 +2315,382 @@ _postman_describe_environment_get() {
|
|
|
2277
2315
|
esac
|
|
2278
2316
|
}
|
|
2279
2317
|
|
|
2280
|
-
|
|
2318
|
+
_postman_init() {
|
|
2319
|
+
if [[ "$cur" == -* ]]; then
|
|
2320
|
+
COMPREPLY=( $(compgen -W "--json --dry-run --no-fetch --spec --visibility -y --yes --report-events -h --help" -- "$cur") )
|
|
2321
|
+
return 0
|
|
2322
|
+
fi
|
|
2323
|
+
case "$prev" in
|
|
2324
|
+
--spec)
|
|
2325
|
+
_postman_filematch '!*.@(yaml|yml|json)' "$cur"
|
|
2326
|
+
return 0 ;;
|
|
2327
|
+
esac
|
|
2328
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2329
|
+
}
|
|
2330
|
+
|
|
2331
|
+
_postman_search() {
|
|
2281
2332
|
if [[ -z "$subcmd" ]]; then
|
|
2282
2333
|
if [[ "$cur" == -* ]]; then
|
|
2283
|
-
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2334
|
+
COMPREPLY=( $(compgen -W "--ownership -n --limit --cursor -o --output --filter --filter-json -h --help" -- "$cur") )
|
|
2284
2335
|
else
|
|
2285
|
-
COMPREPLY=( $(compgen -W "
|
|
2336
|
+
COMPREPLY=( $(compgen -W "requests collections workspaces flows specs mocks environments documents" -- "$cur") )
|
|
2286
2337
|
fi
|
|
2287
2338
|
return 0
|
|
2288
2339
|
fi
|
|
2289
2340
|
case "$subcmd" in
|
|
2290
|
-
|
|
2291
|
-
|
|
2341
|
+
requests) _postman_search_requests ;;
|
|
2342
|
+
collections) _postman_search_collections ;;
|
|
2343
|
+
workspaces) _postman_search_workspaces ;;
|
|
2344
|
+
flows) _postman_search_flows ;;
|
|
2345
|
+
specs) _postman_search_specs ;;
|
|
2346
|
+
mocks) _postman_search_mocks ;;
|
|
2347
|
+
environments) _postman_search_environments ;;
|
|
2348
|
+
documents) _postman_search_documents ;;
|
|
2292
2349
|
esac
|
|
2293
2350
|
}
|
|
2294
2351
|
|
|
2295
|
-
|
|
2352
|
+
_postman_search_requests() {
|
|
2296
2353
|
if [[ "$cur" == -* ]]; then
|
|
2297
|
-
COMPREPLY=( $(compgen -W "
|
|
2354
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2298
2355
|
return 0
|
|
2299
2356
|
fi
|
|
2300
|
-
case "$prev" in
|
|
2301
|
-
--api-key)
|
|
2302
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2303
|
-
return 0 ;;
|
|
2304
|
-
esac
|
|
2305
2357
|
}
|
|
2306
2358
|
|
|
2307
|
-
|
|
2359
|
+
_postman_search_collections() {
|
|
2308
2360
|
if [[ "$cur" == -* ]]; then
|
|
2309
|
-
COMPREPLY=( $(compgen -W "
|
|
2361
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2310
2362
|
return 0
|
|
2311
2363
|
fi
|
|
2312
|
-
case "$prev" in
|
|
2313
|
-
--api-key)
|
|
2314
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2315
|
-
return 0 ;;
|
|
2316
|
-
esac
|
|
2317
2364
|
}
|
|
2318
2365
|
|
|
2319
|
-
|
|
2366
|
+
_postman_search_workspaces() {
|
|
2367
|
+
if [[ "$cur" == -* ]]; then
|
|
2368
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2369
|
+
return 0
|
|
2370
|
+
fi
|
|
2371
|
+
}
|
|
2372
|
+
|
|
2373
|
+
_postman_search_flows() {
|
|
2374
|
+
if [[ "$cur" == -* ]]; then
|
|
2375
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2376
|
+
return 0
|
|
2377
|
+
fi
|
|
2378
|
+
}
|
|
2379
|
+
|
|
2380
|
+
_postman_search_specs() {
|
|
2381
|
+
if [[ "$cur" == -* ]]; then
|
|
2382
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2383
|
+
return 0
|
|
2384
|
+
fi
|
|
2385
|
+
}
|
|
2386
|
+
|
|
2387
|
+
_postman_search_mocks() {
|
|
2388
|
+
if [[ "$cur" == -* ]]; then
|
|
2389
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2390
|
+
return 0
|
|
2391
|
+
fi
|
|
2392
|
+
}
|
|
2393
|
+
|
|
2394
|
+
_postman_search_environments() {
|
|
2395
|
+
if [[ "$cur" == -* ]]; then
|
|
2396
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2397
|
+
return 0
|
|
2398
|
+
fi
|
|
2399
|
+
}
|
|
2400
|
+
|
|
2401
|
+
_postman_search_documents() {
|
|
2402
|
+
if [[ "$cur" == -* ]]; then
|
|
2403
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2404
|
+
return 0
|
|
2405
|
+
fi
|
|
2406
|
+
}
|
|
2407
|
+
|
|
2408
|
+
_postman_skills() {
|
|
2320
2409
|
if [[ -z "$subcmd" ]]; then
|
|
2321
2410
|
if [[ "$cur" == -* ]]; then
|
|
2322
|
-
COMPREPLY=( $(compgen -W "
|
|
2411
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2323
2412
|
else
|
|
2324
|
-
COMPREPLY=( $(compgen -W "
|
|
2413
|
+
COMPREPLY=( $(compgen -W "status update" -- "$cur") )
|
|
2325
2414
|
fi
|
|
2326
2415
|
return 0
|
|
2327
2416
|
fi
|
|
2328
2417
|
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 ;;
|
|
2418
|
+
status) _postman_skills_status ;;
|
|
2419
|
+
update) _postman_skills_update ;;
|
|
2337
2420
|
esac
|
|
2338
2421
|
}
|
|
2339
2422
|
|
|
2340
|
-
|
|
2423
|
+
_postman_skills_status() {
|
|
2341
2424
|
if [[ "$cur" == -* ]]; then
|
|
2342
|
-
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2425
|
+
COMPREPLY=( $(compgen -W "--json --strict -h --help" -- "$cur") )
|
|
2343
2426
|
return 0
|
|
2344
2427
|
fi
|
|
2428
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2345
2429
|
}
|
|
2346
2430
|
|
|
2347
|
-
|
|
2431
|
+
_postman_skills_update() {
|
|
2348
2432
|
if [[ "$cur" == -* ]]; then
|
|
2349
|
-
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2433
|
+
COMPREPLY=( $(compgen -W "--json --dry-run --force -h --help" -- "$cur") )
|
|
2350
2434
|
return 0
|
|
2351
2435
|
fi
|
|
2436
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2352
2437
|
}
|
|
2353
2438
|
|
|
2354
|
-
|
|
2439
|
+
_postman_login() {
|
|
2355
2440
|
if [[ "$cur" == -* ]]; then
|
|
2356
|
-
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2441
|
+
COMPREPLY=( $(compgen -W "--alias --with-api-key --region --verbose -h --help" -- "$cur") )
|
|
2357
2442
|
return 0
|
|
2358
2443
|
fi
|
|
2444
|
+
case "$prev" in
|
|
2445
|
+
--region)
|
|
2446
|
+
COMPREPLY=( $(compgen -W "us eu" -- "$cur") )
|
|
2447
|
+
return 0 ;;
|
|
2448
|
+
esac
|
|
2359
2449
|
}
|
|
2360
2450
|
|
|
2361
|
-
|
|
2451
|
+
_postman_logout() {
|
|
2362
2452
|
if [[ "$cur" == -* ]]; then
|
|
2363
|
-
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2453
|
+
COMPREPLY=( $(compgen -W "--alias -h --help" -- "$cur") )
|
|
2364
2454
|
return 0
|
|
2365
2455
|
fi
|
|
2456
|
+
case "$prev" in
|
|
2457
|
+
esac
|
|
2366
2458
|
}
|
|
2367
2459
|
|
|
2368
|
-
|
|
2460
|
+
_postman_signup() {
|
|
2369
2461
|
if [[ "$cur" == -* ]]; then
|
|
2370
|
-
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2462
|
+
COMPREPLY=( $(compgen -W "--guest --json -h --help" -- "$cur") )
|
|
2371
2463
|
return 0
|
|
2372
2464
|
fi
|
|
2373
2465
|
}
|
|
2374
2466
|
|
|
2375
|
-
|
|
2467
|
+
_postman_whoami() {
|
|
2376
2468
|
if [[ "$cur" == -* ]]; then
|
|
2377
|
-
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2469
|
+
COMPREPLY=( $(compgen -W "--json -h --help" -- "$cur") )
|
|
2378
2470
|
return 0
|
|
2379
2471
|
fi
|
|
2380
2472
|
}
|
|
2381
2473
|
|
|
2382
|
-
|
|
2474
|
+
_postman_application() {
|
|
2475
|
+
if [[ -z "$subcmd" ]]; then
|
|
2476
|
+
if [[ "$cur" == -* ]]; then
|
|
2477
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2478
|
+
else
|
|
2479
|
+
COMPREPLY=( $(compgen -W "init test setup-capture" -- "$cur") )
|
|
2480
|
+
fi
|
|
2481
|
+
return 0
|
|
2482
|
+
fi
|
|
2483
|
+
case "$subcmd" in
|
|
2484
|
+
init) _postman_application_init ;;
|
|
2485
|
+
test) _postman_application_test ;;
|
|
2486
|
+
setup-capture) _postman_application_setup_capture ;;
|
|
2487
|
+
esac
|
|
2488
|
+
}
|
|
2489
|
+
|
|
2490
|
+
_postman_application_init() {
|
|
2383
2491
|
if [[ "$cur" == -* ]]; then
|
|
2384
|
-
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2492
|
+
COMPREPLY=( $(compgen -W "--target-collection --target-environment --filter-urlpatterns --filter-methods --filter-headers --command -h --help" -- "$cur") )
|
|
2385
2493
|
return 0
|
|
2386
2494
|
fi
|
|
2495
|
+
case "$prev" in
|
|
2496
|
+
esac
|
|
2387
2497
|
}
|
|
2388
2498
|
|
|
2389
|
-
|
|
2499
|
+
_postman_application_test() {
|
|
2390
2500
|
if [[ "$cur" == -* ]]; then
|
|
2391
|
-
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2501
|
+
COMPREPLY=( $(compgen -W "--target --target-collection --target-environment --command --deployed-version --network-log --capture-only --output --force --report-events --no-report-events --verbose -h --help" -- "$cur") )
|
|
2502
|
+
return 0
|
|
2503
|
+
fi
|
|
2504
|
+
case "$prev" in
|
|
2505
|
+
--target-collection)
|
|
2506
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2507
|
+
return 0 ;;
|
|
2508
|
+
--target-environment)
|
|
2509
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2510
|
+
return 0 ;;
|
|
2511
|
+
--network-log)
|
|
2512
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2513
|
+
return 0 ;;
|
|
2514
|
+
--output)
|
|
2515
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2516
|
+
return 0 ;;
|
|
2517
|
+
esac
|
|
2518
|
+
}
|
|
2519
|
+
|
|
2520
|
+
_postman_application_setup_capture() {
|
|
2521
|
+
if [[ "$cur" == -* ]]; then
|
|
2522
|
+
COMPREPLY=( $(compgen -W "--config -h --help" -- "$cur") )
|
|
2392
2523
|
return 0
|
|
2393
2524
|
fi
|
|
2525
|
+
case "$prev" in
|
|
2526
|
+
--config)
|
|
2527
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2528
|
+
return 0 ;;
|
|
2529
|
+
esac
|
|
2394
2530
|
}
|
|
2395
2531
|
|
|
2396
|
-
|
|
2532
|
+
_postman_dependency() {
|
|
2397
2533
|
if [[ -z "$subcmd" ]]; then
|
|
2398
2534
|
if [[ "$cur" == -* ]]; then
|
|
2399
2535
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2400
2536
|
else
|
|
2401
|
-
COMPREPLY=( $(compgen -W "
|
|
2537
|
+
COMPREPLY=( $(compgen -W "add get list install update remove" -- "$cur") )
|
|
2402
2538
|
fi
|
|
2403
2539
|
return 0
|
|
2404
2540
|
fi
|
|
2405
2541
|
case "$subcmd" in
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
requests) _postman_webhook_requests ;;
|
|
2413
|
-
scripts) _postman_webhook_scripts ;;
|
|
2414
|
-
forward) _postman_webhook_forward ;;
|
|
2542
|
+
add) _postman_dependency_add ;;
|
|
2543
|
+
get) _postman_dependency_get ;;
|
|
2544
|
+
list) _postman_dependency_list ;;
|
|
2545
|
+
install) _postman_dependency_install ;;
|
|
2546
|
+
update) _postman_dependency_update ;;
|
|
2547
|
+
remove) _postman_dependency_remove ;;
|
|
2415
2548
|
esac
|
|
2416
2549
|
}
|
|
2417
2550
|
|
|
2418
|
-
|
|
2551
|
+
_postman_dependency_add() {
|
|
2419
2552
|
if [[ "$cur" == -* ]]; then
|
|
2420
|
-
COMPREPLY=( $(compgen -W "-
|
|
2553
|
+
COMPREPLY=( $(compgen -W "-w --workspace -y --yes --json -h --help" -- "$cur") )
|
|
2421
2554
|
return 0
|
|
2422
2555
|
fi
|
|
2423
2556
|
case "$prev" in
|
|
2424
|
-
--api-key)
|
|
2425
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2426
|
-
return 0 ;;
|
|
2427
2557
|
esac
|
|
2428
2558
|
}
|
|
2429
2559
|
|
|
2430
|
-
|
|
2560
|
+
_postman_dependency_get() {
|
|
2431
2561
|
if [[ "$cur" == -* ]]; then
|
|
2432
|
-
COMPREPLY=( $(compgen -W "
|
|
2562
|
+
COMPREPLY=( $(compgen -W "--type --json -h --help" -- "$cur") )
|
|
2433
2563
|
return 0
|
|
2434
2564
|
fi
|
|
2435
2565
|
case "$prev" in
|
|
2436
|
-
--api-key)
|
|
2437
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2438
|
-
return 0 ;;
|
|
2439
2566
|
esac
|
|
2440
2567
|
}
|
|
2441
2568
|
|
|
2442
|
-
|
|
2569
|
+
_postman_dependency_list() {
|
|
2443
2570
|
if [[ "$cur" == -* ]]; then
|
|
2444
|
-
COMPREPLY=( $(compgen -W "
|
|
2571
|
+
COMPREPLY=( $(compgen -W "--type --json -h --help" -- "$cur") )
|
|
2445
2572
|
return 0
|
|
2446
2573
|
fi
|
|
2447
2574
|
case "$prev" in
|
|
2448
|
-
--api-key)
|
|
2449
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2450
|
-
return 0 ;;
|
|
2451
2575
|
esac
|
|
2452
2576
|
}
|
|
2453
2577
|
|
|
2454
|
-
|
|
2578
|
+
_postman_dependency_install() {
|
|
2455
2579
|
if [[ "$cur" == -* ]]; then
|
|
2456
|
-
COMPREPLY=( $(compgen -W "
|
|
2580
|
+
COMPREPLY=( $(compgen -W "--type --json -h --help" -- "$cur") )
|
|
2457
2581
|
return 0
|
|
2458
2582
|
fi
|
|
2459
2583
|
case "$prev" in
|
|
2460
|
-
--api-key)
|
|
2461
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2462
|
-
return 0 ;;
|
|
2463
2584
|
esac
|
|
2464
2585
|
}
|
|
2465
2586
|
|
|
2466
|
-
|
|
2587
|
+
_postman_dependency_update() {
|
|
2467
2588
|
if [[ "$cur" == -* ]]; then
|
|
2468
|
-
COMPREPLY=( $(compgen -W "
|
|
2589
|
+
COMPREPLY=( $(compgen -W "--type --json -h --help" -- "$cur") )
|
|
2469
2590
|
return 0
|
|
2470
2591
|
fi
|
|
2471
2592
|
case "$prev" in
|
|
2472
|
-
--api-key)
|
|
2473
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2474
|
-
return 0 ;;
|
|
2475
2593
|
esac
|
|
2476
2594
|
}
|
|
2477
2595
|
|
|
2478
|
-
|
|
2596
|
+
_postman_dependency_remove() {
|
|
2479
2597
|
if [[ "$cur" == -* ]]; then
|
|
2480
|
-
COMPREPLY=( $(compgen -W "-
|
|
2598
|
+
COMPREPLY=( $(compgen -W "--type -y --yes --json -h --help" -- "$cur") )
|
|
2481
2599
|
return 0
|
|
2482
2600
|
fi
|
|
2483
2601
|
case "$prev" in
|
|
2484
|
-
--api-key)
|
|
2485
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2486
|
-
return 0 ;;
|
|
2487
2602
|
esac
|
|
2488
2603
|
}
|
|
2489
2604
|
|
|
2490
|
-
|
|
2605
|
+
_postman_feedback() {
|
|
2606
|
+
if [[ "$cur" == -* ]]; then
|
|
2607
|
+
COMPREPLY=( $(compgen -W "--type --context --json -h --help" -- "$cur") )
|
|
2608
|
+
return 0
|
|
2609
|
+
fi
|
|
2610
|
+
case "$prev" in
|
|
2611
|
+
esac
|
|
2612
|
+
}
|
|
2613
|
+
|
|
2614
|
+
_postman_performance() {
|
|
2491
2615
|
if [[ -z "$subcmd" ]]; then
|
|
2492
2616
|
if [[ "$cur" == -* ]]; then
|
|
2493
2617
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2494
2618
|
else
|
|
2495
|
-
COMPREPLY=( $(compgen -W "list
|
|
2619
|
+
COMPREPLY=( $(compgen -W "run list get" -- "$cur") )
|
|
2496
2620
|
fi
|
|
2497
2621
|
return 0
|
|
2498
2622
|
fi
|
|
2499
2623
|
case "$subcmd" in
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2624
|
+
run) _postman_performance_run ;;
|
|
2625
|
+
list) _postman_performance_list ;;
|
|
2626
|
+
get) _postman_performance_get ;;
|
|
2503
2627
|
esac
|
|
2504
2628
|
}
|
|
2505
2629
|
|
|
2506
|
-
|
|
2630
|
+
_postman_performance_run() {
|
|
2507
2631
|
if [[ "$cur" == -* ]]; then
|
|
2508
|
-
COMPREPLY=( $(compgen -W "-
|
|
2632
|
+
COMPREPLY=( $(compgen -W "-e --environment -g --globals --setup-collection --teardown-collection --peak-vu --vu-count --base-vu -d --duration -p --load-profile -s --load-segments --data-file --ssl-client-cert-list --ssl-client-cert --ssl-client-key --ssl-client-passphrase -k --insecure --ssl-extra-ca-certs --dataset-id --dataset-view-id --dataset-distribution --postman-api-key --output --runner --disable-unicode --pass-if --use-mock --dataset -h --help" -- "$cur") )
|
|
2509
2633
|
return 0
|
|
2510
2634
|
fi
|
|
2511
2635
|
case "$prev" in
|
|
2512
|
-
--
|
|
2636
|
+
--data-file)
|
|
2637
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2638
|
+
return 0 ;;
|
|
2639
|
+
--ssl-client-cert-list)
|
|
2640
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2641
|
+
return 0 ;;
|
|
2642
|
+
--ssl-client-cert)
|
|
2643
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2644
|
+
return 0 ;;
|
|
2645
|
+
--ssl-client-key)
|
|
2513
2646
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2514
2647
|
return 0 ;;
|
|
2648
|
+
--ssl-extra-ca-certs)
|
|
2649
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2650
|
+
return 0 ;;
|
|
2651
|
+
--dataset)
|
|
2652
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2653
|
+
return 0 ;;
|
|
2515
2654
|
esac
|
|
2655
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2516
2656
|
}
|
|
2517
2657
|
|
|
2518
|
-
|
|
2658
|
+
_postman_performance_list() {
|
|
2519
2659
|
if [[ "$cur" == -* ]]; then
|
|
2520
|
-
COMPREPLY=( $(compgen -W "-
|
|
2660
|
+
COMPREPLY=( $(compgen -W "-c --collection-id --cursor --output --json --timeout -h --help" -- "$cur") )
|
|
2521
2661
|
return 0
|
|
2522
2662
|
fi
|
|
2523
2663
|
case "$prev" in
|
|
2524
|
-
--api-key)
|
|
2525
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2526
|
-
return 0 ;;
|
|
2527
2664
|
esac
|
|
2528
2665
|
}
|
|
2529
2666
|
|
|
2530
|
-
|
|
2667
|
+
_postman_performance_get() {
|
|
2531
2668
|
if [[ "$cur" == -* ]]; then
|
|
2532
|
-
COMPREPLY=( $(compgen -W "
|
|
2669
|
+
COMPREPLY=( $(compgen -W "--output --json --timeout -h --help" -- "$cur") )
|
|
2533
2670
|
return 0
|
|
2534
2671
|
fi
|
|
2535
2672
|
case "$prev" in
|
|
2536
|
-
--api-key)
|
|
2537
|
-
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2538
|
-
return 0 ;;
|
|
2539
2673
|
esac
|
|
2540
2674
|
}
|
|
2541
2675
|
|
|
2542
|
-
|
|
2676
|
+
_postman_secret() {
|
|
2543
2677
|
if [[ -z "$subcmd" ]]; then
|
|
2544
2678
|
if [[ "$cur" == -* ]]; then
|
|
2545
2679
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2546
2680
|
else
|
|
2547
|
-
COMPREPLY=( $(compgen -W "
|
|
2681
|
+
COMPREPLY=( $(compgen -W "create list" -- "$cur") )
|
|
2548
2682
|
fi
|
|
2549
2683
|
return 0
|
|
2550
2684
|
fi
|
|
2551
2685
|
case "$subcmd" in
|
|
2552
|
-
|
|
2686
|
+
create) _postman_secret_create ;;
|
|
2687
|
+
list) _postman_secret_list ;;
|
|
2553
2688
|
esac
|
|
2554
2689
|
}
|
|
2555
2690
|
|
|
2556
|
-
|
|
2691
|
+
_postman_secret_create() {
|
|
2557
2692
|
if [[ "$cur" == -* ]]; then
|
|
2558
|
-
COMPREPLY=( $(compgen -W "--
|
|
2693
|
+
COMPREPLY=( $(compgen -W "--team-id -w --workspace --api-key --terminal --value-stdin --timeout -h --help" -- "$cur") )
|
|
2559
2694
|
return 0
|
|
2560
2695
|
fi
|
|
2561
2696
|
case "$prev" in
|
|
@@ -2563,11 +2698,12 @@ _postman_webhook_scripts_set() {
|
|
|
2563
2698
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2564
2699
|
return 0 ;;
|
|
2565
2700
|
esac
|
|
2701
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2566
2702
|
}
|
|
2567
2703
|
|
|
2568
|
-
|
|
2704
|
+
_postman_secret_list() {
|
|
2569
2705
|
if [[ "$cur" == -* ]]; then
|
|
2570
|
-
COMPREPLY=( $(compgen -W "-w --workspace --api-key -h --help" -- "$cur") )
|
|
2706
|
+
COMPREPLY=( $(compgen -W "-w --workspace --api-key --json -h --help" -- "$cur") )
|
|
2571
2707
|
return 0
|
|
2572
2708
|
fi
|
|
2573
2709
|
case "$prev" in
|
|
@@ -2577,55 +2713,49 @@ _postman_webhook_forward() {
|
|
|
2577
2713
|
esac
|
|
2578
2714
|
}
|
|
2579
2715
|
|
|
2580
|
-
|
|
2716
|
+
_postman_simulation() {
|
|
2581
2717
|
if [[ -z "$subcmd" ]]; then
|
|
2582
2718
|
if [[ "$cur" == -* ]]; then
|
|
2583
2719
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2584
2720
|
else
|
|
2585
|
-
COMPREPLY=( $(compgen -W "list get
|
|
2721
|
+
COMPREPLY=( $(compgen -W "create list get run push deploy update log delete" -- "$cur") )
|
|
2586
2722
|
fi
|
|
2587
2723
|
return 0
|
|
2588
2724
|
fi
|
|
2589
2725
|
case "$subcmd" in
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2726
|
+
create) _postman_simulation_create ;;
|
|
2727
|
+
list) _postman_simulation_list ;;
|
|
2728
|
+
get) _postman_simulation_get ;;
|
|
2729
|
+
run) _postman_simulation_run ;;
|
|
2730
|
+
push) _postman_simulation_push ;;
|
|
2731
|
+
deploy) _postman_simulation_deploy ;;
|
|
2732
|
+
update) _postman_simulation_update ;;
|
|
2733
|
+
log) _postman_simulation_log ;;
|
|
2734
|
+
delete) _postman_simulation_delete ;;
|
|
2598
2735
|
esac
|
|
2599
2736
|
}
|
|
2600
2737
|
|
|
2601
|
-
|
|
2738
|
+
_postman_simulation_create() {
|
|
2602
2739
|
if [[ "$cur" == -* ]]; then
|
|
2603
|
-
COMPREPLY=( $(compgen -W "-w --workspace --api-key
|
|
2740
|
+
COMPREPLY=( $(compgen -W "-n --name --mock --routing -o --output --force -w --workspace --api-key -h --help" -- "$cur") )
|
|
2604
2741
|
return 0
|
|
2605
2742
|
fi
|
|
2606
2743
|
case "$prev" in
|
|
2607
|
-
--
|
|
2608
|
-
_postman_filematch '!*.@(
|
|
2744
|
+
--mock)
|
|
2745
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2746
|
+
return 0 ;;
|
|
2747
|
+
-o|--output)
|
|
2748
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2609
2749
|
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
2750
|
--api-key)
|
|
2621
2751
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2622
2752
|
return 0 ;;
|
|
2623
2753
|
esac
|
|
2624
2754
|
}
|
|
2625
2755
|
|
|
2626
|
-
|
|
2756
|
+
_postman_simulation_list() {
|
|
2627
2757
|
if [[ "$cur" == -* ]]; then
|
|
2628
|
-
COMPREPLY=( $(compgen -W "-
|
|
2758
|
+
COMPREPLY=( $(compgen -W "-w --workspace --api-key --json -h --help" -- "$cur") )
|
|
2629
2759
|
return 0
|
|
2630
2760
|
fi
|
|
2631
2761
|
case "$prev" in
|
|
@@ -2633,11 +2763,12 @@ _postman_dataset_query() {
|
|
|
2633
2763
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2634
2764
|
return 0 ;;
|
|
2635
2765
|
esac
|
|
2766
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2636
2767
|
}
|
|
2637
2768
|
|
|
2638
|
-
|
|
2769
|
+
_postman_simulation_get() {
|
|
2639
2770
|
if [[ "$cur" == -* ]]; then
|
|
2640
|
-
COMPREPLY=( $(compgen -W "
|
|
2771
|
+
COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
|
|
2641
2772
|
return 0
|
|
2642
2773
|
fi
|
|
2643
2774
|
case "$prev" in
|
|
@@ -2645,42 +2776,44 @@ _postman_dataset_create() {
|
|
|
2645
2776
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2646
2777
|
return 0 ;;
|
|
2647
2778
|
esac
|
|
2648
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
2649
2779
|
}
|
|
2650
2780
|
|
|
2651
|
-
|
|
2781
|
+
_postman_simulation_run() {
|
|
2652
2782
|
if [[ "$cur" == -* ]]; then
|
|
2653
|
-
COMPREPLY=( $(compgen -W "-
|
|
2783
|
+
COMPREPLY=( $(compgen -W "-e --environment -g --globals -p --port --dataset -w --workspace --simulation --api-key --no-history --output --proxy --proxy-port --scenario --session --log-format --log-body --doctor -h --help" -- "$cur") )
|
|
2654
2784
|
return 0
|
|
2655
2785
|
fi
|
|
2656
2786
|
case "$prev" in
|
|
2787
|
+
-e|--environment)
|
|
2788
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2789
|
+
return 0 ;;
|
|
2790
|
+
-g|--globals)
|
|
2791
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2792
|
+
return 0 ;;
|
|
2793
|
+
--dataset)
|
|
2794
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2795
|
+
return 0 ;;
|
|
2657
2796
|
--api-key)
|
|
2658
2797
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2659
2798
|
return 0 ;;
|
|
2660
2799
|
esac
|
|
2661
2800
|
}
|
|
2662
2801
|
|
|
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
|
|
2802
|
+
_postman_simulation_push() {
|
|
2803
|
+
if [[ "$cur" == -* ]]; then
|
|
2804
|
+
COMPREPLY=( $(compgen -W "-w --workspace --api-key -h --help" -- "$cur") )
|
|
2670
2805
|
return 0
|
|
2671
2806
|
fi
|
|
2672
|
-
case "$
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
update) _postman_dataset_source_update ;;
|
|
2677
|
-
test) _postman_dataset_source_test ;;
|
|
2807
|
+
case "$prev" in
|
|
2808
|
+
--api-key)
|
|
2809
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2810
|
+
return 0 ;;
|
|
2678
2811
|
esac
|
|
2679
2812
|
}
|
|
2680
2813
|
|
|
2681
|
-
|
|
2814
|
+
_postman_simulation_deploy() {
|
|
2682
2815
|
if [[ "$cur" == -* ]]; then
|
|
2683
|
-
COMPREPLY=( $(compgen -W "-
|
|
2816
|
+
COMPREPLY=( $(compgen -W "-w --workspace -n --name -s --slug --private -y --yes --api-key -h --help" -- "$cur") )
|
|
2684
2817
|
return 0
|
|
2685
2818
|
fi
|
|
2686
2819
|
case "$prev" in
|
|
@@ -2690,28 +2823,16 @@ _postman_dataset_source_list() {
|
|
|
2690
2823
|
esac
|
|
2691
2824
|
}
|
|
2692
2825
|
|
|
2693
|
-
|
|
2826
|
+
_postman_simulation_update() {
|
|
2694
2827
|
if [[ "$cur" == -* ]]; then
|
|
2695
|
-
COMPREPLY=( $(compgen -W "-
|
|
2828
|
+
COMPREPLY=( $(compgen -W "-n --name --routing --add-mock --route-key --api-key --json -h --help" -- "$cur") )
|
|
2696
2829
|
return 0
|
|
2697
2830
|
fi
|
|
2698
2831
|
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)
|
|
2832
|
+
--add-mock)
|
|
2706
2833
|
_postman_filematch '!*.@(json)' "$cur"
|
|
2707
2834
|
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)
|
|
2835
|
+
--route-key)
|
|
2715
2836
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2716
2837
|
return 0 ;;
|
|
2717
2838
|
--api-key)
|
|
@@ -2720,9 +2841,9 @@ _postman_dataset_source_add() {
|
|
|
2720
2841
|
esac
|
|
2721
2842
|
}
|
|
2722
2843
|
|
|
2723
|
-
|
|
2844
|
+
_postman_simulation_log() {
|
|
2724
2845
|
if [[ "$cur" == -* ]]; then
|
|
2725
|
-
COMPREPLY=( $(compgen -W "
|
|
2846
|
+
COMPREPLY=( $(compgen -W "--mock --limit --method --status --path --since --until --api-key --json -h --help" -- "$cur") )
|
|
2726
2847
|
return 0
|
|
2727
2848
|
fi
|
|
2728
2849
|
case "$prev" in
|
|
@@ -2730,74 +2851,76 @@ _postman_dataset_source_remove() {
|
|
|
2730
2851
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2731
2852
|
return 0 ;;
|
|
2732
2853
|
esac
|
|
2854
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
2733
2855
|
}
|
|
2734
2856
|
|
|
2735
|
-
|
|
2857
|
+
_postman_simulation_delete() {
|
|
2736
2858
|
if [[ "$cur" == -* ]]; then
|
|
2737
|
-
COMPREPLY=( $(compgen -W "-
|
|
2859
|
+
COMPREPLY=( $(compgen -W "-y --yes --api-key -h --help" -- "$cur") )
|
|
2738
2860
|
return 0
|
|
2739
2861
|
fi
|
|
2740
2862
|
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
2863
|
--api-key)
|
|
2760
2864
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2761
2865
|
return 0 ;;
|
|
2762
2866
|
esac
|
|
2763
2867
|
}
|
|
2764
2868
|
|
|
2765
|
-
|
|
2869
|
+
_postman_team() {
|
|
2870
|
+
if [[ -z "$subcmd" ]]; then
|
|
2871
|
+
if [[ "$cur" == -* ]]; then
|
|
2872
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2873
|
+
else
|
|
2874
|
+
COMPREPLY=( $(compgen -W "list" -- "$cur") )
|
|
2875
|
+
fi
|
|
2876
|
+
return 0
|
|
2877
|
+
fi
|
|
2878
|
+
case "$subcmd" in
|
|
2879
|
+
list) _postman_team_list ;;
|
|
2880
|
+
esac
|
|
2881
|
+
}
|
|
2882
|
+
|
|
2883
|
+
_postman_team_list() {
|
|
2766
2884
|
if [[ "$cur" == -* ]]; then
|
|
2767
|
-
COMPREPLY=( $(compgen -W "
|
|
2885
|
+
COMPREPLY=( $(compgen -W "--can-create-workspace --json --timeout -h --help" -- "$cur") )
|
|
2768
2886
|
return 0
|
|
2769
2887
|
fi
|
|
2770
2888
|
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
2889
|
esac
|
|
2778
2890
|
}
|
|
2779
2891
|
|
|
2780
|
-
|
|
2892
|
+
_postman_update() {
|
|
2893
|
+
if [[ "$cur" == -* ]]; then
|
|
2894
|
+
COMPREPLY=( $(compgen -W "--check -h --help" -- "$cur") )
|
|
2895
|
+
return 0
|
|
2896
|
+
fi
|
|
2897
|
+
}
|
|
2898
|
+
|
|
2899
|
+
_postman_webhook() {
|
|
2781
2900
|
if [[ -z "$subcmd" ]]; then
|
|
2782
2901
|
if [[ "$cur" == -* ]]; then
|
|
2783
2902
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2784
2903
|
else
|
|
2785
|
-
COMPREPLY=( $(compgen -W "
|
|
2904
|
+
COMPREPLY=( $(compgen -W "create start pause list delete status requests scripts forward" -- "$cur") )
|
|
2786
2905
|
fi
|
|
2787
2906
|
return 0
|
|
2788
2907
|
fi
|
|
2789
2908
|
case "$subcmd" in
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2909
|
+
create) _postman_webhook_create ;;
|
|
2910
|
+
start) _postman_webhook_start ;;
|
|
2911
|
+
pause) _postman_webhook_pause ;;
|
|
2912
|
+
list) _postman_webhook_list ;;
|
|
2913
|
+
delete) _postman_webhook_delete ;;
|
|
2914
|
+
status) _postman_webhook_status ;;
|
|
2915
|
+
requests) _postman_webhook_requests ;;
|
|
2916
|
+
scripts) _postman_webhook_scripts ;;
|
|
2917
|
+
forward) _postman_webhook_forward ;;
|
|
2795
2918
|
esac
|
|
2796
2919
|
}
|
|
2797
2920
|
|
|
2798
|
-
|
|
2921
|
+
_postman_webhook_create() {
|
|
2799
2922
|
if [[ "$cur" == -* ]]; then
|
|
2800
|
-
COMPREPLY=( $(compgen -W "-
|
|
2923
|
+
COMPREPLY=( $(compgen -W "-t --title -w --workspace --api-key -h --help" -- "$cur") )
|
|
2801
2924
|
return 0
|
|
2802
2925
|
fi
|
|
2803
2926
|
case "$prev" in
|
|
@@ -2807,9 +2930,9 @@ _postman_dataset_view_list() {
|
|
|
2807
2930
|
esac
|
|
2808
2931
|
}
|
|
2809
2932
|
|
|
2810
|
-
|
|
2933
|
+
_postman_webhook_start() {
|
|
2811
2934
|
if [[ "$cur" == -* ]]; then
|
|
2812
|
-
COMPREPLY=( $(compgen -W "-
|
|
2935
|
+
COMPREPLY=( $(compgen -W "-w --workspace --api-key -h --help" -- "$cur") )
|
|
2813
2936
|
return 0
|
|
2814
2937
|
fi
|
|
2815
2938
|
case "$prev" in
|
|
@@ -2819,9 +2942,9 @@ _postman_dataset_view_run() {
|
|
|
2819
2942
|
esac
|
|
2820
2943
|
}
|
|
2821
2944
|
|
|
2822
|
-
|
|
2945
|
+
_postman_webhook_pause() {
|
|
2823
2946
|
if [[ "$cur" == -* ]]; then
|
|
2824
|
-
COMPREPLY=( $(compgen -W "-
|
|
2947
|
+
COMPREPLY=( $(compgen -W "-w --workspace --api-key -h --help" -- "$cur") )
|
|
2825
2948
|
return 0
|
|
2826
2949
|
fi
|
|
2827
2950
|
case "$prev" in
|
|
@@ -2831,9 +2954,9 @@ _postman_dataset_view_create() {
|
|
|
2831
2954
|
esac
|
|
2832
2955
|
}
|
|
2833
2956
|
|
|
2834
|
-
|
|
2957
|
+
_postman_webhook_list() {
|
|
2835
2958
|
if [[ "$cur" == -* ]]; then
|
|
2836
|
-
COMPREPLY=( $(compgen -W "-
|
|
2959
|
+
COMPREPLY=( $(compgen -W "-w --workspace --api-key -h --help" -- "$cur") )
|
|
2837
2960
|
return 0
|
|
2838
2961
|
fi
|
|
2839
2962
|
case "$prev" in
|
|
@@ -2843,9 +2966,9 @@ _postman_dataset_view_delete() {
|
|
|
2843
2966
|
esac
|
|
2844
2967
|
}
|
|
2845
2968
|
|
|
2846
|
-
|
|
2969
|
+
_postman_webhook_delete() {
|
|
2847
2970
|
if [[ "$cur" == -* ]]; then
|
|
2848
|
-
COMPREPLY=( $(compgen -W "-
|
|
2971
|
+
COMPREPLY=( $(compgen -W "-w --workspace --api-key -h --help" -- "$cur") )
|
|
2849
2972
|
return 0
|
|
2850
2973
|
fi
|
|
2851
2974
|
case "$prev" in
|
|
@@ -2855,123 +2978,87 @@ _postman_dataset_view_update() {
|
|
|
2855
2978
|
esac
|
|
2856
2979
|
}
|
|
2857
2980
|
|
|
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() {
|
|
2981
|
+
_postman_webhook_status() {
|
|
2873
2982
|
if [[ "$cur" == -* ]]; then
|
|
2874
|
-
COMPREPLY=( $(compgen -W "
|
|
2983
|
+
COMPREPLY=( $(compgen -W "-w --workspace --api-key -h --help" -- "$cur") )
|
|
2875
2984
|
return 0
|
|
2876
2985
|
fi
|
|
2877
2986
|
case "$prev" in
|
|
2878
|
-
--
|
|
2879
|
-
_postman_filematch '!*.@(
|
|
2987
|
+
--api-key)
|
|
2988
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2880
2989
|
return 0 ;;
|
|
2881
2990
|
esac
|
|
2882
2991
|
}
|
|
2883
2992
|
|
|
2884
|
-
|
|
2993
|
+
_postman_webhook_requests() {
|
|
2885
2994
|
if [[ -z "$subcmd" ]]; then
|
|
2886
2995
|
if [[ "$cur" == -* ]]; then
|
|
2887
2996
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2888
2997
|
else
|
|
2889
|
-
COMPREPLY=( $(compgen -W "
|
|
2998
|
+
COMPREPLY=( $(compgen -W "list describe replay" -- "$cur") )
|
|
2890
2999
|
fi
|
|
2891
3000
|
return 0
|
|
2892
3001
|
fi
|
|
2893
3002
|
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
|
|
3003
|
+
list) _postman_webhook_requests_list ;;
|
|
3004
|
+
describe) _postman_webhook_requests_describe ;;
|
|
3005
|
+
replay) _postman_webhook_requests_replay ;;
|
|
2927
3006
|
esac
|
|
2928
3007
|
}
|
|
2929
3008
|
|
|
2930
|
-
|
|
3009
|
+
_postman_webhook_requests_list() {
|
|
2931
3010
|
if [[ "$cur" == -* ]]; then
|
|
2932
|
-
COMPREPLY=( $(compgen -W "--
|
|
3011
|
+
COMPREPLY=( $(compgen -W "-w --workspace --cursor --api-key -h --help" -- "$cur") )
|
|
2933
3012
|
return 0
|
|
2934
3013
|
fi
|
|
2935
3014
|
case "$prev" in
|
|
3015
|
+
--api-key)
|
|
3016
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
3017
|
+
return 0 ;;
|
|
2936
3018
|
esac
|
|
2937
3019
|
}
|
|
2938
3020
|
|
|
2939
|
-
|
|
3021
|
+
_postman_webhook_requests_describe() {
|
|
2940
3022
|
if [[ "$cur" == -* ]]; then
|
|
2941
|
-
COMPREPLY=( $(compgen -W "--
|
|
3023
|
+
COMPREPLY=( $(compgen -W "-w --workspace --api-key --verbose -h --help" -- "$cur") )
|
|
2942
3024
|
return 0
|
|
2943
3025
|
fi
|
|
2944
3026
|
case "$prev" in
|
|
3027
|
+
--api-key)
|
|
3028
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
3029
|
+
return 0 ;;
|
|
2945
3030
|
esac
|
|
2946
3031
|
}
|
|
2947
3032
|
|
|
2948
|
-
|
|
3033
|
+
_postman_webhook_requests_replay() {
|
|
2949
3034
|
if [[ "$cur" == -* ]]; then
|
|
2950
|
-
COMPREPLY=( $(compgen -W "
|
|
3035
|
+
COMPREPLY=( $(compgen -W "-w --workspace --api-key -h --help" -- "$cur") )
|
|
2951
3036
|
return 0
|
|
2952
3037
|
fi
|
|
2953
3038
|
case "$prev" in
|
|
3039
|
+
--api-key)
|
|
3040
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
3041
|
+
return 0 ;;
|
|
2954
3042
|
esac
|
|
2955
3043
|
}
|
|
2956
3044
|
|
|
2957
|
-
|
|
3045
|
+
_postman_webhook_scripts() {
|
|
2958
3046
|
if [[ -z "$subcmd" ]]; then
|
|
2959
3047
|
if [[ "$cur" == -* ]]; then
|
|
2960
3048
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2961
3049
|
else
|
|
2962
|
-
COMPREPLY=( $(compgen -W "
|
|
3050
|
+
COMPREPLY=( $(compgen -W "set" -- "$cur") )
|
|
2963
3051
|
fi
|
|
2964
3052
|
return 0
|
|
2965
3053
|
fi
|
|
2966
3054
|
case "$subcmd" in
|
|
2967
|
-
|
|
2968
|
-
list) _postman_secret_list ;;
|
|
3055
|
+
set) _postman_webhook_scripts_set ;;
|
|
2969
3056
|
esac
|
|
2970
3057
|
}
|
|
2971
3058
|
|
|
2972
|
-
|
|
3059
|
+
_postman_webhook_scripts_set() {
|
|
2973
3060
|
if [[ "$cur" == -* ]]; then
|
|
2974
|
-
COMPREPLY=( $(compgen -W "--
|
|
3061
|
+
COMPREPLY=( $(compgen -W "--event -w --workspace --api-key -h --help" -- "$cur") )
|
|
2975
3062
|
return 0
|
|
2976
3063
|
fi
|
|
2977
3064
|
case "$prev" in
|
|
@@ -2979,12 +3066,11 @@ _postman_secret_create() {
|
|
|
2979
3066
|
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
2980
3067
|
return 0 ;;
|
|
2981
3068
|
esac
|
|
2982
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
2983
3069
|
}
|
|
2984
3070
|
|
|
2985
|
-
|
|
3071
|
+
_postman_webhook_forward() {
|
|
2986
3072
|
if [[ "$cur" == -* ]]; then
|
|
2987
|
-
COMPREPLY=( $(compgen -W "-w --workspace --api-key
|
|
3073
|
+
COMPREPLY=( $(compgen -W "-w --workspace --api-key -h --help" -- "$cur") )
|
|
2988
3074
|
return 0
|
|
2989
3075
|
fi
|
|
2990
3076
|
case "$prev" in
|