postman-cli-completion 1.58.0 → 1.59.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 +121 -10
- package/completions/fish/postman.fish +106 -37
- package/completions/zsh/_postman +136 -4
- 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.59.0)
|
|
2
2
|
# Auto-generated by scripts/generate.mjs — DO NOT EDIT
|
|
3
3
|
# Source: spec/commands.json
|
|
4
4
|
# https://github.com/yokawasa/postman-cli-completion
|
|
@@ -22,7 +22,7 @@ _postman() {
|
|
|
22
22
|
cur="${COMP_WORDS[COMP_CWORD]}"
|
|
23
23
|
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
|
24
24
|
|
|
25
|
-
local top_commands="login signup logout init whoami skills collection environment globals api runner spec monitor workspace ws performance flows fl request sdk mock application app simulate context context-graph search webhook dataset dependency"
|
|
25
|
+
local top_commands="login signup logout init whoami update skills collection environment globals api runner spec monitor workspace ws performance flows fl request sdk mock application app simulate context context-graph search webhook dataset dependency"
|
|
26
26
|
local global_flags="-v --version --silent --color -h --help -h --help"
|
|
27
27
|
|
|
28
28
|
local i cmd="" subcmd=""
|
|
@@ -51,6 +51,7 @@ _postman() {
|
|
|
51
51
|
logout) _postman_logout ;;
|
|
52
52
|
init) _postman_init ;;
|
|
53
53
|
whoami) _postman_whoami ;;
|
|
54
|
+
update) _postman_update ;;
|
|
54
55
|
skills) _postman_skills ;;
|
|
55
56
|
collection) _postman_collection ;;
|
|
56
57
|
environment) _postman_environment ;;
|
|
@@ -90,7 +91,7 @@ _postman_login() {
|
|
|
90
91
|
|
|
91
92
|
_postman_signup() {
|
|
92
93
|
if [[ "$cur" == -* ]]; then
|
|
93
|
-
COMPREPLY=( $(compgen -W "--browser --json -h --help" -- "$cur") )
|
|
94
|
+
COMPREPLY=( $(compgen -W "--browser --wait --no-wait --json -h --help" -- "$cur") )
|
|
94
95
|
return 0
|
|
95
96
|
fi
|
|
96
97
|
}
|
|
@@ -124,6 +125,13 @@ _postman_whoami() {
|
|
|
124
125
|
fi
|
|
125
126
|
}
|
|
126
127
|
|
|
128
|
+
_postman_update() {
|
|
129
|
+
if [[ "$cur" == -* ]]; then
|
|
130
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
131
|
+
return 0
|
|
132
|
+
fi
|
|
133
|
+
}
|
|
134
|
+
|
|
127
135
|
_postman_skills() {
|
|
128
136
|
if [[ -z "$subcmd" ]]; then
|
|
129
137
|
if [[ "$cur" == -* ]]; then
|
|
@@ -160,18 +168,30 @@ _postman_collection() {
|
|
|
160
168
|
if [[ "$cur" == -* ]]; then
|
|
161
169
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
162
170
|
else
|
|
163
|
-
COMPREPLY=( $(compgen -W "migrate lint ai-readiness run" -- "$cur") )
|
|
171
|
+
COMPREPLY=( $(compgen -W "new migrate lint ai-readiness get list run" -- "$cur") )
|
|
164
172
|
fi
|
|
165
173
|
return 0
|
|
166
174
|
fi
|
|
167
175
|
case "$subcmd" in
|
|
176
|
+
new) _postman_collection_new ;;
|
|
168
177
|
migrate) _postman_collection_migrate ;;
|
|
169
178
|
lint) _postman_collection_lint ;;
|
|
170
179
|
ai-readiness) _postman_collection_ai_readiness ;;
|
|
180
|
+
get) _postman_collection_get ;;
|
|
181
|
+
list) _postman_collection_list ;;
|
|
171
182
|
run) _postman_collection_run ;;
|
|
172
183
|
esac
|
|
173
184
|
}
|
|
174
185
|
|
|
186
|
+
_postman_collection_new() {
|
|
187
|
+
if [[ "$cur" == -* ]]; then
|
|
188
|
+
COMPREPLY=( $(compgen -W "-w --workspace --force --verbose --json -h --help" -- "$cur") )
|
|
189
|
+
return 0
|
|
190
|
+
fi
|
|
191
|
+
case "$prev" in
|
|
192
|
+
esac
|
|
193
|
+
}
|
|
194
|
+
|
|
175
195
|
_postman_collection_migrate() {
|
|
176
196
|
if [[ "$cur" == -* ]]; then
|
|
177
197
|
COMPREPLY=( $(compgen -W "-o --output -h --help" -- "$cur") )
|
|
@@ -205,6 +225,27 @@ _postman_collection_ai_readiness() {
|
|
|
205
225
|
_postman_filematch '!*.@(json)' "$cur"
|
|
206
226
|
}
|
|
207
227
|
|
|
228
|
+
_postman_collection_get() {
|
|
229
|
+
if [[ "$cur" == -* ]]; then
|
|
230
|
+
COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
|
|
231
|
+
return 0
|
|
232
|
+
fi
|
|
233
|
+
case "$prev" in
|
|
234
|
+
--api-key)
|
|
235
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
236
|
+
return 0 ;;
|
|
237
|
+
esac
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
_postman_collection_list() {
|
|
241
|
+
if [[ "$cur" == -* ]]; then
|
|
242
|
+
COMPREPLY=( $(compgen -W "-w --workspace -f --filter --verbose --debug --json -h --help" -- "$cur") )
|
|
243
|
+
return 0
|
|
244
|
+
fi
|
|
245
|
+
case "$prev" in
|
|
246
|
+
esac
|
|
247
|
+
}
|
|
248
|
+
|
|
208
249
|
_postman_collection_run() {
|
|
209
250
|
if [[ "$cur" == -* ]]; then
|
|
210
251
|
COMPREPLY=( $(compgen -W "-e --environment -g --globals -r --reporters --output --reporter-json-structure -n --iteration-count -d --iteration-data --iteration-data-dataset --iteration-data-view --dataset -i --global-var --env-var --integration-id --postman-api-key --alias --bail --ignore-redirects -x --suppress-exit-code --silent --disable-unicode --delay-request --timeout --timeout-request --timeout-script --working-dir --no-insecure-file-read -k --insecure --ssl-client-cert-list --ssl-client-cert --ssl-client-key --ssl-client-passphrase --ssl-extra-ca-certs --cookie-jar --export-cookie-jar --verbose --mock --port --use-mock --simulate --report-events --no-report-events -h --help --reporter-json-export --reporter-junit-export --reporter-html-export --reporter-json-omitRequestBodies --reporter-html-omitRequestBodies --reporter-json-omitResponseBodies --reporter-html-omitResponseBodies --reporter-json-omitHeaders --reporter-html-omitHeaders --reporter-json-omitAllHeadersAndBody --reporter-html-omitAllHeadersAndBody" -- "$cur") )
|
|
@@ -277,11 +318,12 @@ _postman_environment() {
|
|
|
277
318
|
if [[ "$cur" == -* ]]; then
|
|
278
319
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
279
320
|
else
|
|
280
|
-
COMPREPLY=( $(compgen -W "list get var lint" -- "$cur") )
|
|
321
|
+
COMPREPLY=( $(compgen -W "new list get var lint" -- "$cur") )
|
|
281
322
|
fi
|
|
282
323
|
return 0
|
|
283
324
|
fi
|
|
284
325
|
case "$subcmd" in
|
|
326
|
+
new) _postman_environment_new ;;
|
|
285
327
|
list) _postman_environment_list ;;
|
|
286
328
|
get) _postman_environment_get ;;
|
|
287
329
|
var) _postman_environment_var ;;
|
|
@@ -289,6 +331,15 @@ _postman_environment() {
|
|
|
289
331
|
esac
|
|
290
332
|
}
|
|
291
333
|
|
|
334
|
+
_postman_environment_new() {
|
|
335
|
+
if [[ "$cur" == -* ]]; then
|
|
336
|
+
COMPREPLY=( $(compgen -W "-w --workspace --force --verbose --json -h --help" -- "$cur") )
|
|
337
|
+
return 0
|
|
338
|
+
fi
|
|
339
|
+
case "$prev" in
|
|
340
|
+
esac
|
|
341
|
+
}
|
|
342
|
+
|
|
292
343
|
_postman_environment_list() {
|
|
293
344
|
if [[ "$cur" == -* ]]; then
|
|
294
345
|
COMPREPLY=( $(compgen -W "-w --workspace -f --filter --verbose --json -h --help" -- "$cur") )
|
|
@@ -463,7 +514,7 @@ _postman_runner_start() {
|
|
|
463
514
|
|
|
464
515
|
_postman_runner_list() {
|
|
465
516
|
if [[ "$cur" == -* ]]; then
|
|
466
|
-
COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
|
|
517
|
+
COMPREPLY=( $(compgen -W "--api-key -w --workspace --json -h --help" -- "$cur") )
|
|
467
518
|
return 0
|
|
468
519
|
fi
|
|
469
520
|
case "$prev" in
|
|
@@ -490,7 +541,7 @@ _postman_spec() {
|
|
|
490
541
|
if [[ "$cur" == -* ]]; then
|
|
491
542
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
492
543
|
else
|
|
493
|
-
COMPREPLY=( $(compgen -W "lint ai-readiness list get file create" -- "$cur") )
|
|
544
|
+
COMPREPLY=( $(compgen -W "lint ai-readiness list get file create generate" -- "$cur") )
|
|
494
545
|
fi
|
|
495
546
|
return 0
|
|
496
547
|
fi
|
|
@@ -501,6 +552,7 @@ _postman_spec() {
|
|
|
501
552
|
get) _postman_spec_get ;;
|
|
502
553
|
file) _postman_spec_file ;;
|
|
503
554
|
create) _postman_spec_create ;;
|
|
555
|
+
generate) _postman_spec_generate ;;
|
|
504
556
|
esac
|
|
505
557
|
}
|
|
506
558
|
|
|
@@ -615,12 +667,38 @@ _postman_spec_create() {
|
|
|
615
667
|
_postman_filematch '!*.@(json)' "$cur"
|
|
616
668
|
}
|
|
617
669
|
|
|
670
|
+
_postman_spec_generate() {
|
|
671
|
+
if [[ -z "$subcmd" ]]; then
|
|
672
|
+
if [[ "$cur" == -* ]]; then
|
|
673
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
674
|
+
else
|
|
675
|
+
COMPREPLY=( $(compgen -W "collection" -- "$cur") )
|
|
676
|
+
fi
|
|
677
|
+
return 0
|
|
678
|
+
fi
|
|
679
|
+
case "$subcmd" in
|
|
680
|
+
collection) _postman_spec_generate_collection ;;
|
|
681
|
+
esac
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
_postman_spec_generate_collection() {
|
|
685
|
+
if [[ "$cur" == -* ]]; then
|
|
686
|
+
COMPREPLY=( $(compgen -W "-n --name --folder-strategy -w --workspace --api-key -h --help" -- "$cur") )
|
|
687
|
+
return 0
|
|
688
|
+
fi
|
|
689
|
+
case "$prev" in
|
|
690
|
+
--api-key)
|
|
691
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
692
|
+
return 0 ;;
|
|
693
|
+
esac
|
|
694
|
+
}
|
|
695
|
+
|
|
618
696
|
_postman_monitor() {
|
|
619
697
|
if [[ -z "$subcmd" ]]; then
|
|
620
698
|
if [[ "$cur" == -* ]]; then
|
|
621
699
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
622
700
|
else
|
|
623
|
-
COMPREPLY=( $(compgen -W "run create update delete jobs runs list get pause resume" -- "$cur") )
|
|
701
|
+
COMPREPLY=( $(compgen -W "run create update delete jobs runs list get metrics pause resume" -- "$cur") )
|
|
624
702
|
fi
|
|
625
703
|
return 0
|
|
626
704
|
fi
|
|
@@ -633,6 +711,7 @@ _postman_monitor() {
|
|
|
633
711
|
runs) _postman_monitor_runs ;;
|
|
634
712
|
list) _postman_monitor_list ;;
|
|
635
713
|
get) _postman_monitor_get ;;
|
|
714
|
+
metrics) _postman_monitor_metrics ;;
|
|
636
715
|
pause) _postman_monitor_pause ;;
|
|
637
716
|
resume) _postman_monitor_resume ;;
|
|
638
717
|
esac
|
|
@@ -775,6 +854,18 @@ _postman_monitor_get() {
|
|
|
775
854
|
esac
|
|
776
855
|
}
|
|
777
856
|
|
|
857
|
+
_postman_monitor_metrics() {
|
|
858
|
+
if [[ "$cur" == -* ]]; then
|
|
859
|
+
COMPREPLY=( $(compgen -W "--api-key --since --until -f --filter --limit --json -h --help" -- "$cur") )
|
|
860
|
+
return 0
|
|
861
|
+
fi
|
|
862
|
+
case "$prev" in
|
|
863
|
+
--api-key)
|
|
864
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
865
|
+
return 0 ;;
|
|
866
|
+
esac
|
|
867
|
+
}
|
|
868
|
+
|
|
778
869
|
_postman_monitor_pause() {
|
|
779
870
|
if [[ "$cur" == -* ]]; then
|
|
780
871
|
COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
|
|
@@ -804,7 +895,7 @@ _postman_workspace() {
|
|
|
804
895
|
if [[ "$cur" == -* ]]; then
|
|
805
896
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
806
897
|
else
|
|
807
|
-
COMPREPLY=( $(compgen -W "list prepare push lint create pull connect-git" -- "$cur") )
|
|
898
|
+
COMPREPLY=( $(compgen -W "list prepare push lint create pull connect-git diff" -- "$cur") )
|
|
808
899
|
fi
|
|
809
900
|
return 0
|
|
810
901
|
fi
|
|
@@ -816,6 +907,7 @@ _postman_workspace() {
|
|
|
816
907
|
create) _postman_workspace_create ;;
|
|
817
908
|
pull) _postman_workspace_pull ;;
|
|
818
909
|
connect-git) _postman_workspace_connect_git ;;
|
|
910
|
+
diff) _postman_workspace_diff ;;
|
|
819
911
|
esac
|
|
820
912
|
}
|
|
821
913
|
|
|
@@ -882,17 +974,27 @@ _postman_workspace_connect_git() {
|
|
|
882
974
|
_postman_filematch '!*.@(json)' "$cur"
|
|
883
975
|
}
|
|
884
976
|
|
|
977
|
+
_postman_workspace_diff() {
|
|
978
|
+
if [[ "$cur" == -* ]]; then
|
|
979
|
+
COMPREPLY=( $(compgen -W "--push-strategy --summary --json --exit-code --verbose --timeout -h --help" -- "$cur") )
|
|
980
|
+
return 0
|
|
981
|
+
fi
|
|
982
|
+
case "$prev" in
|
|
983
|
+
esac
|
|
984
|
+
}
|
|
985
|
+
|
|
885
986
|
_postman_performance() {
|
|
886
987
|
if [[ -z "$subcmd" ]]; then
|
|
887
988
|
if [[ "$cur" == -* ]]; then
|
|
888
989
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
889
990
|
else
|
|
890
|
-
COMPREPLY=( $(compgen -W "run" -- "$cur") )
|
|
991
|
+
COMPREPLY=( $(compgen -W "run runs" -- "$cur") )
|
|
891
992
|
fi
|
|
892
993
|
return 0
|
|
893
994
|
fi
|
|
894
995
|
case "$subcmd" in
|
|
895
996
|
run) _postman_performance_run ;;
|
|
997
|
+
runs) _postman_performance_runs ;;
|
|
896
998
|
esac
|
|
897
999
|
}
|
|
898
1000
|
|
|
@@ -909,6 +1011,15 @@ _postman_performance_run() {
|
|
|
909
1011
|
_postman_filematch '!*.@(json)' "$cur"
|
|
910
1012
|
}
|
|
911
1013
|
|
|
1014
|
+
_postman_performance_runs() {
|
|
1015
|
+
if [[ "$cur" == -* ]]; then
|
|
1016
|
+
COMPREPLY=( $(compgen -W "-c --collection-id --cursor --json --timeout -h --help" -- "$cur") )
|
|
1017
|
+
return 0
|
|
1018
|
+
fi
|
|
1019
|
+
case "$prev" in
|
|
1020
|
+
esac
|
|
1021
|
+
}
|
|
1022
|
+
|
|
912
1023
|
_postman_flows() {
|
|
913
1024
|
if [[ -z "$subcmd" ]]; then
|
|
914
1025
|
if [[ "$cur" == -* ]]; then
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
# Fish completion for Postman CLI (postman v1.
|
|
1
|
+
# Fish completion for Postman CLI (postman v1.59.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
|
|
5
5
|
|
|
6
6
|
function __postman_no_subcommand
|
|
7
|
-
not __fish_seen_subcommand_from login signup logout init whoami skills collection environment globals api runner spec monitor workspace ws performance flows fl request sdk mock application app simulate context context-graph search webhook dataset dependency
|
|
7
|
+
not __fish_seen_subcommand_from login signup logout init whoami update skills collection environment globals api runner spec monitor workspace ws performance flows fl request sdk mock application app simulate context context-graph search webhook dataset dependency
|
|
8
8
|
end
|
|
9
9
|
|
|
10
10
|
function __postman_using_subcommand
|
|
@@ -22,10 +22,11 @@ complete -c postman -n __postman_no_subcommand -s h -l help -d 'display help for
|
|
|
22
22
|
|
|
23
23
|
# ---------- Top-level commands ----------
|
|
24
24
|
complete -c postman -n __postman_no_subcommand -a login -d 'Authenticate with Postman to access your resources.'
|
|
25
|
-
complete -c postman -n __postman_no_subcommand -a signup -d 'Sign up to keep the work you created as a guest (claims your guest workspace).
|
|
25
|
+
complete -c postman -n __postman_no_subcommand -a signup -d 'Sign up to keep the work you created as a guest (claims your guest workspace). Waits and signs this CLI in once the sign-up is completed in a browser — opening that browser here on a terminal, or printing the URL to hand over when output is piped.'
|
|
26
26
|
complete -c postman -n __postman_no_subcommand -a logout -d 'Delete the stored Postman API key.'
|
|
27
27
|
complete -c postman -n __postman_no_subcommand -a init -d 'Set up Postman artifacts and agent instructions in a repository.'
|
|
28
28
|
complete -c postman -n __postman_no_subcommand -a whoami -d 'Show the Postman account or guest session this CLI session is using.'
|
|
29
|
+
complete -c postman -n __postman_no_subcommand -a update -d 'Update Postman CLI using the original installation method.'
|
|
29
30
|
complete -c postman -n __postman_no_subcommand -a skills -d 'Check and update the agent skills in this repository.'
|
|
30
31
|
complete -c postman -n __postman_no_subcommand -a collection -d 'Run and test your Postman collections directly from the command line.'
|
|
31
32
|
complete -c postman -n __postman_no_subcommand -a environment -d 'Work with local Postman environments from the command line. Also read cloud environments by ID.'
|
|
@@ -60,7 +61,9 @@ complete -c postman -n '__fish_seen_subcommand_from login' -l verbose -d 'Show d
|
|
|
60
61
|
complete -c postman -n '__fish_seen_subcommand_from login' -s h -l help -d 'display help for command'
|
|
61
62
|
|
|
62
63
|
# ---------- signup ----------
|
|
63
|
-
complete -c postman -n '__fish_seen_subcommand_from signup' -l browser -d '
|
|
64
|
+
complete -c postman -n '__fish_seen_subcommand_from signup' -l browser -d 'Always open the sign-up URL in a browser here, rather than printing it.'
|
|
65
|
+
complete -c postman -n '__fish_seen_subcommand_from signup' -l wait -d 'Wait for the sign-up to complete even if no local browser is detected.'
|
|
66
|
+
complete -c postman -n '__fish_seen_subcommand_from signup' -l no-wait -d 'Print the sign-up URL and exit without waiting. Leaves this CLI a guest.'
|
|
64
67
|
complete -c postman -n '__fish_seen_subcommand_from signup' -l json -d 'Print the sign-up details as machine-readable JSON.'
|
|
65
68
|
complete -c postman -n '__fish_seen_subcommand_from signup' -s h -l help -d 'display help for command'
|
|
66
69
|
|
|
@@ -83,6 +86,9 @@ complete -c postman -n '__fish_seen_subcommand_from init' -r -k -a '(__fish_comp
|
|
|
83
86
|
complete -c postman -n '__fish_seen_subcommand_from whoami' -l json -d 'Print current identity as machine-readable JSON.'
|
|
84
87
|
complete -c postman -n '__fish_seen_subcommand_from whoami' -s h -l help -d 'display help for command'
|
|
85
88
|
|
|
89
|
+
# ---------- update ----------
|
|
90
|
+
complete -c postman -n '__fish_seen_subcommand_from update' -s h -l help -d 'display help for command'
|
|
91
|
+
|
|
86
92
|
# ---------- skills ----------
|
|
87
93
|
complete -c postman -n '__postman_using_subcommand skills status update' -a status -d 'Report whether this repository\'s skills are up to date.'
|
|
88
94
|
complete -c postman -n '__postman_using_subcommand skills status update' -a update -d 'Fetch the latest skills into this repository.'
|
|
@@ -100,11 +106,20 @@ complete -c postman -n '__fish_seen_subcommand_from skills; and __fish_seen_subc
|
|
|
100
106
|
complete -c postman -n '__fish_seen_subcommand_from skills; and __fish_seen_subcommand_from update' -r -k -a '(__fish_complete_suffix .json)'
|
|
101
107
|
|
|
102
108
|
# ---------- collection ----------
|
|
103
|
-
complete -c postman -n '__postman_using_subcommand collection migrate lint ai-readiness run' -a
|
|
104
|
-
complete -c postman -n '__postman_using_subcommand collection migrate lint ai-readiness run' -a
|
|
105
|
-
complete -c postman -n '__postman_using_subcommand collection migrate lint ai-readiness run' -a
|
|
106
|
-
complete -c postman -n '__postman_using_subcommand collection migrate lint ai-readiness run' -a
|
|
109
|
+
complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get list run' -a new -d 'Scaffold a v3 collection on disk, or create one in a cloud Postman workspace with --workspace.'
|
|
110
|
+
complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get list run' -a migrate -d 'Migrate a v2.1 collection to the v3 format'
|
|
111
|
+
complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get list run' -a lint -d 'Run linting on a local v3 collection at the given file or directory path.'
|
|
112
|
+
complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get list run' -a ai-readiness -d 'Score a Postman collection for AI readiness by ID, local file path, or local-mode directory.'
|
|
113
|
+
complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get list run' -a get -d 'Fetch a Postman collection in the V3 format and print it.'
|
|
114
|
+
complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get list run' -a list -d 'List collections: your local project\'s collections by default, or a Postman cloud workspace\'s collections with --workspace.'
|
|
115
|
+
complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get list run' -a run -d 'Initiate a Postman collection run from a given ID or path.'
|
|
107
116
|
complete -c postman -n '__fish_seen_subcommand_from collection' -s h -l help -d 'display help for command'
|
|
117
|
+
# ---------- collection new ----------
|
|
118
|
+
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from new' -s w -l workspace -d 'Create the collection in a cloud Postman workspace instead of scaffolding it locally. Required when the current directory is not a local Postman workspace.' -x
|
|
119
|
+
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from new' -l force -d 'Rewrite the definition of an existing local collection. Existing request files are left alone.'
|
|
120
|
+
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from new' -l verbose -d 'Verbose output'
|
|
121
|
+
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from new' -l json -d 'JSON output'
|
|
122
|
+
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from new' -s h -l help -d 'display help for command'
|
|
108
123
|
# ---------- collection migrate ----------
|
|
109
124
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from migrate' -s o -l output -d 'Output directory (default: ./<collection-name>)' -r
|
|
110
125
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from migrate' -s h -l help -d 'display help for command'
|
|
@@ -119,6 +134,17 @@ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_
|
|
|
119
134
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from ai-readiness' -l min-score -d 'Exit with a non-zero code if the overall score is below this threshold (0-100).' -x
|
|
120
135
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from ai-readiness' -s h -l help -d 'display help for command'
|
|
121
136
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from ai-readiness' -r -k -a '(__fish_complete_suffix .json)'
|
|
137
|
+
# ---------- collection get ----------
|
|
138
|
+
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from get' -l api-key -d 'Postman API key (defaults to your `postman login` session)' -r
|
|
139
|
+
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from get' -l json -d 'Print the collection as machine-readable V3 JSON instead of a table'
|
|
140
|
+
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from get' -s h -l help -d 'display help for command'
|
|
141
|
+
# ---------- collection list ----------
|
|
142
|
+
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from list' -s w -l workspace -d 'List a Postman cloud workspace\'s collections by id. Omit to list the local project\'s collections.' -x
|
|
143
|
+
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from list' -s f -l filter -d 'Filter collections by name.' -x
|
|
144
|
+
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from list' -l verbose -d 'Verbose output'
|
|
145
|
+
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from list' -l debug -d 'Debug output'
|
|
146
|
+
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from list' -l json -d 'JSON output'
|
|
147
|
+
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from list' -s h -l help -d 'display help for command'
|
|
122
148
|
# ---------- collection run ----------
|
|
123
149
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -s e -l environment -d 'Specify an Id or path to a Postman Environment' -r
|
|
124
150
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -s g -l globals -d 'Specify an Id or path to a file containing Postman Globals' -r
|
|
@@ -177,11 +203,18 @@ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_
|
|
|
177
203
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -r -k -a '(__fish_complete_suffix .json)'
|
|
178
204
|
|
|
179
205
|
# ---------- environment ----------
|
|
180
|
-
complete -c postman -n '__postman_using_subcommand environment list get var lint' -a
|
|
181
|
-
complete -c postman -n '__postman_using_subcommand environment list get var lint' -a
|
|
182
|
-
complete -c postman -n '__postman_using_subcommand environment list get var lint' -a
|
|
183
|
-
complete -c postman -n '__postman_using_subcommand environment list get var lint' -a
|
|
206
|
+
complete -c postman -n '__postman_using_subcommand environment new list get var lint' -a new -d 'Scaffold a local environment file, or create one in a Postman workspace with --workspace.'
|
|
207
|
+
complete -c postman -n '__postman_using_subcommand environment new list get var lint' -a list -d 'List environments in a Postman workspace.'
|
|
208
|
+
complete -c postman -n '__postman_using_subcommand environment new list get var lint' -a get -d 'Read an environment by ID or local environment file path.'
|
|
209
|
+
complete -c postman -n '__postman_using_subcommand environment new list get var lint' -a var -d 'Read and update environment variables.'
|
|
210
|
+
complete -c postman -n '__postman_using_subcommand environment new list get var lint' -a lint -d 'Run linting on a local Postman environment at the given file or directory path.'
|
|
184
211
|
complete -c postman -n '__fish_seen_subcommand_from environment' -s h -l help -d 'display help for command'
|
|
212
|
+
# ---------- environment new ----------
|
|
213
|
+
complete -c postman -n '__fish_seen_subcommand_from environment; and __fish_seen_subcommand_from new' -s w -l workspace -d 'Create the environment in a cloud Postman workspace instead of scaffolding it locally. Required when the current directory is not a local Postman workspace.' -x
|
|
214
|
+
complete -c postman -n '__fish_seen_subcommand_from environment; and __fish_seen_subcommand_from new' -l force -d 'Overwrite an existing local environment file.'
|
|
215
|
+
complete -c postman -n '__fish_seen_subcommand_from environment; and __fish_seen_subcommand_from new' -l verbose -d 'Verbose output'
|
|
216
|
+
complete -c postman -n '__fish_seen_subcommand_from environment; and __fish_seen_subcommand_from new' -l json -d 'JSON output'
|
|
217
|
+
complete -c postman -n '__fish_seen_subcommand_from environment; and __fish_seen_subcommand_from new' -s h -l help -d 'display help for command'
|
|
185
218
|
# ---------- environment list ----------
|
|
186
219
|
complete -c postman -n '__fish_seen_subcommand_from environment; and __fish_seen_subcommand_from list' -s w -l workspace -d 'Workspace ID to list environments from.' -x
|
|
187
220
|
complete -c postman -n '__fish_seen_subcommand_from environment; and __fish_seen_subcommand_from list' -s f -l filter -d 'Filter environments by name.' -x
|
|
@@ -270,6 +303,7 @@ complete -c postman -n '__fish_seen_subcommand_from runner; and __fish_seen_subc
|
|
|
270
303
|
complete -c postman -n '__fish_seen_subcommand_from runner; and __fish_seen_subcommand_from start' -s h -l help -d 'display help for command'
|
|
271
304
|
# ---------- runner list ----------
|
|
272
305
|
complete -c postman -n '__fish_seen_subcommand_from runner; and __fish_seen_subcommand_from list' -l api-key -d 'Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session)' -r
|
|
306
|
+
complete -c postman -n '__fish_seen_subcommand_from runner; and __fish_seen_subcommand_from list' -s w -l workspace -d 'Filter to runners in this workspace' -x
|
|
273
307
|
complete -c postman -n '__fish_seen_subcommand_from runner; and __fish_seen_subcommand_from list' -l json -d 'Output the runner list as JSON instead of a table'
|
|
274
308
|
complete -c postman -n '__fish_seen_subcommand_from runner; and __fish_seen_subcommand_from list' -s h -l help -d 'display help for command'
|
|
275
309
|
# ---------- runner regions ----------
|
|
@@ -278,12 +312,13 @@ complete -c postman -n '__fish_seen_subcommand_from runner; and __fish_seen_subc
|
|
|
278
312
|
complete -c postman -n '__fish_seen_subcommand_from runner; and __fish_seen_subcommand_from regions' -s h -l help -d 'display help for command'
|
|
279
313
|
|
|
280
314
|
# ---------- spec ----------
|
|
281
|
-
complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create' -a lint -d 'Run linting on the given specification by ID or local file path.'
|
|
282
|
-
complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create' -a ai-readiness -d 'Score an OpenAPI specification for AI readiness by ID or local file path.'
|
|
283
|
-
complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create' -a list -d 'List local spec files under a path, or (no path) a workspace\'s cloud specs.'
|
|
284
|
-
complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create' -a get -d 'Read a spec definition, including every file of a multi-file spec.'
|
|
285
|
-
complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create' -a file -d 'Add, update, or remove files in a spec (cloud ID or local directory).'
|
|
286
|
-
complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create' -a create -d 'Create a new spec in a workspace, or (with path) scaffold a local spec file.'
|
|
315
|
+
complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create generate' -a lint -d 'Run linting on the given specification by ID or local file path.'
|
|
316
|
+
complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create generate' -a ai-readiness -d 'Score an OpenAPI specification for AI readiness by ID or local file path.'
|
|
317
|
+
complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create generate' -a list -d 'List local spec files under a path, or (no path) a workspace\'s cloud specs.'
|
|
318
|
+
complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create generate' -a get -d 'Read a spec definition, including every file of a multi-file spec.'
|
|
319
|
+
complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create generate' -a file -d 'Add, update, or remove files in a spec (cloud ID or local directory).'
|
|
320
|
+
complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create generate' -a create -d 'Create a new spec in a workspace, or (with path) scaffold a local spec file.'
|
|
321
|
+
complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create generate' -a generate -d 'Generate artifacts from a specification.'
|
|
287
322
|
complete -c postman -n '__fish_seen_subcommand_from spec' -s h -l help -d 'display help for command'
|
|
288
323
|
# ---------- spec lint ----------
|
|
289
324
|
complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from lint' -s f -l fail-severity -d 'Results of this level or above will trigger a failure exit code. [choices: "error", "warning", "info", "hint"] (default: "ERROR")' -x
|
|
@@ -336,18 +371,28 @@ complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcom
|
|
|
336
371
|
complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from create' -l api-key -d 'Postman API key' -r
|
|
337
372
|
complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from create' -s h -l help -d 'display help for command'
|
|
338
373
|
complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from create' -r -k -a '(__fish_complete_suffix .json)'
|
|
374
|
+
# ---------- spec generate ----------
|
|
375
|
+
complete -c postman -n '__postman_using_subcommand generate collection' -a collection -d 'Generate a Postman collection from a specification.'
|
|
376
|
+
complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from generate' -s h -l help -d 'display help for command'
|
|
377
|
+
# ---------- spec generate collection ----------
|
|
378
|
+
complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from generate; and __fish_seen_subcommand_from collection' -s n -l name -d 'Collection name' -x
|
|
379
|
+
complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from generate; and __fish_seen_subcommand_from collection' -l folder-strategy -d 'Folder strategy: Paths or Tags (default: Paths) (default: "Paths")' -x
|
|
380
|
+
complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from generate; and __fish_seen_subcommand_from collection' -s w -l workspace -d 'Workspace ID (cloud mode)' -x
|
|
381
|
+
complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from generate; and __fish_seen_subcommand_from collection' -l api-key -d 'Postman API key' -r
|
|
382
|
+
complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from generate; and __fish_seen_subcommand_from collection' -s h -l help -d 'display help for command'
|
|
339
383
|
|
|
340
384
|
# ---------- monitor ----------
|
|
341
|
-
complete -c postman -n '__postman_using_subcommand monitor run create update delete jobs runs list get pause resume' -a run -d 'Invoke a monitor run and display results.'
|
|
342
|
-
complete -c postman -n '__postman_using_subcommand monitor run create update delete jobs runs list get pause resume' -a create -d 'Create a collection-based monitor.'
|
|
343
|
-
complete -c postman -n '__postman_using_subcommand monitor run create update delete jobs runs list get pause resume' -a update -d 'Update a monitor\'s schedule, runner, notifications or run options.'
|
|
344
|
-
complete -c postman -n '__postman_using_subcommand monitor run create update delete jobs runs list get pause resume' -a delete -d 'Permanently delete a monitor. Prompts for confirmation unless --yes is passed.'
|
|
345
|
-
complete -c postman -n '__postman_using_subcommand monitor run create update delete jobs runs list get pause resume' -a jobs -d 'Inspect a monitor\'s jobs and their per-region runs.'
|
|
346
|
-
complete -c postman -n '__postman_using_subcommand monitor run create update delete jobs runs list get pause resume' -a runs -d 'Inspect a monitor run\'s attempts.'
|
|
347
|
-
complete -c postman -n '__postman_using_subcommand monitor run create update delete jobs runs list get pause resume' -a list -d 'List the monitors visible to you.'
|
|
348
|
-
complete -c postman -n '__postman_using_subcommand monitor run create update delete jobs runs list get pause resume' -a get -d 'Show a monitor\'s configuration.'
|
|
349
|
-
complete -c postman -n '__postman_using_subcommand monitor run create update delete jobs runs list get pause resume' -a
|
|
350
|
-
complete -c postman -n '__postman_using_subcommand monitor run create update delete jobs runs list get pause resume' -a
|
|
385
|
+
complete -c postman -n '__postman_using_subcommand monitor run create update delete jobs runs list get metrics pause resume' -a run -d 'Invoke a monitor run and display results.'
|
|
386
|
+
complete -c postman -n '__postman_using_subcommand monitor run create update delete jobs runs list get metrics pause resume' -a create -d 'Create a collection-based monitor.'
|
|
387
|
+
complete -c postman -n '__postman_using_subcommand monitor run create update delete jobs runs list get metrics pause resume' -a update -d 'Update a monitor\'s schedule, runner, notifications or run options.'
|
|
388
|
+
complete -c postman -n '__postman_using_subcommand monitor run create update delete jobs runs list get metrics pause resume' -a delete -d 'Permanently delete a monitor. Prompts for confirmation unless --yes is passed.'
|
|
389
|
+
complete -c postman -n '__postman_using_subcommand monitor run create update delete jobs runs list get metrics pause resume' -a jobs -d 'Inspect a monitor\'s jobs and their per-region runs.'
|
|
390
|
+
complete -c postman -n '__postman_using_subcommand monitor run create update delete jobs runs list get metrics pause resume' -a runs -d 'Inspect a monitor run\'s attempts.'
|
|
391
|
+
complete -c postman -n '__postman_using_subcommand monitor run create update delete jobs runs list get metrics pause resume' -a list -d 'List the monitors visible to you.'
|
|
392
|
+
complete -c postman -n '__postman_using_subcommand monitor run create update delete jobs runs list get metrics pause resume' -a get -d 'Show a monitor\'s configuration.'
|
|
393
|
+
complete -c postman -n '__postman_using_subcommand monitor run create update delete jobs runs list get metrics pause resume' -a metrics -d 'Show per-request latency and outcome history for a monitor.'
|
|
394
|
+
complete -c postman -n '__postman_using_subcommand monitor run create update delete jobs runs list get metrics pause resume' -a pause -d 'Pause a monitor, so it stops firing on schedule.'
|
|
395
|
+
complete -c postman -n '__postman_using_subcommand monitor run create update delete jobs runs list get metrics pause resume' -a resume -d 'Resume a paused monitor, so it fires on schedule again.'
|
|
351
396
|
complete -c postman -n '__fish_seen_subcommand_from monitor' -s h -l help -d 'display help for command'
|
|
352
397
|
# ---------- monitor run ----------
|
|
353
398
|
complete -c postman -n '__fish_seen_subcommand_from monitor; and __fish_seen_subcommand_from run' -l api-key -d 'Postman API key (defaults to the `postman login` session)' -r
|
|
@@ -456,6 +501,14 @@ complete -c postman -n '__fish_seen_subcommand_from monitor; and __fish_seen_sub
|
|
|
456
501
|
complete -c postman -n '__fish_seen_subcommand_from monitor; and __fish_seen_subcommand_from get' -l api-key -d 'Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session)' -r
|
|
457
502
|
complete -c postman -n '__fish_seen_subcommand_from monitor; and __fish_seen_subcommand_from get' -l json -d 'Output as JSON instead of a table'
|
|
458
503
|
complete -c postman -n '__fish_seen_subcommand_from monitor; and __fish_seen_subcommand_from get' -s h -l help -d 'display help for command'
|
|
504
|
+
# ---------- monitor metrics ----------
|
|
505
|
+
complete -c postman -n '__fish_seen_subcommand_from monitor; and __fish_seen_subcommand_from metrics' -l api-key -d 'Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session)' -r
|
|
506
|
+
complete -c postman -n '__fish_seen_subcommand_from monitor; and __fish_seen_subcommand_from metrics' -l since -d 'Only executions at or after this ISO 8601 date-time. Defaults to 7 days ago.' -x
|
|
507
|
+
complete -c postman -n '__fish_seen_subcommand_from monitor; and __fish_seen_subcommand_from metrics' -l until -d 'Only executions at or before this ISO 8601 date-time. Defaults to now.' -x
|
|
508
|
+
complete -c postman -n '__fish_seen_subcommand_from monitor; and __fish_seen_subcommand_from metrics' -s f -l filter -d 'Show only requests whose name contains this text (case-insensitive)' -x
|
|
509
|
+
complete -c postman -n '__fish_seen_subcommand_from monitor; and __fish_seen_subcommand_from metrics' -l limit -d 'Cap the number of rows shown: executions (newest first) under --json, or table rows (worst-behaving request first) otherwise. Not honoured by the service -- there is no server-side pagination on this route.' -x
|
|
510
|
+
complete -c postman -n '__fish_seen_subcommand_from monitor; and __fish_seen_subcommand_from metrics' -l json -d 'Output as JSON instead of a table'
|
|
511
|
+
complete -c postman -n '__fish_seen_subcommand_from monitor; and __fish_seen_subcommand_from metrics' -s h -l help -d 'display help for command'
|
|
459
512
|
# ---------- monitor pause ----------
|
|
460
513
|
complete -c postman -n '__fish_seen_subcommand_from monitor; and __fish_seen_subcommand_from pause' -l api-key -d 'Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session)' -r
|
|
461
514
|
complete -c postman -n '__fish_seen_subcommand_from monitor; and __fish_seen_subcommand_from pause' -l json -d 'Output as JSON instead of a table'
|
|
@@ -466,13 +519,14 @@ complete -c postman -n '__fish_seen_subcommand_from monitor; and __fish_seen_sub
|
|
|
466
519
|
complete -c postman -n '__fish_seen_subcommand_from monitor; and __fish_seen_subcommand_from resume' -s h -l help -d 'display help for command'
|
|
467
520
|
|
|
468
521
|
# ---------- workspace ----------
|
|
469
|
-
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint create pull connect-git' -a list -d 'List all available Postman Workspaces'
|
|
470
|
-
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint create pull connect-git' -a prepare -d 'Prepare local collections and environments for push by validating and regenerating IDs if needed.'
|
|
471
|
-
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint create pull connect-git' -a push -d 'Push local workspace entities (collections, environments, specifications, mocks and more) to Postman workspace.'
|
|
472
|
-
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint create pull connect-git' -a lint -d 'Lint the current local Postman workspace: its configuration (.postman/resources.yaml) plus every discovered entity. Use --meta to lint only the configuration.'
|
|
473
|
-
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint create pull connect-git' -a create -d 'Create a Postman workspace and bind it to this git repository.'
|
|
474
|
-
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint create pull connect-git' -a pull -d 'Pull workspace entities from a Postman workspace into the local git-native folder.'
|
|
475
|
-
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint create pull connect-git' -a connect-git -d 'Connect a Postman workspace to a local git repository.'
|
|
522
|
+
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint create pull connect-git diff' -a list -d 'List all available Postman Workspaces'
|
|
523
|
+
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint create pull connect-git diff' -a prepare -d 'Prepare local collections and environments for push by validating and regenerating IDs if needed.'
|
|
524
|
+
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint create pull connect-git diff' -a push -d 'Push local workspace entities (collections, environments, specifications, mocks and more) to Postman workspace.'
|
|
525
|
+
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint create pull connect-git diff' -a lint -d 'Lint the current local Postman workspace: its configuration (.postman/resources.yaml) plus every discovered entity. Use --meta to lint only the configuration.'
|
|
526
|
+
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint create pull connect-git diff' -a create -d 'Create a Postman workspace and bind it to this git repository.'
|
|
527
|
+
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint create pull connect-git diff' -a pull -d 'Pull workspace entities from a Postman workspace into the local git-native folder.'
|
|
528
|
+
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint create pull connect-git diff' -a connect-git -d 'Connect a Postman workspace to a local git repository.'
|
|
529
|
+
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint create pull connect-git diff' -a diff -d 'Preview local-vs-cloud drift before pushing. Read-only: nothing is created, updated or deleted.'
|
|
476
530
|
complete -c postman -n '__fish_seen_subcommand_from workspace' -s h -l help -d 'display help for command'
|
|
477
531
|
# ---------- workspace list ----------
|
|
478
532
|
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from list' -s f -l filter -d 'Filter workspaces by name.' -x
|
|
@@ -516,9 +570,18 @@ complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_s
|
|
|
516
570
|
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from connect-git' -l verbose -d 'Show detailed logging'
|
|
517
571
|
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from connect-git' -s h -l help -d 'display help for command'
|
|
518
572
|
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from connect-git' -r -k -a '(__fish_complete_suffix .json)'
|
|
573
|
+
# ---------- workspace diff ----------
|
|
574
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from diff' -l push-strategy -d 'Strategy to preview. "force-sync" also shows cloud entities that would be DELETED. Defaults to "force-sync".' -x
|
|
575
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from diff' -l summary -d 'Skip content comparison. Faster, but updates are listed without checking whether they changed.'
|
|
576
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from diff' -l json -d 'Print the diff as machine-readable JSON.'
|
|
577
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from diff' -l exit-code -d 'Exit with code 1 when drift is found (for CI gates).'
|
|
578
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from diff' -l verbose -d 'Show detailed logging'
|
|
579
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from diff' -l timeout -d 'Abort the run after this many milliseconds. Defaults to 120000.' -x
|
|
580
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from diff' -s h -l help -d 'display help for command'
|
|
519
581
|
|
|
520
582
|
# ---------- performance ----------
|
|
521
|
-
complete -c postman -n '__postman_using_subcommand performance run' -a run -d 'Run a performance test on a collection'
|
|
583
|
+
complete -c postman -n '__postman_using_subcommand performance run runs' -a run -d 'Run a performance test on a collection'
|
|
584
|
+
complete -c postman -n '__postman_using_subcommand performance run runs' -a runs -d 'List past performance runs for a collection, newest first.'
|
|
522
585
|
complete -c postman -n '__fish_seen_subcommand_from performance' -s h -l help -d 'display help for command'
|
|
523
586
|
# ---------- performance run ----------
|
|
524
587
|
complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -s e -l environment -d 'Specify an Id to a Postman Environment' -x
|
|
@@ -538,6 +601,12 @@ complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen
|
|
|
538
601
|
complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -l use-mock -d 'Redirect a variable/host to a local code mock or cloud Mock Server (repeatable). Format: "<{{var}}|host> mock|mock-server:<path|id> [scenario]" (default: [])' -x
|
|
539
602
|
complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -s h -l help -d 'display help for command'
|
|
540
603
|
complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -r -k -a '(__fish_complete_suffix .json)'
|
|
604
|
+
# ---------- performance runs ----------
|
|
605
|
+
complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from runs' -s c -l collection-id -d 'Collection ID whose performance runs to list' -x
|
|
606
|
+
complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from runs' -l cursor -d 'Pagination cursor from a previous page\'s response' -x
|
|
607
|
+
complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from runs' -l json -d 'Output as JSON instead of a table'
|
|
608
|
+
complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from runs' -l timeout -d 'Milliseconds to wait for the service before failing (default: "30000")' -x
|
|
609
|
+
complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from runs' -s h -l help -d 'display help for command'
|
|
541
610
|
|
|
542
611
|
# ---------- flows ----------
|
|
543
612
|
complete -c postman -n '__postman_using_subcommand flows list trigger deploy run update list-runs get-run' -a list -d 'List all flows'
|
|
@@ -754,7 +823,7 @@ complete -c postman -n '__postman_using_subcommand mock generate run push deploy
|
|
|
754
823
|
complete -c postman -n '__postman_using_subcommand mock generate run push deploy get list log delete' -a push -d 'Upload a mock from your repository to Postman cloud (creates it the first time, updates it after).'
|
|
755
824
|
complete -c postman -n '__postman_using_subcommand mock generate run push deploy get list log delete' -a deploy -d 'Turn a mock in Postman cloud into a live mock server others can call over the internet.'
|
|
756
825
|
complete -c postman -n '__postman_using_subcommand mock generate run push deploy get list log delete' -a get -d 'Show a mock\'s details using its path if it lives in your repository, or its id if it lives in Postman cloud.'
|
|
757
|
-
complete -c postman -n '__postman_using_subcommand mock generate run push deploy get list log delete' -a list -d 'List the mocks in your Postman cloud workspace
|
|
826
|
+
complete -c postman -n '__postman_using_subcommand mock generate run push deploy get list log delete' -a list -d 'List the mocks in your repository or Postman cloud workspace'
|
|
758
827
|
complete -c postman -n '__postman_using_subcommand mock generate run push deploy get list log delete' -a log -d 'Show the requests a live mock server has received and the responses it sent, using its id.'
|
|
759
828
|
complete -c postman -n '__postman_using_subcommand mock generate run push deploy get list log delete' -a delete -d 'Delete a mock using its path if it lives in your repository, or its id if it lives in Postman cloud. Cannot be undone.'
|
|
760
829
|
complete -c postman -n '__fish_seen_subcommand_from mock' -s h -l help -d 'display help for command'
|
package/completions/zsh/_postman
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#compdef postman
|
|
2
2
|
compdef _postman postman
|
|
3
|
-
# Zsh completion for Postman CLI (postman v1.
|
|
3
|
+
# Zsh completion for Postman CLI (postman v1.59.0)
|
|
4
4
|
# Auto-generated by scripts/generate.mjs — DO NOT EDIT
|
|
5
5
|
# Source: spec/commands.json
|
|
6
6
|
# https://github.com/yokawasa/postman-cli-completion
|
|
@@ -25,6 +25,7 @@ _postman() {
|
|
|
25
25
|
logout) _postman_logout ;;
|
|
26
26
|
init) _postman_init ;;
|
|
27
27
|
whoami) _postman_whoami ;;
|
|
28
|
+
update) _postman_update ;;
|
|
28
29
|
skills) _postman_skills ;;
|
|
29
30
|
collection) _postman_collection ;;
|
|
30
31
|
environment) _postman_environment ;;
|
|
@@ -56,10 +57,11 @@ _postman_commands() {
|
|
|
56
57
|
local -a commands
|
|
57
58
|
commands=(
|
|
58
59
|
'login:Authenticate with Postman to access your resources.'
|
|
59
|
-
'signup:Sign up to keep the work you created as a guest (claims your guest workspace).
|
|
60
|
+
'signup:Sign up to keep the work you created as a guest (claims your guest workspace). Waits and signs this CLI in once the sign-up is completed in a browser — opening that browser here on a terminal, or printing the URL to hand over when output is piped.'
|
|
60
61
|
'logout:Delete the stored Postman API key.'
|
|
61
62
|
'init:Set up Postman artifacts and agent instructions in a repository.'
|
|
62
63
|
'whoami:Show the Postman account or guest session this CLI session is using.'
|
|
64
|
+
'update:Update Postman CLI using the original installation method.'
|
|
63
65
|
'skills:Check and update the agent skills in this repository.'
|
|
64
66
|
'collection:Run and test your Postman collections directly from the command line.'
|
|
65
67
|
'environment:Work with local Postman environments from the command line. Also read cloud environments by ID.'
|
|
@@ -100,7 +102,9 @@ _postman_login() {
|
|
|
100
102
|
|
|
101
103
|
_postman_signup() {
|
|
102
104
|
_arguments \
|
|
103
|
-
'--browser[
|
|
105
|
+
'--browser[Always open the sign-up URL in a browser here, rather than printing it.]' \
|
|
106
|
+
'--wait[Wait for the sign-up to complete even if no local browser is detected.]' \
|
|
107
|
+
'--no-wait[Print the sign-up URL and exit without waiting. Leaves this CLI a guest.]' \
|
|
104
108
|
'--json[Print the sign-up details as machine-readable JSON.]' \
|
|
105
109
|
'(-h --help)'{-h,--help}'[display help for command]'
|
|
106
110
|
}
|
|
@@ -130,6 +134,11 @@ _postman_whoami() {
|
|
|
130
134
|
'(-h --help)'{-h,--help}'[display help for command]'
|
|
131
135
|
}
|
|
132
136
|
|
|
137
|
+
_postman_update() {
|
|
138
|
+
_arguments \
|
|
139
|
+
'(-h --help)'{-h,--help}'[display help for command]'
|
|
140
|
+
}
|
|
141
|
+
|
|
133
142
|
_postman_skills() {
|
|
134
143
|
local context state state_descr line
|
|
135
144
|
typeset -A opt_args
|
|
@@ -183,9 +192,12 @@ _postman_collection() {
|
|
|
183
192
|
case $state in
|
|
184
193
|
args)
|
|
185
194
|
case $words[1] in
|
|
195
|
+
new) _postman_collection_new ;;
|
|
186
196
|
migrate) _postman_collection_migrate ;;
|
|
187
197
|
lint) _postman_collection_lint ;;
|
|
188
198
|
ai-readiness) _postman_collection_ai_readiness ;;
|
|
199
|
+
get) _postman_collection_get ;;
|
|
200
|
+
list) _postman_collection_list ;;
|
|
189
201
|
run) _postman_collection_run ;;
|
|
190
202
|
esac
|
|
191
203
|
;;
|
|
@@ -195,14 +207,27 @@ _postman_collection() {
|
|
|
195
207
|
_postman_collection_commands() {
|
|
196
208
|
local -a sub
|
|
197
209
|
sub=(
|
|
210
|
+
'new:Scaffold a v3 collection on disk, or create one in a cloud Postman workspace with --workspace.'
|
|
198
211
|
'migrate:Migrate a v2.1 collection to the v3 format'
|
|
199
212
|
'lint:Run linting on a local v3 collection at the given file or directory path.'
|
|
200
213
|
'ai-readiness:Score a Postman collection for AI readiness by ID, local file path, or local-mode directory.'
|
|
214
|
+
'get:Fetch a Postman collection in the V3 format and print it.'
|
|
215
|
+
'list:List collections\: your local project'\''s collections by default, or a Postman cloud workspace'\''s collections with --workspace.'
|
|
201
216
|
'run:Initiate a Postman collection run from a given ID or path.'
|
|
202
217
|
)
|
|
203
218
|
_describe -t commands 'collection command' sub
|
|
204
219
|
}
|
|
205
220
|
|
|
221
|
+
_postman_collection_new() {
|
|
222
|
+
_arguments \
|
|
223
|
+
'(-w --workspace)'{-w,--workspace}'[Create the collection in a cloud Postman workspace instead of scaffolding it locally. Required when the current directory is not a local Postman workspace.]:workspaceId' \
|
|
224
|
+
'--force[Rewrite the definition of an existing local collection. Existing request files are left alone.]' \
|
|
225
|
+
'--verbose[Verbose output]' \
|
|
226
|
+
'--json[JSON output]' \
|
|
227
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
228
|
+
'*:name:'
|
|
229
|
+
}
|
|
230
|
+
|
|
206
231
|
_postman_collection_migrate() {
|
|
207
232
|
_arguments \
|
|
208
233
|
'(-o --output)'{-o,--output}'[Output directory (default\: ./<collection-name>)]:dir:_files -g "*.json"' \
|
|
@@ -226,6 +251,24 @@ _postman_collection_ai_readiness() {
|
|
|
226
251
|
'*:collectionId/Path:_files -g "*.json"'
|
|
227
252
|
}
|
|
228
253
|
|
|
254
|
+
_postman_collection_get() {
|
|
255
|
+
_arguments \
|
|
256
|
+
'--api-key[Postman API key (defaults to your `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
257
|
+
'--json[Print the collection as machine-readable V3 JSON instead of a table]' \
|
|
258
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
259
|
+
'*:id:'
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
_postman_collection_list() {
|
|
263
|
+
_arguments \
|
|
264
|
+
'(-w --workspace)'{-w,--workspace}'[List a Postman cloud workspace'\''s collections by id. Omit to list the local project'\''s collections.]:workspaceId' \
|
|
265
|
+
'(-f --filter)'{-f,--filter}'[Filter collections by name.]:name' \
|
|
266
|
+
'--verbose[Verbose output]' \
|
|
267
|
+
'--debug[Debug output]' \
|
|
268
|
+
'--json[JSON output]' \
|
|
269
|
+
'(-h --help)'{-h,--help}'[display help for command]'
|
|
270
|
+
}
|
|
271
|
+
|
|
229
272
|
_postman_collection_run() {
|
|
230
273
|
_arguments \
|
|
231
274
|
'(-e --environment)'{-e,--environment}'[Specify an Id or path to a Postman Environment]:path:_files -g "*.json"' \
|
|
@@ -295,6 +338,7 @@ _postman_environment() {
|
|
|
295
338
|
case $state in
|
|
296
339
|
args)
|
|
297
340
|
case $words[1] in
|
|
341
|
+
new) _postman_environment_new ;;
|
|
298
342
|
list) _postman_environment_list ;;
|
|
299
343
|
get) _postman_environment_get ;;
|
|
300
344
|
var) _postman_environment_var ;;
|
|
@@ -307,6 +351,7 @@ _postman_environment() {
|
|
|
307
351
|
_postman_environment_commands() {
|
|
308
352
|
local -a sub
|
|
309
353
|
sub=(
|
|
354
|
+
'new:Scaffold a local environment file, or create one in a Postman workspace with --workspace.'
|
|
310
355
|
'list:List environments in a Postman workspace.'
|
|
311
356
|
'get:Read an environment by ID or local environment file path.'
|
|
312
357
|
'var:Read and update environment variables.'
|
|
@@ -315,6 +360,16 @@ _postman_environment_commands() {
|
|
|
315
360
|
_describe -t commands 'environment command' sub
|
|
316
361
|
}
|
|
317
362
|
|
|
363
|
+
_postman_environment_new() {
|
|
364
|
+
_arguments \
|
|
365
|
+
'(-w --workspace)'{-w,--workspace}'[Create the environment in a cloud Postman workspace instead of scaffolding it locally. Required when the current directory is not a local Postman workspace.]:workspaceId' \
|
|
366
|
+
'--force[Overwrite an existing local environment file.]' \
|
|
367
|
+
'--verbose[Verbose output]' \
|
|
368
|
+
'--json[JSON output]' \
|
|
369
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
370
|
+
'*:name:'
|
|
371
|
+
}
|
|
372
|
+
|
|
318
373
|
_postman_environment_list() {
|
|
319
374
|
_arguments \
|
|
320
375
|
'(-w --workspace)'{-w,--workspace}'[Workspace ID to list environments from.]:workspaceId' \
|
|
@@ -524,6 +579,7 @@ _postman_runner_start() {
|
|
|
524
579
|
_postman_runner_list() {
|
|
525
580
|
_arguments \
|
|
526
581
|
'--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
582
|
+
'(-w --workspace)'{-w,--workspace}'[Filter to runners in this workspace]:id' \
|
|
527
583
|
'--json[Output the runner list as JSON instead of a table]' \
|
|
528
584
|
'(-h --help)'{-h,--help}'[display help for command]'
|
|
529
585
|
}
|
|
@@ -551,6 +607,7 @@ _postman_spec() {
|
|
|
551
607
|
get) _postman_spec_get ;;
|
|
552
608
|
file) _postman_spec_file ;;
|
|
553
609
|
create) _postman_spec_create ;;
|
|
610
|
+
generate) _postman_spec_generate ;;
|
|
554
611
|
esac
|
|
555
612
|
;;
|
|
556
613
|
esac
|
|
@@ -565,6 +622,7 @@ _postman_spec_commands() {
|
|
|
565
622
|
'get:Read a spec definition, including every file of a multi-file spec.'
|
|
566
623
|
'file:Add, update, or remove files in a spec (cloud ID or local directory).'
|
|
567
624
|
'create:Create a new spec in a workspace, or (with path) scaffold a local spec file.'
|
|
625
|
+
'generate:Generate artifacts from a specification.'
|
|
568
626
|
)
|
|
569
627
|
_describe -t commands 'spec command' sub
|
|
570
628
|
}
|
|
@@ -670,6 +728,40 @@ _postman_spec_create() {
|
|
|
670
728
|
'*:path:_files -g "*.json"'
|
|
671
729
|
}
|
|
672
730
|
|
|
731
|
+
_postman_spec_generate() {
|
|
732
|
+
local context state state_descr line
|
|
733
|
+
typeset -A opt_args
|
|
734
|
+
_arguments -C \
|
|
735
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
736
|
+
'1: :_postman_spec_generate_commands' \
|
|
737
|
+
'*::arg:->args'
|
|
738
|
+
case $state in
|
|
739
|
+
args)
|
|
740
|
+
case $words[1] in
|
|
741
|
+
collection) _postman_spec_generate_collection ;;
|
|
742
|
+
esac
|
|
743
|
+
;;
|
|
744
|
+
esac
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
_postman_spec_generate_commands() {
|
|
748
|
+
local -a sub
|
|
749
|
+
sub=(
|
|
750
|
+
'collection:Generate a Postman collection from a specification.'
|
|
751
|
+
)
|
|
752
|
+
_describe -t commands 'generate command' sub
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
_postman_spec_generate_collection() {
|
|
756
|
+
_arguments \
|
|
757
|
+
'(-n --name)'{-n,--name}'[Collection name]:name' \
|
|
758
|
+
'--folder-strategy[Folder strategy\: Paths or Tags (default\: Paths) (default\: "Paths")]:strategy' \
|
|
759
|
+
'(-w --workspace)'{-w,--workspace}'[Workspace ID (cloud mode)]:id' \
|
|
760
|
+
'--api-key[Postman API key]:key:_files -g "*.(pem|crt|key)"' \
|
|
761
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
762
|
+
'*:spec:'
|
|
763
|
+
}
|
|
764
|
+
|
|
673
765
|
_postman_monitor() {
|
|
674
766
|
local context state state_descr line
|
|
675
767
|
typeset -A opt_args
|
|
@@ -688,6 +780,7 @@ _postman_monitor() {
|
|
|
688
780
|
runs) _postman_monitor_runs ;;
|
|
689
781
|
list) _postman_monitor_list ;;
|
|
690
782
|
get) _postman_monitor_get ;;
|
|
783
|
+
metrics) _postman_monitor_metrics ;;
|
|
691
784
|
pause) _postman_monitor_pause ;;
|
|
692
785
|
resume) _postman_monitor_resume ;;
|
|
693
786
|
esac
|
|
@@ -706,6 +799,7 @@ _postman_monitor_commands() {
|
|
|
706
799
|
'runs:Inspect a monitor run'\''s attempts.'
|
|
707
800
|
'list:List the monitors visible to you.'
|
|
708
801
|
'get:Show a monitor'\''s configuration.'
|
|
802
|
+
'metrics:Show per-request latency and outcome history for a monitor.'
|
|
709
803
|
'pause:Pause a monitor, so it stops firing on schedule.'
|
|
710
804
|
'resume:Resume a paused monitor, so it fires on schedule again.'
|
|
711
805
|
)
|
|
@@ -896,6 +990,18 @@ _postman_monitor_get() {
|
|
|
896
990
|
'*:monitorId:'
|
|
897
991
|
}
|
|
898
992
|
|
|
993
|
+
_postman_monitor_metrics() {
|
|
994
|
+
_arguments \
|
|
995
|
+
'--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
996
|
+
'--since[Only executions at or after this ISO 8601 date-time. Defaults to 7 days ago.]:dateTime' \
|
|
997
|
+
'--until[Only executions at or before this ISO 8601 date-time. Defaults to now.]:dateTime' \
|
|
998
|
+
'(-f --filter)'{-f,--filter}'[Show only requests whose name contains this text (case-insensitive)]:text' \
|
|
999
|
+
'--limit[Cap the number of rows shown\: executions (newest first) under --json, or table rows (worst-behaving request first) otherwise. Not honoured by the service -- there is no server-side pagination on this route.]:n' \
|
|
1000
|
+
'--json[Output as JSON instead of a table]' \
|
|
1001
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1002
|
+
'*:monitorId:'
|
|
1003
|
+
}
|
|
1004
|
+
|
|
899
1005
|
_postman_monitor_pause() {
|
|
900
1006
|
_arguments \
|
|
901
1007
|
'--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
@@ -929,6 +1035,7 @@ _postman_workspace() {
|
|
|
929
1035
|
create) _postman_workspace_create ;;
|
|
930
1036
|
pull) _postman_workspace_pull ;;
|
|
931
1037
|
connect-git) _postman_workspace_connect_git ;;
|
|
1038
|
+
diff) _postman_workspace_diff ;;
|
|
932
1039
|
esac
|
|
933
1040
|
;;
|
|
934
1041
|
esac
|
|
@@ -944,6 +1051,7 @@ _postman_workspace_commands() {
|
|
|
944
1051
|
'create:Create a Postman workspace and bind it to this git repository.'
|
|
945
1052
|
'pull:Pull workspace entities from a Postman workspace into the local git-native folder.'
|
|
946
1053
|
'connect-git:Connect a Postman workspace to a local git repository.'
|
|
1054
|
+
'diff:Preview local-vs-cloud drift before pushing. Read-only\: nothing is created, updated or deleted.'
|
|
947
1055
|
)
|
|
948
1056
|
_describe -t commands 'workspace command' sub
|
|
949
1057
|
}
|
|
@@ -1012,6 +1120,18 @@ _postman_workspace_connect_git() {
|
|
|
1012
1120
|
'*:path:_files -g "*.json"'
|
|
1013
1121
|
}
|
|
1014
1122
|
|
|
1123
|
+
_postman_workspace_diff() {
|
|
1124
|
+
_arguments \
|
|
1125
|
+
'--push-strategy[Strategy to preview. "force-sync" also shows cloud entities that would be DELETED. Defaults to "force-sync".]:strategy' \
|
|
1126
|
+
'--summary[Skip content comparison. Faster, but updates are listed without checking whether they changed.]' \
|
|
1127
|
+
'--json[Print the diff as machine-readable JSON.]' \
|
|
1128
|
+
'--exit-code[Exit with code 1 when drift is found (for CI gates).]' \
|
|
1129
|
+
'--verbose[Show detailed logging]' \
|
|
1130
|
+
'--timeout[Abort the run after this many milliseconds. Defaults to 120000.]:ms' \
|
|
1131
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1132
|
+
'*:workspaceId:'
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1015
1135
|
_postman_performance() {
|
|
1016
1136
|
local context state state_descr line
|
|
1017
1137
|
typeset -A opt_args
|
|
@@ -1023,6 +1143,7 @@ _postman_performance() {
|
|
|
1023
1143
|
args)
|
|
1024
1144
|
case $words[1] in
|
|
1025
1145
|
run) _postman_performance_run ;;
|
|
1146
|
+
runs) _postman_performance_runs ;;
|
|
1026
1147
|
esac
|
|
1027
1148
|
;;
|
|
1028
1149
|
esac
|
|
@@ -1032,6 +1153,7 @@ _postman_performance_commands() {
|
|
|
1032
1153
|
local -a sub
|
|
1033
1154
|
sub=(
|
|
1034
1155
|
'run:Run a performance test on a collection'
|
|
1156
|
+
'runs:List past performance runs for a collection, newest first.'
|
|
1035
1157
|
)
|
|
1036
1158
|
_describe -t commands 'performance command' sub
|
|
1037
1159
|
}
|
|
@@ -1057,6 +1179,16 @@ _postman_performance_run() {
|
|
|
1057
1179
|
'*:collectionId:_files -g "*.json"'
|
|
1058
1180
|
}
|
|
1059
1181
|
|
|
1182
|
+
_postman_performance_runs() {
|
|
1183
|
+
_arguments \
|
|
1184
|
+
'(-c --collection-id)'{-c,--collection-id}'[Collection ID whose performance runs to list]:id' \
|
|
1185
|
+
'--cursor[Pagination cursor from a previous page'\''s response]:token' \
|
|
1186
|
+
'--json[Output as JSON instead of a table]' \
|
|
1187
|
+
'--timeout[Milliseconds to wait for the service before failing (default\: "30000")]:ms' \
|
|
1188
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1189
|
+
'*:id:'
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1060
1192
|
_postman_flows() {
|
|
1061
1193
|
local context state state_descr line
|
|
1062
1194
|
typeset -A opt_args
|
|
@@ -1428,7 +1560,7 @@ _postman_mock_commands() {
|
|
|
1428
1560
|
'push:Upload a mock from your repository to Postman cloud (creates it the first time, updates it after).'
|
|
1429
1561
|
'deploy:Turn a mock in Postman cloud into a live mock server others can call over the internet.'
|
|
1430
1562
|
'get:Show a mock'\''s details using its path if it lives in your repository, or its id if it lives in Postman cloud.'
|
|
1431
|
-
'list:List the mocks in your Postman cloud workspace
|
|
1563
|
+
'list:List the mocks in your repository or Postman cloud workspace'
|
|
1432
1564
|
'log:Show the requests a live mock server has received and the responses it sent, using its id.'
|
|
1433
1565
|
'delete:Delete a mock using its path if it lives in your repository, or its id if it lives in Postman cloud. Cannot be undone.'
|
|
1434
1566
|
)
|