postman-cli-completion 1.85.0 → 1.86.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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Bash completion for Postman CLI (postman v1.
|
|
1
|
+
# Bash completion for Postman CLI (postman v1.86.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
|
|
@@ -1218,13 +1218,14 @@ _postman_mock() {
|
|
|
1218
1218
|
if [[ "$cur" == -* ]]; then
|
|
1219
1219
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1220
1220
|
else
|
|
1221
|
-
COMPREPLY=( $(compgen -W "generate run push deploy get list log delete" -- "$cur") )
|
|
1221
|
+
COMPREPLY=( $(compgen -W "generate run stop push deploy get list log delete" -- "$cur") )
|
|
1222
1222
|
fi
|
|
1223
1223
|
return 0
|
|
1224
1224
|
fi
|
|
1225
1225
|
case "$subcmd" in
|
|
1226
1226
|
generate) _postman_mock_generate ;;
|
|
1227
1227
|
run) _postman_mock_run ;;
|
|
1228
|
+
stop) _postman_mock_stop ;;
|
|
1228
1229
|
push) _postman_mock_push ;;
|
|
1229
1230
|
deploy) _postman_mock_deploy ;;
|
|
1230
1231
|
get) _postman_mock_get ;;
|
|
@@ -1277,6 +1278,16 @@ _postman_mock_run() {
|
|
|
1277
1278
|
_postman_filematch '!*.@(json)' "$cur"
|
|
1278
1279
|
}
|
|
1279
1280
|
|
|
1281
|
+
_postman_mock_stop() {
|
|
1282
|
+
if [[ "$cur" == -* ]]; then
|
|
1283
|
+
COMPREPLY=( $(compgen -W "--timeout --json -h --help" -- "$cur") )
|
|
1284
|
+
return 0
|
|
1285
|
+
fi
|
|
1286
|
+
case "$prev" in
|
|
1287
|
+
esac
|
|
1288
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1280
1291
|
_postman_mock_push() {
|
|
1281
1292
|
if [[ "$cur" == -* ]]; then
|
|
1282
1293
|
COMPREPLY=( $(compgen -W "-w --workspace --api-key --json -h --help" -- "$cur") )
|
|
@@ -2814,7 +2825,7 @@ _postman_simulation() {
|
|
|
2814
2825
|
if [[ "$cur" == -* ]]; then
|
|
2815
2826
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
2816
2827
|
else
|
|
2817
|
-
COMPREPLY=( $(compgen -W "create list get run push deploy update log delete" -- "$cur") )
|
|
2828
|
+
COMPREPLY=( $(compgen -W "create list get run stop push deploy update log delete" -- "$cur") )
|
|
2818
2829
|
fi
|
|
2819
2830
|
return 0
|
|
2820
2831
|
fi
|
|
@@ -2823,6 +2834,7 @@ _postman_simulation() {
|
|
|
2823
2834
|
list) _postman_simulation_list ;;
|
|
2824
2835
|
get) _postman_simulation_get ;;
|
|
2825
2836
|
run) _postman_simulation_run ;;
|
|
2837
|
+
stop) _postman_simulation_stop ;;
|
|
2826
2838
|
push) _postman_simulation_push ;;
|
|
2827
2839
|
deploy) _postman_simulation_deploy ;;
|
|
2828
2840
|
update) _postman_simulation_update ;;
|
|
@@ -2895,6 +2907,15 @@ _postman_simulation_run() {
|
|
|
2895
2907
|
esac
|
|
2896
2908
|
}
|
|
2897
2909
|
|
|
2910
|
+
_postman_simulation_stop() {
|
|
2911
|
+
if [[ "$cur" == -* ]]; then
|
|
2912
|
+
COMPREPLY=( $(compgen -W "--timeout --json -h --help" -- "$cur") )
|
|
2913
|
+
return 0
|
|
2914
|
+
fi
|
|
2915
|
+
case "$prev" in
|
|
2916
|
+
esac
|
|
2917
|
+
}
|
|
2918
|
+
|
|
2898
2919
|
_postman_simulation_push() {
|
|
2899
2920
|
if [[ "$cur" == -* ]]; then
|
|
2900
2921
|
COMPREPLY=( $(compgen -W "-w --workspace --api-key --json -h --help" -- "$cur") )
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Fish completion for Postman CLI (postman v1.
|
|
1
|
+
# Fish completion for Postman CLI (postman v1.86.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
|
|
@@ -792,14 +792,15 @@ complete -c postman -n '__fish_seen_subcommand_from globals; and __fish_seen_sub
|
|
|
792
792
|
complete -c postman -n '__fish_seen_subcommand_from globals; and __fish_seen_subcommand_from lint' -r -k -a '(__fish_complete_suffix .json)'
|
|
793
793
|
|
|
794
794
|
# ---------- mock ----------
|
|
795
|
-
complete -c postman -n '__postman_using_subcommand mock generate run push deploy get list log delete' -a generate -d 'Generate a mock from a Postman collection, an OpenAPI file or a dataset, or a static mock from a built-in sample shopping cart (POST /cart/items, GET /cart, POST /checkout). Writes a local mock by default, or a cloud mock with --workspace. Add --deploy to also make it a live mock server.'
|
|
796
|
-
complete -c postman -n '__postman_using_subcommand mock generate run push deploy get list log delete' -a run -d 'Start a mock using its path if it lives in your repository, or its id if it lives in Postman cloud (fetched and run locally).'
|
|
797
|
-
complete -c postman -n '__postman_using_subcommand mock generate run push deploy get list log delete' -a
|
|
798
|
-
complete -c postman -n '__postman_using_subcommand mock generate run push deploy get list log delete' -a
|
|
799
|
-
complete -c postman -n '__postman_using_subcommand mock generate run push deploy get list log delete' -a
|
|
800
|
-
complete -c postman -n '__postman_using_subcommand mock generate run push deploy get list log delete' -a
|
|
801
|
-
complete -c postman -n '__postman_using_subcommand mock generate run push deploy get list log delete' -a
|
|
802
|
-
complete -c postman -n '__postman_using_subcommand mock generate run push deploy get list log delete' -a
|
|
795
|
+
complete -c postman -n '__postman_using_subcommand mock generate run stop push deploy get list log delete' -a generate -d 'Generate a mock from a Postman collection, an OpenAPI file or a dataset, or a static mock from a built-in sample shopping cart (POST /cart/items, GET /cart, POST /checkout). Writes a local mock by default, or a cloud mock with --workspace. Add --deploy to also make it a live mock server.'
|
|
796
|
+
complete -c postman -n '__postman_using_subcommand mock generate run stop push deploy get list log delete' -a run -d 'Start a mock using its path if it lives in your repository, or its id if it lives in Postman cloud (fetched and run locally).'
|
|
797
|
+
complete -c postman -n '__postman_using_subcommand mock generate run stop push deploy get list log delete' -a stop -d 'Stop a mock started with `postman mock run` on this machine, and wait until it has exited and released its port.'
|
|
798
|
+
complete -c postman -n '__postman_using_subcommand mock generate run stop 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).'
|
|
799
|
+
complete -c postman -n '__postman_using_subcommand mock generate run stop 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.'
|
|
800
|
+
complete -c postman -n '__postman_using_subcommand mock generate run stop 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.'
|
|
801
|
+
complete -c postman -n '__postman_using_subcommand mock generate run stop push deploy get list log delete' -a list -d 'List the mocks in your repository or Postman cloud workspace'
|
|
802
|
+
complete -c postman -n '__postman_using_subcommand mock generate run stop 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.'
|
|
803
|
+
complete -c postman -n '__postman_using_subcommand mock generate run stop 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.'
|
|
803
804
|
complete -c postman -n '__fish_seen_subcommand_from mock' -s h -l help -d 'display help for command'
|
|
804
805
|
# ---------- mock generate ----------
|
|
805
806
|
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -s o -l output -d 'Folder to save the mock in. Relative or absolute, e.g. ./postman/mocks/orders. Defaults to postman/mocks/<name>.' -r
|
|
@@ -835,6 +836,11 @@ complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcom
|
|
|
835
836
|
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from run' -l dataset -d 'Pass --dataset multiple times to load several .dataset.yaml files (or directories containing them). Each is made available to the mock\'s handlers as pm.datasets(<id>). (default: [])' -r
|
|
836
837
|
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from run' -s h -l help -d 'display help for command'
|
|
837
838
|
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from run' -r -k -a '(__fish_complete_suffix .json)'
|
|
839
|
+
# ---------- mock stop ----------
|
|
840
|
+
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from stop' -l timeout -d 'Seconds to wait for a graceful shutdown before force-killing the mock (default 15)' -x
|
|
841
|
+
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from stop' -l json -d 'Print the result as machine-readable data'
|
|
842
|
+
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from stop' -s h -l help -d 'display help for command'
|
|
843
|
+
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from stop' -r -k -a '(__fish_complete_suffix .json)'
|
|
838
844
|
# ---------- mock push ----------
|
|
839
845
|
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from push' -s w -l workspace -d 'Postman cloud workspace to upload to, by id (defaults to the workspace already linked to this project)' -x
|
|
840
846
|
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from push' -l api-key -d 'Postman API key (defaults to your `postman login` session)' -r
|
|
@@ -1733,15 +1739,16 @@ complete -c postman -n '__fish_seen_subcommand_from secret; and __fish_seen_subc
|
|
|
1733
1739
|
complete -c postman -n '__fish_seen_subcommand_from secret; and __fish_seen_subcommand_from list' -s h -l help -d 'display help for command'
|
|
1734
1740
|
|
|
1735
1741
|
# ---------- simulation ----------
|
|
1736
|
-
complete -c postman -n '__postman_using_subcommand simulation create list get run push deploy update log delete' -a create -d 'Create a simulation that serves several mocks behind one address. Add --deploy to also make it a live mock server.'
|
|
1737
|
-
complete -c postman -n '__postman_using_subcommand simulation create list get run push deploy update log delete' -a list -d 'List the simulations in your repository or Postman cloud workspace'
|
|
1738
|
-
complete -c postman -n '__postman_using_subcommand simulation create list get run push deploy update log delete' -a get -d 'Show a simulation\'s details using its .sim.yaml path if it lives in your repository, or its id if it lives in Postman cloud.'
|
|
1739
|
-
complete -c postman -n '__postman_using_subcommand simulation create list get run push deploy update log delete' -a run -d 'Serve a simulation\'s mocks on one local port, routing each by its routeKey. Pass a .sim.yaml path (local) or a Postman simulation id (fetched and run locally).'
|
|
1740
|
-
complete -c postman -n '__postman_using_subcommand simulation create list get run push deploy update log delete' -a
|
|
1741
|
-
complete -c postman -n '__postman_using_subcommand simulation create list get run push deploy update log delete' -a
|
|
1742
|
-
complete -c postman -n '__postman_using_subcommand simulation create list get run push deploy update log delete' -a
|
|
1743
|
-
complete -c postman -n '__postman_using_subcommand simulation create list get run push deploy update log delete' -a
|
|
1744
|
-
complete -c postman -n '__postman_using_subcommand simulation create list get run push deploy update log delete' -a
|
|
1742
|
+
complete -c postman -n '__postman_using_subcommand simulation create list get run stop push deploy update log delete' -a create -d 'Create a simulation that serves several mocks behind one address. Add --deploy to also make it a live mock server.'
|
|
1743
|
+
complete -c postman -n '__postman_using_subcommand simulation create list get run stop push deploy update log delete' -a list -d 'List the simulations in your repository or Postman cloud workspace'
|
|
1744
|
+
complete -c postman -n '__postman_using_subcommand simulation create list get run stop push deploy update log delete' -a get -d 'Show a simulation\'s details using its .sim.yaml path if it lives in your repository, or its id if it lives in Postman cloud.'
|
|
1745
|
+
complete -c postman -n '__postman_using_subcommand simulation create list get run stop push deploy update log delete' -a run -d 'Serve a simulation\'s mocks on one local port, routing each by its routeKey. Pass a .sim.yaml path (local) or a Postman simulation id (fetched and run locally).'
|
|
1746
|
+
complete -c postman -n '__postman_using_subcommand simulation create list get run stop push deploy update log delete' -a stop -d 'Stop a simulation started with `postman simulation run` on this machine, and wait until it has exited and released its port.'
|
|
1747
|
+
complete -c postman -n '__postman_using_subcommand simulation create list get run stop push deploy update log delete' -a push -d 'Upload a simulation from your repository to Postman cloud (creates it the first time, updates it after). Its member mocks are pushed too.'
|
|
1748
|
+
complete -c postman -n '__postman_using_subcommand simulation create list get run stop push deploy update log delete' -a deploy -d 'Turn a simulation in Postman cloud into a live mock server others can call over the internet.'
|
|
1749
|
+
complete -c postman -n '__postman_using_subcommand simulation create list get run stop push deploy update log delete' -a update -d 'Change a simulation in place — rename it, switch routing, add mocks, or change a member\'s address. Pass a .sim.yaml path (repository) or a Postman simulation id (cloud).'
|
|
1750
|
+
complete -c postman -n '__postman_using_subcommand simulation create list get run stop push deploy update log delete' -a log -d 'Show the requests a deployed simulation has received and the responses it sent, using its mock server id.'
|
|
1751
|
+
complete -c postman -n '__postman_using_subcommand simulation create list get run stop push deploy update log delete' -a delete -d 'Delete a simulation using its .sim.yaml path if it lives in your repository, or its id if it lives in Postman cloud. Cannot be undone.'
|
|
1745
1752
|
complete -c postman -n '__fish_seen_subcommand_from simulation' -s h -l help -d 'display help for command'
|
|
1746
1753
|
# ---------- simulation create ----------
|
|
1747
1754
|
complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from create' -s n -l name -d 'Name for the simulation' -x
|
|
@@ -1786,6 +1793,10 @@ complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_
|
|
|
1786
1793
|
complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from run' -l doctor -d 'Start the proxy, probe each available HTTP client (fetch/undici/axios/node-fetch) to confirm it honors HTTP_PROXY/HTTPS_PROXY, then exit.'
|
|
1787
1794
|
complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from run' -l lift -d 'Start this command behind the proxy with HTTP_PROXY, HTTPS_PROXY and NODE_EXTRA_CA_CERTS already set in its environment, instead of printing them for you to export by hand. Runs as a child process, so the variables reach the code making the calls rather than the CLI. The proxy lives exactly as long as the command and exits with its exit code.' -x
|
|
1788
1795
|
complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from run' -s h -l help -d 'display help for command'
|
|
1796
|
+
# ---------- simulation stop ----------
|
|
1797
|
+
complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from stop' -l timeout -d 'Seconds to wait for a graceful shutdown before force-killing the simulation (default 15)' -x
|
|
1798
|
+
complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from stop' -l json -d 'Print the result as machine-readable data'
|
|
1799
|
+
complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from stop' -s h -l help -d 'display help for command'
|
|
1789
1800
|
# ---------- simulation push ----------
|
|
1790
1801
|
complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from push' -s w -l workspace -d 'Postman cloud workspace to upload to, by id (defaults to the workspace already linked to this project)' -x
|
|
1791
1802
|
complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from push' -l api-key -d 'Postman API key (defaults to your `postman login` session)' -r
|
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.86.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
|
|
@@ -1474,6 +1474,7 @@ _postman_mock() {
|
|
|
1474
1474
|
case $words[1] in
|
|
1475
1475
|
generate) _postman_mock_generate ;;
|
|
1476
1476
|
run) _postman_mock_run ;;
|
|
1477
|
+
stop) _postman_mock_stop ;;
|
|
1477
1478
|
push) _postman_mock_push ;;
|
|
1478
1479
|
deploy) _postman_mock_deploy ;;
|
|
1479
1480
|
get) _postman_mock_get ;;
|
|
@@ -1490,6 +1491,7 @@ _postman_mock_commands() {
|
|
|
1490
1491
|
sub=(
|
|
1491
1492
|
'generate:Generate a mock from a Postman collection, an OpenAPI file or a dataset, or a static mock from a built-in sample shopping cart (POST /cart/items, GET /cart, POST /checkout). Writes a local mock by default, or a cloud mock with --workspace. Add --deploy to also make it a live mock server.'
|
|
1492
1493
|
'run:Start a mock using its path if it lives in your repository, or its id if it lives in Postman cloud (fetched and run locally).'
|
|
1494
|
+
'stop:Stop a mock started with `postman mock run` on this machine, and wait until it has exited and released its port.'
|
|
1493
1495
|
'push:Upload a mock from your repository to Postman cloud (creates it the first time, updates it after).'
|
|
1494
1496
|
'deploy:Turn a mock in Postman cloud into a live mock server others can call over the internet.'
|
|
1495
1497
|
'get:Show a mock'\''s details using its path if it lives in your repository, or its id if it lives in Postman cloud.'
|
|
@@ -1541,6 +1543,14 @@ _postman_mock_run() {
|
|
|
1541
1543
|
'*:mockIdOrPath:_files -g "*.json"'
|
|
1542
1544
|
}
|
|
1543
1545
|
|
|
1546
|
+
_postman_mock_stop() {
|
|
1547
|
+
_arguments \
|
|
1548
|
+
'--timeout[Seconds to wait for a graceful shutdown before force-killing the mock (default 15)]:seconds' \
|
|
1549
|
+
'--json[Print the result as machine-readable data]' \
|
|
1550
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1551
|
+
'*:mockIdOrPath:_files -g "*.json"'
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1544
1554
|
_postman_mock_push() {
|
|
1545
1555
|
_arguments \
|
|
1546
1556
|
'(-w --workspace)'{-w,--workspace}'[Postman cloud workspace to upload to, by id (defaults to the workspace already linked to this project)]:id' \
|
|
@@ -3402,6 +3412,7 @@ _postman_simulation() {
|
|
|
3402
3412
|
list) _postman_simulation_list ;;
|
|
3403
3413
|
get) _postman_simulation_get ;;
|
|
3404
3414
|
run) _postman_simulation_run ;;
|
|
3415
|
+
stop) _postman_simulation_stop ;;
|
|
3405
3416
|
push) _postman_simulation_push ;;
|
|
3406
3417
|
deploy) _postman_simulation_deploy ;;
|
|
3407
3418
|
update) _postman_simulation_update ;;
|
|
@@ -3419,6 +3430,7 @@ _postman_simulation_commands() {
|
|
|
3419
3430
|
'list:List the simulations in your repository or Postman cloud workspace'
|
|
3420
3431
|
'get:Show a simulation'\''s details using its .sim.yaml path if it lives in your repository, or its id if it lives in Postman cloud.'
|
|
3421
3432
|
'run:Serve a simulation'\''s mocks on one local port, routing each by its routeKey. Pass a .sim.yaml path (local) or a Postman simulation id (fetched and run locally).'
|
|
3433
|
+
'stop:Stop a simulation started with `postman simulation run` on this machine, and wait until it has exited and released its port.'
|
|
3422
3434
|
'push:Upload a simulation from your repository to Postman cloud (creates it the first time, updates it after). Its member mocks are pushed too.'
|
|
3423
3435
|
'deploy:Turn a simulation in Postman cloud into a live mock server others can call over the internet.'
|
|
3424
3436
|
'update:Change a simulation in place — rename it, switch routing, add mocks, or change a member'\''s address. Pass a .sim.yaml path (repository) or a Postman simulation id (cloud).'
|
|
@@ -3485,6 +3497,14 @@ _postman_simulation_run() {
|
|
|
3485
3497
|
'*:simIdOrPath:'
|
|
3486
3498
|
}
|
|
3487
3499
|
|
|
3500
|
+
_postman_simulation_stop() {
|
|
3501
|
+
_arguments \
|
|
3502
|
+
'--timeout[Seconds to wait for a graceful shutdown before force-killing the simulation (default 15)]:seconds' \
|
|
3503
|
+
'--json[Print the result as machine-readable data]' \
|
|
3504
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
3505
|
+
'*:simIdOrPath:'
|
|
3506
|
+
}
|
|
3507
|
+
|
|
3488
3508
|
_postman_simulation_push() {
|
|
3489
3509
|
_arguments \
|
|
3490
3510
|
'(-w --workspace)'{-w,--workspace}'[Postman cloud workspace to upload to, by id (defaults to the workspace already linked to this project)]:id' \
|