postman-cli-completion 1.56.1 → 1.57.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 +178 -5
- package/completions/fish/postman.fish +93 -8
- package/completions/zsh/_postman +199 -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.57.0)
|
|
2
2
|
# Auto-generated by scripts/generate.mjs — DO NOT EDIT
|
|
3
3
|
# Source: spec/commands.json
|
|
4
4
|
# https://github.com/yokawasa/postman-cli-completion
|
|
@@ -22,7 +22,7 @@ _postman() {
|
|
|
22
22
|
cur="${COMP_WORDS[COMP_CWORD]}"
|
|
23
23
|
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
|
24
24
|
|
|
25
|
-
local top_commands="login logout init skills collection environment globals api runner spec monitor workspace ws performance flows fl request sdk mock application app simulate context search webhook dataset"
|
|
25
|
+
local top_commands="login signup logout init skills collection environment globals api runner spec monitor workspace ws performance flows fl request sdk mock application app simulate context context-graph search webhook dataset dependency"
|
|
26
26
|
local global_flags="-v --version --silent --color -h --help -h --help"
|
|
27
27
|
|
|
28
28
|
local i cmd="" subcmd=""
|
|
@@ -47,6 +47,7 @@ _postman() {
|
|
|
47
47
|
|
|
48
48
|
case "$cmd" in
|
|
49
49
|
login) _postman_login ;;
|
|
50
|
+
signup) _postman_signup ;;
|
|
50
51
|
logout) _postman_logout ;;
|
|
51
52
|
init) _postman_init ;;
|
|
52
53
|
skills) _postman_skills ;;
|
|
@@ -66,9 +67,11 @@ _postman() {
|
|
|
66
67
|
application|app) _postman_application ;;
|
|
67
68
|
simulate) _postman_simulate ;;
|
|
68
69
|
context) _postman_context ;;
|
|
70
|
+
context-graph) _postman_context_graph ;;
|
|
69
71
|
search) _postman_search ;;
|
|
70
72
|
webhook) _postman_webhook ;;
|
|
71
73
|
dataset) _postman_dataset ;;
|
|
74
|
+
dependency) _postman_dependency ;;
|
|
72
75
|
esac
|
|
73
76
|
}
|
|
74
77
|
|
|
@@ -84,6 +87,13 @@ _postman_login() {
|
|
|
84
87
|
esac
|
|
85
88
|
}
|
|
86
89
|
|
|
90
|
+
_postman_signup() {
|
|
91
|
+
if [[ "$cur" == -* ]]; then
|
|
92
|
+
COMPREPLY=( $(compgen -W "--browser --json -h --help" -- "$cur") )
|
|
93
|
+
return 0
|
|
94
|
+
fi
|
|
95
|
+
}
|
|
96
|
+
|
|
87
97
|
_postman_logout() {
|
|
88
98
|
if [[ "$cur" == -* ]]; then
|
|
89
99
|
COMPREPLY=( $(compgen -W "--alias -h --help" -- "$cur") )
|
|
@@ -259,15 +269,89 @@ _postman_environment() {
|
|
|
259
269
|
if [[ "$cur" == -* ]]; then
|
|
260
270
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
261
271
|
else
|
|
262
|
-
COMPREPLY=( $(compgen -W "lint" -- "$cur") )
|
|
272
|
+
COMPREPLY=( $(compgen -W "list get var lint" -- "$cur") )
|
|
263
273
|
fi
|
|
264
274
|
return 0
|
|
265
275
|
fi
|
|
266
276
|
case "$subcmd" in
|
|
277
|
+
list) _postman_environment_list ;;
|
|
278
|
+
get) _postman_environment_get ;;
|
|
279
|
+
var) _postman_environment_var ;;
|
|
267
280
|
lint) _postman_environment_lint ;;
|
|
268
281
|
esac
|
|
269
282
|
}
|
|
270
283
|
|
|
284
|
+
_postman_environment_list() {
|
|
285
|
+
if [[ "$cur" == -* ]]; then
|
|
286
|
+
COMPREPLY=( $(compgen -W "-w --workspace -f --filter --verbose --json -h --help" -- "$cur") )
|
|
287
|
+
return 0
|
|
288
|
+
fi
|
|
289
|
+
case "$prev" in
|
|
290
|
+
esac
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
_postman_environment_get() {
|
|
294
|
+
if [[ "$cur" == -* ]]; then
|
|
295
|
+
COMPREPLY=( $(compgen -W "--verbose --json --show-secrets -h --help" -- "$cur") )
|
|
296
|
+
return 0
|
|
297
|
+
fi
|
|
298
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
_postman_environment_var() {
|
|
302
|
+
if [[ -z "$subcmd" ]]; then
|
|
303
|
+
if [[ "$cur" == -* ]]; then
|
|
304
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
305
|
+
else
|
|
306
|
+
COMPREPLY=( $(compgen -W "set get unset" -- "$cur") )
|
|
307
|
+
fi
|
|
308
|
+
return 0
|
|
309
|
+
fi
|
|
310
|
+
case "$subcmd" in
|
|
311
|
+
set) _postman_environment_var_set ;;
|
|
312
|
+
get) _postman_environment_var_get ;;
|
|
313
|
+
unset) _postman_environment_var_unset ;;
|
|
314
|
+
esac
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
_postman_environment_var_set() {
|
|
318
|
+
if [[ "$cur" == -* ]]; then
|
|
319
|
+
COMPREPLY=( $(compgen -W "-e --environment --verbose --json -h --help" -- "$cur") )
|
|
320
|
+
return 0
|
|
321
|
+
fi
|
|
322
|
+
case "$prev" in
|
|
323
|
+
-e|--environment)
|
|
324
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
325
|
+
return 0 ;;
|
|
326
|
+
esac
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
_postman_environment_var_get() {
|
|
330
|
+
if [[ "$cur" == -* ]]; then
|
|
331
|
+
COMPREPLY=( $(compgen -W "-e --environment --verbose --json -h --help" -- "$cur") )
|
|
332
|
+
return 0
|
|
333
|
+
fi
|
|
334
|
+
case "$prev" in
|
|
335
|
+
-e|--environment)
|
|
336
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
337
|
+
return 0 ;;
|
|
338
|
+
esac
|
|
339
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
_postman_environment_var_unset() {
|
|
343
|
+
if [[ "$cur" == -* ]]; then
|
|
344
|
+
COMPREPLY=( $(compgen -W "-e --environment --verbose --json -h --help" -- "$cur") )
|
|
345
|
+
return 0
|
|
346
|
+
fi
|
|
347
|
+
case "$prev" in
|
|
348
|
+
-e|--environment)
|
|
349
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
350
|
+
return 0 ;;
|
|
351
|
+
esac
|
|
352
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
353
|
+
}
|
|
354
|
+
|
|
271
355
|
_postman_environment_lint() {
|
|
272
356
|
if [[ "$cur" == -* ]]; then
|
|
273
357
|
COMPREPLY=( $(compgen -W "-f --fail-severity -o --output -h --help" -- "$cur") )
|
|
@@ -372,13 +456,15 @@ _postman_spec() {
|
|
|
372
456
|
if [[ "$cur" == -* ]]; then
|
|
373
457
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
374
458
|
else
|
|
375
|
-
COMPREPLY=( $(compgen -W "lint ai-readiness" -- "$cur") )
|
|
459
|
+
COMPREPLY=( $(compgen -W "lint ai-readiness list get" -- "$cur") )
|
|
376
460
|
fi
|
|
377
461
|
return 0
|
|
378
462
|
fi
|
|
379
463
|
case "$subcmd" in
|
|
380
464
|
lint) _postman_spec_lint ;;
|
|
381
465
|
ai-readiness) _postman_spec_ai_readiness ;;
|
|
466
|
+
list) _postman_spec_list ;;
|
|
467
|
+
get) _postman_spec_get ;;
|
|
382
468
|
esac
|
|
383
469
|
}
|
|
384
470
|
|
|
@@ -400,6 +486,31 @@ _postman_spec_ai_readiness() {
|
|
|
400
486
|
esac
|
|
401
487
|
}
|
|
402
488
|
|
|
489
|
+
_postman_spec_list() {
|
|
490
|
+
if [[ "$cur" == -* ]]; then
|
|
491
|
+
COMPREPLY=( $(compgen -W "-w --workspace --api-key --json -h --help" -- "$cur") )
|
|
492
|
+
return 0
|
|
493
|
+
fi
|
|
494
|
+
case "$prev" in
|
|
495
|
+
--api-key)
|
|
496
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
497
|
+
return 0 ;;
|
|
498
|
+
esac
|
|
499
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
_postman_spec_get() {
|
|
503
|
+
if [[ "$cur" == -* ]]; then
|
|
504
|
+
COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
|
|
505
|
+
return 0
|
|
506
|
+
fi
|
|
507
|
+
case "$prev" in
|
|
508
|
+
--api-key)
|
|
509
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
510
|
+
return 0 ;;
|
|
511
|
+
esac
|
|
512
|
+
}
|
|
513
|
+
|
|
403
514
|
_postman_monitor() {
|
|
404
515
|
if [[ -z "$subcmd" ]]; then
|
|
405
516
|
if [[ "$cur" == -* ]]; then
|
|
@@ -1155,6 +1266,45 @@ _postman_context_environment_get() {
|
|
|
1155
1266
|
esac
|
|
1156
1267
|
}
|
|
1157
1268
|
|
|
1269
|
+
_postman_context_graph() {
|
|
1270
|
+
if [[ -z "$subcmd" ]]; then
|
|
1271
|
+
if [[ "$cur" == -* ]]; then
|
|
1272
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1273
|
+
else
|
|
1274
|
+
COMPREPLY=( $(compgen -W "ask status" -- "$cur") )
|
|
1275
|
+
fi
|
|
1276
|
+
return 0
|
|
1277
|
+
fi
|
|
1278
|
+
case "$subcmd" in
|
|
1279
|
+
ask) _postman_context_graph_ask ;;
|
|
1280
|
+
status) _postman_context_graph_status ;;
|
|
1281
|
+
esac
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
_postman_context_graph_ask() {
|
|
1285
|
+
if [[ "$cur" == -* ]]; then
|
|
1286
|
+
COMPREPLY=( $(compgen -W "--wait --api-key --json --no-include-answer --max-steps --interval --timeout -h --help" -- "$cur") )
|
|
1287
|
+
return 0
|
|
1288
|
+
fi
|
|
1289
|
+
case "$prev" in
|
|
1290
|
+
--api-key)
|
|
1291
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1292
|
+
return 0 ;;
|
|
1293
|
+
esac
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1296
|
+
_postman_context_graph_status() {
|
|
1297
|
+
if [[ "$cur" == -* ]]; then
|
|
1298
|
+
COMPREPLY=( $(compgen -W "--api-key --json -h --help" -- "$cur") )
|
|
1299
|
+
return 0
|
|
1300
|
+
fi
|
|
1301
|
+
case "$prev" in
|
|
1302
|
+
--api-key)
|
|
1303
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1304
|
+
return 0 ;;
|
|
1305
|
+
esac
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1158
1308
|
_postman_search() {
|
|
1159
1309
|
if [[ -z "$subcmd" ]]; then
|
|
1160
1310
|
if [[ "$cur" == -* ]]; then
|
|
@@ -1463,7 +1613,7 @@ _postman_dataset_get() {
|
|
|
1463
1613
|
|
|
1464
1614
|
_postman_dataset_query() {
|
|
1465
1615
|
if [[ "$cur" == -* ]]; then
|
|
1466
|
-
COMPREPLY=( $(compgen -W "-q --query -p --param --api-key --json --debug -h --help" -- "$cur") )
|
|
1616
|
+
COMPREPLY=( $(compgen -W "-q --query -s --source -p --param --api-key --json --debug -h --help" -- "$cur") )
|
|
1467
1617
|
return 0
|
|
1468
1618
|
fi
|
|
1469
1619
|
case "$prev" in
|
|
@@ -1659,4 +1809,27 @@ _postman_dataset_view_update() {
|
|
|
1659
1809
|
esac
|
|
1660
1810
|
}
|
|
1661
1811
|
|
|
1812
|
+
_postman_dependency() {
|
|
1813
|
+
if [[ -z "$subcmd" ]]; then
|
|
1814
|
+
if [[ "$cur" == -* ]]; then
|
|
1815
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1816
|
+
else
|
|
1817
|
+
COMPREPLY=( $(compgen -W "add" -- "$cur") )
|
|
1818
|
+
fi
|
|
1819
|
+
return 0
|
|
1820
|
+
fi
|
|
1821
|
+
case "$subcmd" in
|
|
1822
|
+
add) _postman_dependency_add ;;
|
|
1823
|
+
esac
|
|
1824
|
+
}
|
|
1825
|
+
|
|
1826
|
+
_postman_dependency_add() {
|
|
1827
|
+
if [[ "$cur" == -* ]]; then
|
|
1828
|
+
COMPREPLY=( $(compgen -W "-w --workspace -y --yes --json -h --help" -- "$cur") )
|
|
1829
|
+
return 0
|
|
1830
|
+
fi
|
|
1831
|
+
case "$prev" in
|
|
1832
|
+
esac
|
|
1833
|
+
}
|
|
1834
|
+
|
|
1662
1835
|
complete -F _postman postman
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
# Fish completion for Postman CLI (postman v1.
|
|
1
|
+
# Fish completion for Postman CLI (postman v1.57.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 logout init skills collection environment globals api runner spec monitor workspace ws performance flows fl request sdk mock application app simulate context search webhook dataset
|
|
7
|
+
not __fish_seen_subcommand_from login signup logout init 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,11 +22,12 @@ 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). By default prints a single-use sign-up URL to open in a browser; --browser signs up in a browser and signs this CLI in.'
|
|
25
26
|
complete -c postman -n __postman_no_subcommand -a logout -d 'Delete the stored Postman API key.'
|
|
26
27
|
complete -c postman -n __postman_no_subcommand -a init -d 'Set up Postman artifacts and agent instructions in a repository.'
|
|
27
28
|
complete -c postman -n __postman_no_subcommand -a skills -d 'Check and update the agent skills in this repository.'
|
|
28
29
|
complete -c postman -n __postman_no_subcommand -a collection -d 'Run and test your Postman collections directly from the command line.'
|
|
29
|
-
complete -c postman -n __postman_no_subcommand -a environment -d 'Work with local Postman environments from the command line.'
|
|
30
|
+
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.'
|
|
30
31
|
complete -c postman -n __postman_no_subcommand -a globals -d 'Work with local Postman globals from the command line.'
|
|
31
32
|
complete -c postman -n __postman_no_subcommand -a api -d 'Publish and test your APIs directly from the command line'
|
|
32
33
|
complete -c postman -n __postman_no_subcommand -a runner -d 'Run runners on your own environments for monitoring your APIs'
|
|
@@ -44,9 +45,11 @@ complete -c postman -n __postman_no_subcommand -a application -d 'Application-le
|
|
|
44
45
|
complete -c postman -n __postman_no_subcommand -a app -d 'Alias for application'
|
|
45
46
|
complete -c postman -n __postman_no_subcommand -a simulate -d 'Start mock servers with simulated failure scenarios.'
|
|
46
47
|
complete -c postman -n __postman_no_subcommand -a context -d '[Beta] Get API context for AI coding agents directly from the command line.'
|
|
48
|
+
complete -c postman -n __postman_no_subcommand -a context-graph -d 'Ask natural-language questions about your team\'s Context Graph.'
|
|
47
49
|
complete -c postman -n __postman_no_subcommand -a search -d 'Search for Postman element types (requests, collections, workspaces, and more).'
|
|
48
50
|
complete -c postman -n __postman_no_subcommand -a webhook -d 'Create and manage Postman webhooks.'
|
|
49
51
|
complete -c postman -n __postman_no_subcommand -a dataset -d 'Work with Postman datasets in local YAML files or the cloud.'
|
|
52
|
+
complete -c postman -n __postman_no_subcommand -a dependency -d 'Manage workspace dependencies (Postman entities reused from other workspaces).'
|
|
50
53
|
|
|
51
54
|
# ---------- login ----------
|
|
52
55
|
complete -c postman -n '__fish_seen_subcommand_from login' -l alias -d 'Specify the alias of the API key to fetch your resources using it. (This option is discontinued and will be removed in a future release.)' -x
|
|
@@ -55,6 +58,11 @@ complete -c postman -n '__fish_seen_subcommand_from login' -l region -d 'Specify
|
|
|
55
58
|
complete -c postman -n '__fish_seen_subcommand_from login' -l verbose -d 'Show detailed error information'
|
|
56
59
|
complete -c postman -n '__fish_seen_subcommand_from login' -s h -l help -d 'display help for command'
|
|
57
60
|
|
|
61
|
+
# ---------- signup ----------
|
|
62
|
+
complete -c postman -n '__fish_seen_subcommand_from signup' -l browser -d 'Open a browser to sign up and sign this CLI in, instead of printing a URL.'
|
|
63
|
+
complete -c postman -n '__fish_seen_subcommand_from signup' -l json -d 'Print the sign-up details as machine-readable JSON.'
|
|
64
|
+
complete -c postman -n '__fish_seen_subcommand_from signup' -s h -l help -d 'display help for command'
|
|
65
|
+
|
|
58
66
|
# ---------- logout ----------
|
|
59
67
|
complete -c postman -n '__fish_seen_subcommand_from logout' -l alias -d 'Specify the alias of the API key to fetch your resources using it. (This option is discontinued and will be removed in a future release.)' -x
|
|
60
68
|
complete -c postman -n '__fish_seen_subcommand_from logout' -s h -l help -d 'display help for command'
|
|
@@ -164,8 +172,45 @@ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_
|
|
|
164
172
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -r -k -a '(__fish_complete_suffix .json)'
|
|
165
173
|
|
|
166
174
|
# ---------- environment ----------
|
|
167
|
-
complete -c postman -n '__postman_using_subcommand environment lint' -a
|
|
175
|
+
complete -c postman -n '__postman_using_subcommand environment list get var lint' -a list -d 'List environments in a Postman workspace.'
|
|
176
|
+
complete -c postman -n '__postman_using_subcommand environment list get var lint' -a get -d 'Read an environment by ID or local environment file path.'
|
|
177
|
+
complete -c postman -n '__postman_using_subcommand environment list get var lint' -a var -d 'Read and update environment variables.'
|
|
178
|
+
complete -c postman -n '__postman_using_subcommand environment list get var lint' -a lint -d 'Run linting on a local Postman environment at the given file or directory path.'
|
|
168
179
|
complete -c postman -n '__fish_seen_subcommand_from environment' -s h -l help -d 'display help for command'
|
|
180
|
+
# ---------- environment list ----------
|
|
181
|
+
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
|
|
182
|
+
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
|
|
183
|
+
complete -c postman -n '__fish_seen_subcommand_from environment; and __fish_seen_subcommand_from list' -l verbose -d 'Verbose output'
|
|
184
|
+
complete -c postman -n '__fish_seen_subcommand_from environment; and __fish_seen_subcommand_from list' -l json -d 'JSON output'
|
|
185
|
+
complete -c postman -n '__fish_seen_subcommand_from environment; and __fish_seen_subcommand_from list' -s h -l help -d 'display help for command'
|
|
186
|
+
# ---------- environment get ----------
|
|
187
|
+
complete -c postman -n '__fish_seen_subcommand_from environment; and __fish_seen_subcommand_from get' -l verbose -d 'Verbose output'
|
|
188
|
+
complete -c postman -n '__fish_seen_subcommand_from environment; and __fish_seen_subcommand_from get' -l json -d 'JSON output'
|
|
189
|
+
complete -c postman -n '__fish_seen_subcommand_from environment; and __fish_seen_subcommand_from get' -l show-secrets -d 'Show secret variable values in output'
|
|
190
|
+
complete -c postman -n '__fish_seen_subcommand_from environment; and __fish_seen_subcommand_from get' -s h -l help -d 'display help for command'
|
|
191
|
+
complete -c postman -n '__fish_seen_subcommand_from environment; and __fish_seen_subcommand_from get' -r -k -a '(__fish_complete_suffix .json)'
|
|
192
|
+
# ---------- environment var ----------
|
|
193
|
+
complete -c postman -n '__postman_using_subcommand var set get unset' -a set -d 'Set one variable in an environment.'
|
|
194
|
+
complete -c postman -n '__postman_using_subcommand var set get unset' -a get -d 'Read one variable value from an environment.'
|
|
195
|
+
complete -c postman -n '__postman_using_subcommand var set get unset' -a unset -d 'Remove one variable from an environment.'
|
|
196
|
+
complete -c postman -n '__fish_seen_subcommand_from environment; and __fish_seen_subcommand_from var' -s h -l help -d 'display help for command'
|
|
197
|
+
# ---------- environment var set ----------
|
|
198
|
+
complete -c postman -n '__fish_seen_subcommand_from environment; and __fish_seen_subcommand_from var; and __fish_seen_subcommand_from set' -s e -l environment -d 'Cloud Environment ID or local environment file path.' -r
|
|
199
|
+
complete -c postman -n '__fish_seen_subcommand_from environment; and __fish_seen_subcommand_from var; and __fish_seen_subcommand_from set' -l verbose -d 'Verbose output'
|
|
200
|
+
complete -c postman -n '__fish_seen_subcommand_from environment; and __fish_seen_subcommand_from var; and __fish_seen_subcommand_from set' -l json -d 'JSON output'
|
|
201
|
+
complete -c postman -n '__fish_seen_subcommand_from environment; and __fish_seen_subcommand_from var; and __fish_seen_subcommand_from set' -s h -l help -d 'display help for command'
|
|
202
|
+
# ---------- environment var get ----------
|
|
203
|
+
complete -c postman -n '__fish_seen_subcommand_from environment; and __fish_seen_subcommand_from var; and __fish_seen_subcommand_from get' -s e -l environment -d 'Cloud Environment ID or local environment file path.' -r
|
|
204
|
+
complete -c postman -n '__fish_seen_subcommand_from environment; and __fish_seen_subcommand_from var; and __fish_seen_subcommand_from get' -l verbose -d 'Verbose output'
|
|
205
|
+
complete -c postman -n '__fish_seen_subcommand_from environment; and __fish_seen_subcommand_from var; and __fish_seen_subcommand_from get' -l json -d 'JSON output'
|
|
206
|
+
complete -c postman -n '__fish_seen_subcommand_from environment; and __fish_seen_subcommand_from var; and __fish_seen_subcommand_from get' -s h -l help -d 'display help for command'
|
|
207
|
+
complete -c postman -n '__fish_seen_subcommand_from environment; and __fish_seen_subcommand_from var; and __fish_seen_subcommand_from get' -r -k -a '(__fish_complete_suffix .json)'
|
|
208
|
+
# ---------- environment var unset ----------
|
|
209
|
+
complete -c postman -n '__fish_seen_subcommand_from environment; and __fish_seen_subcommand_from var; and __fish_seen_subcommand_from unset' -s e -l environment -d 'Cloud Environment ID or local environment file path.' -r
|
|
210
|
+
complete -c postman -n '__fish_seen_subcommand_from environment; and __fish_seen_subcommand_from var; and __fish_seen_subcommand_from unset' -l verbose -d 'Verbose output'
|
|
211
|
+
complete -c postman -n '__fish_seen_subcommand_from environment; and __fish_seen_subcommand_from var; and __fish_seen_subcommand_from unset' -l json -d 'JSON output'
|
|
212
|
+
complete -c postman -n '__fish_seen_subcommand_from environment; and __fish_seen_subcommand_from var; and __fish_seen_subcommand_from unset' -s h -l help -d 'display help for command'
|
|
213
|
+
complete -c postman -n '__fish_seen_subcommand_from environment; and __fish_seen_subcommand_from var; and __fish_seen_subcommand_from unset' -r -k -a '(__fish_complete_suffix .json)'
|
|
169
214
|
# ---------- environment lint ----------
|
|
170
215
|
complete -c postman -n '__fish_seen_subcommand_from environment; and __fish_seen_subcommand_from lint' -s f -l fail-severity -d 'Exit with failure if diagnostics at this level or above are present. [choices: "error", "warning"] (default: "error")' -x
|
|
171
216
|
complete -c postman -n '__fish_seen_subcommand_from environment; and __fish_seen_subcommand_from lint' -s o -l output -d 'Output format: cli (human-readable), table, json, or csv. (default: "cli")' -x
|
|
@@ -217,8 +262,10 @@ complete -c postman -n '__fish_seen_subcommand_from runner; and __fish_seen_subc
|
|
|
217
262
|
complete -c postman -n '__fish_seen_subcommand_from runner; and __fish_seen_subcommand_from start' -s h -l help -d 'display help for command'
|
|
218
263
|
|
|
219
264
|
# ---------- spec ----------
|
|
220
|
-
complete -c postman -n '__postman_using_subcommand spec lint ai-readiness' -a lint -d 'Run linting on the given specification by ID or local file path.'
|
|
221
|
-
complete -c postman -n '__postman_using_subcommand spec lint ai-readiness' -a ai-readiness -d 'Score an OpenAPI specification for AI readiness by ID or local file path.'
|
|
265
|
+
complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get' -a lint -d 'Run linting on the given specification by ID or local file path.'
|
|
266
|
+
complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get' -a ai-readiness -d 'Score an OpenAPI specification for AI readiness by ID or local file path.'
|
|
267
|
+
complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get' -a list -d 'List local spec files under a path, or (no path) a workspace\'s cloud specs.'
|
|
268
|
+
complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get' -a get -d 'Read a spec definition, including every file of a multi-file spec.'
|
|
222
269
|
complete -c postman -n '__fish_seen_subcommand_from spec' -s h -l help -d 'display help for command'
|
|
223
270
|
# ---------- spec lint ----------
|
|
224
271
|
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
|
|
@@ -231,6 +278,16 @@ complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcom
|
|
|
231
278
|
complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from ai-readiness' -s o -l output -d 'Output format for the results. [choices: "cli", "json", "html"]' -x
|
|
232
279
|
complete -c postman -n '__fish_seen_subcommand_from spec; 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
|
|
233
280
|
complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from ai-readiness' -s h -l help -d 'display help for command'
|
|
281
|
+
# ---------- spec list ----------
|
|
282
|
+
complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from list' -s w -l workspace -d 'Workspace ID (defaults to .postman/resources.yaml binding)' -x
|
|
283
|
+
complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from list' -l api-key -d 'Postman API key' -r
|
|
284
|
+
complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from list' -l json -d 'Output as JSON'
|
|
285
|
+
complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from list' -s h -l help -d 'display help for command'
|
|
286
|
+
complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from list' -r -k -a '(__fish_complete_suffix .json)'
|
|
287
|
+
# ---------- spec get ----------
|
|
288
|
+
complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from get' -l api-key -d 'Postman API key' -r
|
|
289
|
+
complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from get' -l json -d 'Output as JSON (full spec definition)'
|
|
290
|
+
complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from get' -s h -l help -d 'display help for command'
|
|
234
291
|
|
|
235
292
|
# ---------- monitor ----------
|
|
236
293
|
complete -c postman -n '__postman_using_subcommand monitor run' -a run -d 'Invoke a monitor run and display results.'
|
|
@@ -308,7 +365,7 @@ complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen
|
|
|
308
365
|
complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -l dataset-view-id -d 'Dataset view to execute for iteration data (requires --dataset-id)' -x
|
|
309
366
|
complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -l dataset-distribution -d 'How rows map to VUs: round-robin (default), fixed, random' -x
|
|
310
367
|
complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -l postman-api-key -d 'API Key used to load the resources from the Postman API (Only supported in the US region, use \'postman login --region\' to authenticate instead)' -x
|
|
311
|
-
complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -l runner -d 'Runner to execute the performance test on
|
|
368
|
+
complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -l runner -d 'Runner to execute the performance test on: local, postman-cloud, or postman-cloud-static-ip (egress from your account region\'s static-IP cluster) (default: local)' -x
|
|
312
369
|
complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -l pass-if -d 'Pass condition in format: function(metric, value). Functions: less_than, greater_than, less_than_eq, greater_than_eq. Metrics: avg, p90, p95, p99, error_rate, rps. Example: less_than(p95, 500) or less_than(error_rate, 5)' -x
|
|
313
370
|
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
|
|
314
371
|
complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -s h -l help -d 'display help for command'
|
|
@@ -524,7 +581,7 @@ complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcomm
|
|
|
524
581
|
complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcommand_from connections; and __fish_seen_subcommand_from delete' -s h -l help -d 'display help for command'
|
|
525
582
|
|
|
526
583
|
# ---------- mock ----------
|
|
527
|
-
complete -c postman -n '__postman_using_subcommand mock generate run deploy get list log delete' -a generate -d 'Generate a runnable mock from a Postman collection (v2.0/v2.1/v3 file, or a git-native v3 collection directory) or an OpenAPI 3.0/3.1 spec file. The source type is auto-detected. Omit the source to scaffold a sample mock
|
|
584
|
+
complete -c postman -n '__postman_using_subcommand mock generate run deploy get list log delete' -a generate -d 'Generate a runnable mock from a Postman collection (v2.0/v2.1/v3 file, or a git-native v3 collection directory) or an OpenAPI 3.0/3.1 spec file. The source type is auto-detected. Omit the source to scaffold a sample shopping-cart mock (POST /cart/items, GET /cart, POST /checkout). Writes a local mock by default, or a cloud mock with --workspace.'
|
|
528
585
|
complete -c postman -n '__postman_using_subcommand mock generate run deploy get list log delete' -a run -d 'Start a local mock server from a cloud mock id (fetched and run locally), a manifest file (JSON or YAML), a mock directory (postman/mocks/<slug>), or a .js handler.'
|
|
529
586
|
complete -c postman -n '__postman_using_subcommand mock generate run deploy get list log delete' -a deploy -d 'Deploy a cloud mock into a mock server.'
|
|
530
587
|
complete -c postman -n '__postman_using_subcommand mock generate run deploy get list log delete' -a get -d 'Show a mock\'s details: a cloud mock by id, or a local mock by path.'
|
|
@@ -682,6 +739,24 @@ complete -c postman -n '__fish_seen_subcommand_from context; and __fish_seen_sub
|
|
|
682
739
|
complete -c postman -n '__fish_seen_subcommand_from context; and __fish_seen_subcommand_from environment; and __fish_seen_subcommand_from get' -s e -l environment-id -d 'Environment ID' -x
|
|
683
740
|
complete -c postman -n '__fish_seen_subcommand_from context; and __fish_seen_subcommand_from environment; and __fish_seen_subcommand_from get' -s h -l help -d 'display help for command'
|
|
684
741
|
|
|
742
|
+
# ---------- context-graph ----------
|
|
743
|
+
complete -c postman -n '__postman_using_subcommand context-graph ask status' -a ask -d 'Ask a natural-language question about your team\'s Context Graph.'
|
|
744
|
+
complete -c postman -n '__postman_using_subcommand context-graph ask status' -a status -d 'Check an ask submitted by `ask`, without blocking. Prints the answer when ready.'
|
|
745
|
+
complete -c postman -n '__fish_seen_subcommand_from context-graph' -s h -l help -d 'display help for command'
|
|
746
|
+
# ---------- context-graph ask ----------
|
|
747
|
+
complete -c postman -n '__fish_seen_subcommand_from context-graph; and __fish_seen_subcommand_from ask' -l wait -d 'Block until the answer arrives, then print it'
|
|
748
|
+
complete -c postman -n '__fish_seen_subcommand_from context-graph; and __fish_seen_subcommand_from ask' -l api-key -d 'Postman API key (falls back to POSTMAN_API_KEY, then a `postman login` session)' -r
|
|
749
|
+
complete -c postman -n '__fish_seen_subcommand_from context-graph; and __fish_seen_subcommand_from ask' -l json -d 'Output the ask record as JSON'
|
|
750
|
+
complete -c postman -n '__fish_seen_subcommand_from context-graph; and __fish_seen_subcommand_from ask' -l no-include-answer -d 'Do not ask the service to include the answer inline'
|
|
751
|
+
complete -c postman -n '__fish_seen_subcommand_from context-graph; and __fish_seen_subcommand_from ask' -l max-steps -d 'Cap the reasoning steps the service may take (its default applies when omitted)' -x
|
|
752
|
+
complete -c postman -n '__fish_seen_subcommand_from context-graph; and __fish_seen_subcommand_from ask' -l interval -d 'With --wait, seconds between polls (default: 2)' -x
|
|
753
|
+
complete -c postman -n '__fish_seen_subcommand_from context-graph; and __fish_seen_subcommand_from ask' -l timeout -d 'With --wait, seconds to wait before giving up (default: 300)' -x
|
|
754
|
+
complete -c postman -n '__fish_seen_subcommand_from context-graph; and __fish_seen_subcommand_from ask' -s h -l help -d 'display help for command'
|
|
755
|
+
# ---------- context-graph status ----------
|
|
756
|
+
complete -c postman -n '__fish_seen_subcommand_from context-graph; and __fish_seen_subcommand_from status' -l api-key -d 'Postman API key (falls back to POSTMAN_API_KEY, then a `postman login` session)' -r
|
|
757
|
+
complete -c postman -n '__fish_seen_subcommand_from context-graph; and __fish_seen_subcommand_from status' -l json -d 'Output the ask record as JSON'
|
|
758
|
+
complete -c postman -n '__fish_seen_subcommand_from context-graph; and __fish_seen_subcommand_from status' -s h -l help -d 'display help for command'
|
|
759
|
+
|
|
685
760
|
# ---------- search ----------
|
|
686
761
|
complete -c postman -n '__postman_using_subcommand search requests collections workspaces flows specs mocks environments documents' -a requests -d 'Search for requests by name or keyword.'
|
|
687
762
|
complete -c postman -n '__postman_using_subcommand search requests collections workspaces flows specs mocks environments documents' -a collections -d 'Search for collections by name or keyword.'
|
|
@@ -805,6 +880,7 @@ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_sub
|
|
|
805
880
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from get' -s h -l help -d 'display help for command'
|
|
806
881
|
# ---------- dataset query ----------
|
|
807
882
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from query' -s q -l query -d 'SQL query to execute (e.g. "SELECT * FROM source_users LIMIT 10")' -x
|
|
883
|
+
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from query' -s s -l source -d 'Execute directly against a database datasource; without --source, use federated SQLite' -x
|
|
808
884
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from query' -s p -l param -d 'Bind values to $1, $2, ... in order; pass multiple values after -p or repeat -p' -x
|
|
809
885
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from query' -l api-key -d 'Postman API key (defaults to the `postman login` session)' -r
|
|
810
886
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from query' -l json -d 'Output rows as JSON instead of a table'
|
|
@@ -936,3 +1012,12 @@ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_sub
|
|
|
936
1012
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from update' -s q -l query -d 'New SQL query' -x
|
|
937
1013
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from update' -l api-key -d 'Postman API key (defaults to the `postman login` session)' -r
|
|
938
1014
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from update' -s h -l help -d 'display help for command'
|
|
1015
|
+
|
|
1016
|
+
# ---------- dependency ----------
|
|
1017
|
+
complete -c postman -n '__postman_using_subcommand dependency add' -a add -d 'Add a Postman collection, environment, or mock as a workspace dependency.'
|
|
1018
|
+
complete -c postman -n '__fish_seen_subcommand_from dependency' -s h -l help -d 'display help for command'
|
|
1019
|
+
# ---------- dependency add ----------
|
|
1020
|
+
complete -c postman -n '__fish_seen_subcommand_from dependency; and __fish_seen_subcommand_from add' -s w -l workspace -d 'Workspace id to resolve a name in (defaults to the current workspace).' -x
|
|
1021
|
+
complete -c postman -n '__fish_seen_subcommand_from dependency; and __fish_seen_subcommand_from add' -s y -l yes -d 'Skip all confirmation prompts.'
|
|
1022
|
+
complete -c postman -n '__fish_seen_subcommand_from dependency; and __fish_seen_subcommand_from add' -l json -d 'Output the result as JSON.'
|
|
1023
|
+
complete -c postman -n '__fish_seen_subcommand_from dependency; and __fish_seen_subcommand_from add' -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.57.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
|
|
@@ -21,6 +21,7 @@ _postman() {
|
|
|
21
21
|
args)
|
|
22
22
|
case $words[1] in
|
|
23
23
|
login) _postman_login ;;
|
|
24
|
+
signup) _postman_signup ;;
|
|
24
25
|
logout) _postman_logout ;;
|
|
25
26
|
init) _postman_init ;;
|
|
26
27
|
skills) _postman_skills ;;
|
|
@@ -40,9 +41,11 @@ _postman() {
|
|
|
40
41
|
application|app) _postman_application ;;
|
|
41
42
|
simulate) _postman_simulate ;;
|
|
42
43
|
context) _postman_context ;;
|
|
44
|
+
context-graph) _postman_context_graph ;;
|
|
43
45
|
search) _postman_search ;;
|
|
44
46
|
webhook) _postman_webhook ;;
|
|
45
47
|
dataset) _postman_dataset ;;
|
|
48
|
+
dependency) _postman_dependency ;;
|
|
46
49
|
esac
|
|
47
50
|
;;
|
|
48
51
|
esac
|
|
@@ -52,11 +55,12 @@ _postman_commands() {
|
|
|
52
55
|
local -a commands
|
|
53
56
|
commands=(
|
|
54
57
|
'login:Authenticate with Postman to access your resources.'
|
|
58
|
+
'signup:Sign up to keep the work you created as a guest (claims your guest workspace). By default prints a single-use sign-up URL to open in a browser; --browser signs up in a browser and signs this CLI in.'
|
|
55
59
|
'logout:Delete the stored Postman API key.'
|
|
56
60
|
'init:Set up Postman artifacts and agent instructions in a repository.'
|
|
57
61
|
'skills:Check and update the agent skills in this repository.'
|
|
58
62
|
'collection:Run and test your Postman collections directly from the command line.'
|
|
59
|
-
'environment:Work with local Postman environments from the command line.'
|
|
63
|
+
'environment:Work with local Postman environments from the command line. Also read cloud environments by ID.'
|
|
60
64
|
'globals:Work with local Postman globals from the command line.'
|
|
61
65
|
'api:Publish and test your APIs directly from the command line'
|
|
62
66
|
'runner:Run runners on your own environments for monitoring your APIs'
|
|
@@ -74,9 +78,11 @@ _postman_commands() {
|
|
|
74
78
|
'app:Alias for application'
|
|
75
79
|
'simulate:Start mock servers with simulated failure scenarios.'
|
|
76
80
|
'context:\[Beta\] Get API context for AI coding agents directly from the command line.'
|
|
81
|
+
'context-graph:Ask natural-language questions about your team'\''s Context Graph.'
|
|
77
82
|
'search:Search for Postman element types (requests, collections, workspaces, and more).'
|
|
78
83
|
'webhook:Create and manage Postman webhooks.'
|
|
79
84
|
'dataset:Work with Postman datasets in local YAML files or the cloud.'
|
|
85
|
+
'dependency:Manage workspace dependencies (Postman entities reused from other workspaces).'
|
|
80
86
|
)
|
|
81
87
|
_describe -t commands 'postman command' commands
|
|
82
88
|
}
|
|
@@ -90,6 +96,13 @@ _postman_login() {
|
|
|
90
96
|
'(-h --help)'{-h,--help}'[display help for command]'
|
|
91
97
|
}
|
|
92
98
|
|
|
99
|
+
_postman_signup() {
|
|
100
|
+
_arguments \
|
|
101
|
+
'--browser[Open a browser to sign up and sign this CLI in, instead of printing a URL.]' \
|
|
102
|
+
'--json[Print the sign-up details as machine-readable JSON.]' \
|
|
103
|
+
'(-h --help)'{-h,--help}'[display help for command]'
|
|
104
|
+
}
|
|
105
|
+
|
|
93
106
|
_postman_logout() {
|
|
94
107
|
_arguments \
|
|
95
108
|
'--alias[Specify the alias of the API key to fetch your resources using it. (This option is discontinued and will be removed in a future release.)]:alias' \
|
|
@@ -274,6 +287,9 @@ _postman_environment() {
|
|
|
274
287
|
case $state in
|
|
275
288
|
args)
|
|
276
289
|
case $words[1] in
|
|
290
|
+
list) _postman_environment_list ;;
|
|
291
|
+
get) _postman_environment_get ;;
|
|
292
|
+
var) _postman_environment_var ;;
|
|
277
293
|
lint) _postman_environment_lint ;;
|
|
278
294
|
esac
|
|
279
295
|
;;
|
|
@@ -283,11 +299,88 @@ _postman_environment() {
|
|
|
283
299
|
_postman_environment_commands() {
|
|
284
300
|
local -a sub
|
|
285
301
|
sub=(
|
|
302
|
+
'list:List environments in a Postman workspace.'
|
|
303
|
+
'get:Read an environment by ID or local environment file path.'
|
|
304
|
+
'var:Read and update environment variables.'
|
|
286
305
|
'lint:Run linting on a local Postman environment at the given file or directory path.'
|
|
287
306
|
)
|
|
288
307
|
_describe -t commands 'environment command' sub
|
|
289
308
|
}
|
|
290
309
|
|
|
310
|
+
_postman_environment_list() {
|
|
311
|
+
_arguments \
|
|
312
|
+
'(-w --workspace)'{-w,--workspace}'[Workspace ID to list environments from.]:workspaceId' \
|
|
313
|
+
'(-f --filter)'{-f,--filter}'[Filter environments by name.]:name' \
|
|
314
|
+
'--verbose[Verbose output]' \
|
|
315
|
+
'--json[JSON output]' \
|
|
316
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
317
|
+
'*:workspacePath:'
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
_postman_environment_get() {
|
|
321
|
+
_arguments \
|
|
322
|
+
'--verbose[Verbose output]' \
|
|
323
|
+
'--json[JSON output]' \
|
|
324
|
+
'--show-secrets[Show secret variable values in output]' \
|
|
325
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
326
|
+
'*:environment:_files -g "*.json"'
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
_postman_environment_var() {
|
|
330
|
+
local context state state_descr line
|
|
331
|
+
typeset -A opt_args
|
|
332
|
+
_arguments -C \
|
|
333
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
334
|
+
'1: :_postman_environment_var_commands' \
|
|
335
|
+
'*::arg:->args'
|
|
336
|
+
case $state in
|
|
337
|
+
args)
|
|
338
|
+
case $words[1] in
|
|
339
|
+
set) _postman_environment_var_set ;;
|
|
340
|
+
get) _postman_environment_var_get ;;
|
|
341
|
+
unset) _postman_environment_var_unset ;;
|
|
342
|
+
esac
|
|
343
|
+
;;
|
|
344
|
+
esac
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
_postman_environment_var_commands() {
|
|
348
|
+
local -a sub
|
|
349
|
+
sub=(
|
|
350
|
+
'set:Set one variable in an environment.'
|
|
351
|
+
'get:Read one variable value from an environment.'
|
|
352
|
+
'unset:Remove one variable from an environment.'
|
|
353
|
+
)
|
|
354
|
+
_describe -t commands 'var command' sub
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
_postman_environment_var_set() {
|
|
358
|
+
_arguments \
|
|
359
|
+
'(-e --environment)'{-e,--environment}'[Cloud Environment ID or local environment file path.]:environment:_files -g "*.json"' \
|
|
360
|
+
'--verbose[Verbose output]' \
|
|
361
|
+
'--json[JSON output]' \
|
|
362
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
363
|
+
'*:value:'
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
_postman_environment_var_get() {
|
|
367
|
+
_arguments \
|
|
368
|
+
'(-e --environment)'{-e,--environment}'[Cloud Environment ID or local environment file path.]:environment:_files -g "*.json"' \
|
|
369
|
+
'--verbose[Verbose output]' \
|
|
370
|
+
'--json[JSON output]' \
|
|
371
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
372
|
+
'*:key:_files -g "*.json"'
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
_postman_environment_var_unset() {
|
|
376
|
+
_arguments \
|
|
377
|
+
'(-e --environment)'{-e,--environment}'[Cloud Environment ID or local environment file path.]:environment:_files -g "*.json"' \
|
|
378
|
+
'--verbose[Verbose output]' \
|
|
379
|
+
'--json[JSON output]' \
|
|
380
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
381
|
+
'*:key:_files -g "*.json"'
|
|
382
|
+
}
|
|
383
|
+
|
|
291
384
|
_postman_environment_lint() {
|
|
292
385
|
_arguments \
|
|
293
386
|
'(-f --fail-severity)'{-f,--fail-severity}'[Exit with failure if diagnostics at this level or above are present. \[choices\: "error", "warning"\] (default\: "error")]:value' \
|
|
@@ -427,6 +520,8 @@ _postman_spec() {
|
|
|
427
520
|
case $words[1] in
|
|
428
521
|
lint) _postman_spec_lint ;;
|
|
429
522
|
ai-readiness) _postman_spec_ai_readiness ;;
|
|
523
|
+
list) _postman_spec_list ;;
|
|
524
|
+
get) _postman_spec_get ;;
|
|
430
525
|
esac
|
|
431
526
|
;;
|
|
432
527
|
esac
|
|
@@ -437,6 +532,8 @@ _postman_spec_commands() {
|
|
|
437
532
|
sub=(
|
|
438
533
|
'lint:Run linting on the given specification by ID or local file path.'
|
|
439
534
|
'ai-readiness:Score an OpenAPI specification for AI readiness by ID or local file path.'
|
|
535
|
+
'list:List local spec files under a path, or (no path) a workspace'\''s cloud specs.'
|
|
536
|
+
'get:Read a spec definition, including every file of a multi-file spec.'
|
|
440
537
|
)
|
|
441
538
|
_describe -t commands 'spec command' sub
|
|
442
539
|
}
|
|
@@ -460,6 +557,23 @@ _postman_spec_ai_readiness() {
|
|
|
460
557
|
'*:spec:'
|
|
461
558
|
}
|
|
462
559
|
|
|
560
|
+
_postman_spec_list() {
|
|
561
|
+
_arguments \
|
|
562
|
+
'(-w --workspace)'{-w,--workspace}'[Workspace ID (defaults to .postman/resources.yaml binding)]:id' \
|
|
563
|
+
'--api-key[Postman API key]:key:_files -g "*.(pem|crt|key)"' \
|
|
564
|
+
'--json[Output as JSON]' \
|
|
565
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
566
|
+
'*:pathOrDir:_files -g "*.json"'
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
_postman_spec_get() {
|
|
570
|
+
_arguments \
|
|
571
|
+
'--api-key[Postman API key]:key:_files -g "*.(pem|crt|key)"' \
|
|
572
|
+
'--json[Output as JSON (full spec definition)]' \
|
|
573
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
574
|
+
'*:spec...:'
|
|
575
|
+
}
|
|
576
|
+
|
|
463
577
|
_postman_monitor() {
|
|
464
578
|
local context state state_descr line
|
|
465
579
|
typeset -A opt_args
|
|
@@ -630,7 +744,7 @@ _postman_performance_run() {
|
|
|
630
744
|
'--dataset-view-id[Dataset view to execute for iteration data (requires --dataset-id)]:id' \
|
|
631
745
|
'--dataset-distribution[How rows map to VUs\: round-robin (default), fixed, random]:strategy' \
|
|
632
746
|
'--postman-api-key[API Key used to load the resources from the Postman API (Only supported in the US region, use '\''postman login --region'\'' to authenticate instead)]:apiKey' \
|
|
633
|
-
'--runner[Runner to execute the performance test on
|
|
747
|
+
'--runner[Runner to execute the performance test on\: local, postman-cloud, or postman-cloud-static-ip (egress from your account region'\''s static-IP cluster) (default\: local)]:runner' \
|
|
634
748
|
'--pass-if[Pass condition in format\: function(metric, value). Functions\: less_than, greater_than, less_than_eq, greater_than_eq. Metrics\: avg, p90, p95, p99, error_rate, rps. Example\: less_than(p95, 500) or less_than(error_rate, 5)]:condition' \
|
|
635
749
|
'--use-mock[Redirect a variable/host to a local code mock or cloud Mock Server (repeatable). Format\: "<{{var}}|host> mock|mock-server\:<path|id> \[scenario\]" (default\: \[\])]:mapping' \
|
|
636
750
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
@@ -1002,7 +1116,7 @@ _postman_mock() {
|
|
|
1002
1116
|
_postman_mock_commands() {
|
|
1003
1117
|
local -a sub
|
|
1004
1118
|
sub=(
|
|
1005
|
-
'generate:Generate a runnable mock from a Postman collection (v2.0/v2.1/v3 file, or a git-native v3 collection directory) or an OpenAPI 3.0/3.1 spec file. The source type is auto-detected. Omit the source to scaffold a sample mock
|
|
1119
|
+
'generate:Generate a runnable mock from a Postman collection (v2.0/v2.1/v3 file, or a git-native v3 collection directory) or an OpenAPI 3.0/3.1 spec file. The source type is auto-detected. Omit the source to scaffold a sample shopping-cart mock (POST /cart/items, GET /cart, POST /checkout). Writes a local mock by default, or a cloud mock with --workspace.'
|
|
1006
1120
|
'run:Start a local mock server from a cloud mock id (fetched and run locally), a manifest file (JSON or YAML), a mock directory (postman/mocks/<slug>), or a .js handler.'
|
|
1007
1121
|
'deploy:Deploy a cloud mock into a mock server.'
|
|
1008
1122
|
'get:Show a mock'\''s details\: a cloud mock by id, or a local mock by path.'
|
|
@@ -1416,6 +1530,53 @@ _postman_context_environment_get() {
|
|
|
1416
1530
|
'(-h --help)'{-h,--help}'[display help for command]'
|
|
1417
1531
|
}
|
|
1418
1532
|
|
|
1533
|
+
_postman_context_graph() {
|
|
1534
|
+
local context state state_descr line
|
|
1535
|
+
typeset -A opt_args
|
|
1536
|
+
_arguments -C \
|
|
1537
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1538
|
+
'1: :_postman_context_graph_commands' \
|
|
1539
|
+
'*::arg:->args'
|
|
1540
|
+
case $state in
|
|
1541
|
+
args)
|
|
1542
|
+
case $words[1] in
|
|
1543
|
+
ask) _postman_context_graph_ask ;;
|
|
1544
|
+
status) _postman_context_graph_status ;;
|
|
1545
|
+
esac
|
|
1546
|
+
;;
|
|
1547
|
+
esac
|
|
1548
|
+
}
|
|
1549
|
+
|
|
1550
|
+
_postman_context_graph_commands() {
|
|
1551
|
+
local -a sub
|
|
1552
|
+
sub=(
|
|
1553
|
+
'ask:Ask a natural-language question about your team'\''s Context Graph.'
|
|
1554
|
+
'status:Check an ask submitted by `ask`, without blocking. Prints the answer when ready.'
|
|
1555
|
+
)
|
|
1556
|
+
_describe -t commands 'context-graph command' sub
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
_postman_context_graph_ask() {
|
|
1560
|
+
_arguments \
|
|
1561
|
+
'--wait[Block until the answer arrives, then print it]' \
|
|
1562
|
+
'--api-key[Postman API key (falls back to POSTMAN_API_KEY, then a `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1563
|
+
'--json[Output the ask record as JSON]' \
|
|
1564
|
+
'--no-include-answer[Do not ask the service to include the answer inline]' \
|
|
1565
|
+
'--max-steps[Cap the reasoning steps the service may take (its default applies when omitted)]:count' \
|
|
1566
|
+
'--interval[With --wait, seconds between polls (default\: 2)]:seconds' \
|
|
1567
|
+
'--timeout[With --wait, seconds to wait before giving up (default\: 300)]:seconds' \
|
|
1568
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1569
|
+
'*:query:'
|
|
1570
|
+
}
|
|
1571
|
+
|
|
1572
|
+
_postman_context_graph_status() {
|
|
1573
|
+
_arguments \
|
|
1574
|
+
'--api-key[Postman API key (falls back to POSTMAN_API_KEY, then a `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1575
|
+
'--json[Output the ask record as JSON]' \
|
|
1576
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1577
|
+
'*:askId:'
|
|
1578
|
+
}
|
|
1579
|
+
|
|
1419
1580
|
_postman_search() {
|
|
1420
1581
|
local context state state_descr line
|
|
1421
1582
|
typeset -A opt_args
|
|
@@ -1747,6 +1908,7 @@ _postman_dataset_get() {
|
|
|
1747
1908
|
_postman_dataset_query() {
|
|
1748
1909
|
_arguments \
|
|
1749
1910
|
'(-q --query)'{-q,--query}'[SQL query to execute (e.g. "SELECT * FROM source_users LIMIT 10")]:sql' \
|
|
1911
|
+
'(-s --source)'{-s,--source}'[Execute directly against a database datasource; without --source, use federated SQLite]:nameOrIdOrSlug' \
|
|
1750
1912
|
'(-p --param)'{-p,--param}'[Bind values to $1, $2, ... in order; pass multiple values after -p or repeat -p]:value...' \
|
|
1751
1913
|
'--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1752
1914
|
'--json[Output rows as JSON instead of a table]' \
|
|
@@ -1970,6 +2132,39 @@ _postman_dataset_view_update() {
|
|
|
1970
2132
|
'*:viewNameOrId:'
|
|
1971
2133
|
}
|
|
1972
2134
|
|
|
2135
|
+
_postman_dependency() {
|
|
2136
|
+
local context state state_descr line
|
|
2137
|
+
typeset -A opt_args
|
|
2138
|
+
_arguments -C \
|
|
2139
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
2140
|
+
'1: :_postman_dependency_commands' \
|
|
2141
|
+
'*::arg:->args'
|
|
2142
|
+
case $state in
|
|
2143
|
+
args)
|
|
2144
|
+
case $words[1] in
|
|
2145
|
+
add) _postman_dependency_add ;;
|
|
2146
|
+
esac
|
|
2147
|
+
;;
|
|
2148
|
+
esac
|
|
2149
|
+
}
|
|
2150
|
+
|
|
2151
|
+
_postman_dependency_commands() {
|
|
2152
|
+
local -a sub
|
|
2153
|
+
sub=(
|
|
2154
|
+
'add:Add a Postman collection, environment, or mock as a workspace dependency.'
|
|
2155
|
+
)
|
|
2156
|
+
_describe -t commands 'dependency command' sub
|
|
2157
|
+
}
|
|
2158
|
+
|
|
2159
|
+
_postman_dependency_add() {
|
|
2160
|
+
_arguments \
|
|
2161
|
+
'(-w --workspace)'{-w,--workspace}'[Workspace id to resolve a name in (defaults to the current workspace).]:id' \
|
|
2162
|
+
'(-y --yes)'{-y,--yes}'[Skip all confirmation prompts.]' \
|
|
2163
|
+
'--json[Output the result as JSON.]' \
|
|
2164
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
2165
|
+
'*:nameOrId:'
|
|
2166
|
+
}
|
|
2167
|
+
|
|
1973
2168
|
# When loaded via fpath + compinit, the file body becomes the function body of
|
|
1974
2169
|
# `_postman`. In that case `funcstack[1]` is `_postman` and we must actually
|
|
1975
2170
|
# invoke the completion. When sourced directly, this is a no-op — `_postman`
|