postman-cli-completion 1.60.0 → 1.62.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 +119 -35
- package/completions/fish/postman.fish +127 -69
- package/completions/zsh/_postman +179 -57
- 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.62.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 update skills collection environment globals api runner spec monitor workspace ws performance flows fl request sdk mock application app simulate
|
|
25
|
+
local top_commands="login signup logout init whoami feedback update skills collection environment globals api runner spec monitor workspace ws team performance flows fl request sdk mock application app simulate describe 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
|
+
feedback) _postman_feedback ;;
|
|
54
55
|
update) _postman_update ;;
|
|
55
56
|
skills) _postman_skills ;;
|
|
56
57
|
collection) _postman_collection ;;
|
|
@@ -61,6 +62,7 @@ _postman() {
|
|
|
61
62
|
spec) _postman_spec ;;
|
|
62
63
|
monitor) _postman_monitor ;;
|
|
63
64
|
workspace|ws) _postman_workspace ;;
|
|
65
|
+
team) _postman_team ;;
|
|
64
66
|
performance) _postman_performance ;;
|
|
65
67
|
flows|fl) _postman_flows ;;
|
|
66
68
|
request) _postman_request ;;
|
|
@@ -68,7 +70,7 @@ _postman() {
|
|
|
68
70
|
mock) _postman_mock ;;
|
|
69
71
|
application|app) _postman_application ;;
|
|
70
72
|
simulate) _postman_simulate ;;
|
|
71
|
-
|
|
73
|
+
describe) _postman_describe ;;
|
|
72
74
|
context-graph) _postman_context_graph ;;
|
|
73
75
|
search) _postman_search ;;
|
|
74
76
|
webhook) _postman_webhook ;;
|
|
@@ -125,6 +127,15 @@ _postman_whoami() {
|
|
|
125
127
|
fi
|
|
126
128
|
}
|
|
127
129
|
|
|
130
|
+
_postman_feedback() {
|
|
131
|
+
if [[ "$cur" == -* ]]; then
|
|
132
|
+
COMPREPLY=( $(compgen -W "--type --context --json -h --help" -- "$cur") )
|
|
133
|
+
return 0
|
|
134
|
+
fi
|
|
135
|
+
case "$prev" in
|
|
136
|
+
esac
|
|
137
|
+
}
|
|
138
|
+
|
|
128
139
|
_postman_update() {
|
|
129
140
|
if [[ "$cur" == -* ]]; then
|
|
130
141
|
COMPREPLY=( $(compgen -W "--check -h --help" -- "$cur") )
|
|
@@ -168,7 +179,7 @@ _postman_collection() {
|
|
|
168
179
|
if [[ "$cur" == -* ]]; then
|
|
169
180
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
170
181
|
else
|
|
171
|
-
COMPREPLY=( $(compgen -W "new migrate lint ai-readiness get list run" -- "$cur") )
|
|
182
|
+
COMPREPLY=( $(compgen -W "new migrate lint ai-readiness get request list run" -- "$cur") )
|
|
172
183
|
fi
|
|
173
184
|
return 0
|
|
174
185
|
fi
|
|
@@ -178,6 +189,7 @@ _postman_collection() {
|
|
|
178
189
|
lint) _postman_collection_lint ;;
|
|
179
190
|
ai-readiness) _postman_collection_ai_readiness ;;
|
|
180
191
|
get) _postman_collection_get ;;
|
|
192
|
+
request) _postman_collection_request ;;
|
|
181
193
|
list) _postman_collection_list ;;
|
|
182
194
|
run) _postman_collection_run ;;
|
|
183
195
|
esac
|
|
@@ -237,6 +249,55 @@ _postman_collection_get() {
|
|
|
237
249
|
esac
|
|
238
250
|
}
|
|
239
251
|
|
|
252
|
+
_postman_collection_request() {
|
|
253
|
+
if [[ -z "$subcmd" ]]; then
|
|
254
|
+
if [[ "$cur" == -* ]]; then
|
|
255
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
256
|
+
else
|
|
257
|
+
COMPREPLY=( $(compgen -W "add update rm remove" -- "$cur") )
|
|
258
|
+
fi
|
|
259
|
+
return 0
|
|
260
|
+
fi
|
|
261
|
+
case "$subcmd" in
|
|
262
|
+
add) _postman_collection_request_add ;;
|
|
263
|
+
update) _postman_collection_request_update ;;
|
|
264
|
+
rm|remove) _postman_collection_request_rm ;;
|
|
265
|
+
esac
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
_postman_collection_request_add() {
|
|
269
|
+
if [[ "$cur" == -* ]]; then
|
|
270
|
+
COMPREPLY=( $(compgen -W "--collection --folder --type -w --workspace --json -h --help" -- "$cur") )
|
|
271
|
+
return 0
|
|
272
|
+
fi
|
|
273
|
+
case "$prev" in
|
|
274
|
+
esac
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
_postman_collection_request_update() {
|
|
278
|
+
if [[ "$cur" == -* ]]; then
|
|
279
|
+
COMPREPLY=( $(compgen -W "--collection --folder --rename --url --method --param -d --body --variables --description --headers --auth --scripts -w --workspace --type --json -h --help" -- "$cur") )
|
|
280
|
+
return 0
|
|
281
|
+
fi
|
|
282
|
+
case "$prev" in
|
|
283
|
+
--param)
|
|
284
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
285
|
+
return 0 ;;
|
|
286
|
+
--headers)
|
|
287
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
288
|
+
return 0 ;;
|
|
289
|
+
esac
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
_postman_collection_request_rm() {
|
|
293
|
+
if [[ "$cur" == -* ]]; then
|
|
294
|
+
COMPREPLY=( $(compgen -W "--collection --folder -w --workspace --type --json -h --help" -- "$cur") )
|
|
295
|
+
return 0
|
|
296
|
+
fi
|
|
297
|
+
case "$prev" in
|
|
298
|
+
esac
|
|
299
|
+
}
|
|
300
|
+
|
|
240
301
|
_postman_collection_list() {
|
|
241
302
|
if [[ "$cur" == -* ]]; then
|
|
242
303
|
COMPREPLY=( $(compgen -W "-w --workspace -f --filter --verbose --debug --json -h --help" -- "$cur") )
|
|
@@ -960,7 +1021,7 @@ _postman_workspace_get() {
|
|
|
960
1021
|
|
|
961
1022
|
_postman_workspace_create() {
|
|
962
1023
|
if [[ "$cur" == -* ]]; then
|
|
963
|
-
COMPREPLY=( $(compgen -W "--visibility --name --summary --path --no-connect --force -h --help" -- "$cur") )
|
|
1024
|
+
COMPREPLY=( $(compgen -W "--visibility --name --summary --team-id --team-role --path --no-connect --force -h --help" -- "$cur") )
|
|
964
1025
|
return 0
|
|
965
1026
|
fi
|
|
966
1027
|
case "$prev" in
|
|
@@ -996,6 +1057,29 @@ _postman_workspace_diff() {
|
|
|
996
1057
|
esac
|
|
997
1058
|
}
|
|
998
1059
|
|
|
1060
|
+
_postman_team() {
|
|
1061
|
+
if [[ -z "$subcmd" ]]; then
|
|
1062
|
+
if [[ "$cur" == -* ]]; then
|
|
1063
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1064
|
+
else
|
|
1065
|
+
COMPREPLY=( $(compgen -W "list" -- "$cur") )
|
|
1066
|
+
fi
|
|
1067
|
+
return 0
|
|
1068
|
+
fi
|
|
1069
|
+
case "$subcmd" in
|
|
1070
|
+
list) _postman_team_list ;;
|
|
1071
|
+
esac
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
_postman_team_list() {
|
|
1075
|
+
if [[ "$cur" == -* ]]; then
|
|
1076
|
+
COMPREPLY=( $(compgen -W "--can-create-workspace --json --timeout -h --help" -- "$cur") )
|
|
1077
|
+
return 0
|
|
1078
|
+
fi
|
|
1079
|
+
case "$prev" in
|
|
1080
|
+
esac
|
|
1081
|
+
}
|
|
1082
|
+
|
|
999
1083
|
_postman_performance() {
|
|
1000
1084
|
if [[ -z "$subcmd" ]]; then
|
|
1001
1085
|
if [[ "$cur" == -* ]]; then
|
|
@@ -1013,7 +1097,7 @@ _postman_performance() {
|
|
|
1013
1097
|
|
|
1014
1098
|
_postman_performance_run() {
|
|
1015
1099
|
if [[ "$cur" == -* ]]; then
|
|
1016
|
-
COMPREPLY=( $(compgen -W "-e --environment -g --globals --setup-collection --teardown-collection --vu-count -d --duration -p --load-profile --data-file --dataset-id --dataset-view-id --dataset-distribution --postman-api-key --runner --pass-if --use-mock -h --help" -- "$cur") )
|
|
1100
|
+
COMPREPLY=( $(compgen -W "-e --environment -g --globals --setup-collection --teardown-collection --vu-count -d --duration -p --load-profile --data-file --dataset-id --dataset-view-id --dataset-distribution --postman-api-key --output --runner --pass-if --use-mock -h --help" -- "$cur") )
|
|
1017
1101
|
return 0
|
|
1018
1102
|
fi
|
|
1019
1103
|
case "$prev" in
|
|
@@ -1494,7 +1578,7 @@ _postman_simulate_run() {
|
|
|
1494
1578
|
_postman_filematch '!*.@(json)' "$cur"
|
|
1495
1579
|
}
|
|
1496
1580
|
|
|
1497
|
-
|
|
1581
|
+
_postman_describe() {
|
|
1498
1582
|
if [[ -z "$subcmd" ]]; then
|
|
1499
1583
|
if [[ "$cur" == -* ]]; then
|
|
1500
1584
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
@@ -1504,24 +1588,24 @@ _postman_context() {
|
|
|
1504
1588
|
return 0
|
|
1505
1589
|
fi
|
|
1506
1590
|
case "$subcmd" in
|
|
1507
|
-
instructions)
|
|
1508
|
-
collection)
|
|
1509
|
-
request)
|
|
1510
|
-
folder)
|
|
1511
|
-
response)
|
|
1512
|
-
workspace)
|
|
1513
|
-
environment)
|
|
1591
|
+
instructions) _postman_describe_instructions ;;
|
|
1592
|
+
collection) _postman_describe_collection ;;
|
|
1593
|
+
request) _postman_describe_request ;;
|
|
1594
|
+
folder) _postman_describe_folder ;;
|
|
1595
|
+
response) _postman_describe_response ;;
|
|
1596
|
+
workspace) _postman_describe_workspace ;;
|
|
1597
|
+
environment) _postman_describe_environment ;;
|
|
1514
1598
|
esac
|
|
1515
1599
|
}
|
|
1516
1600
|
|
|
1517
|
-
|
|
1601
|
+
_postman_describe_instructions() {
|
|
1518
1602
|
if [[ "$cur" == -* ]]; then
|
|
1519
1603
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1520
1604
|
return 0
|
|
1521
1605
|
fi
|
|
1522
1606
|
}
|
|
1523
1607
|
|
|
1524
|
-
|
|
1608
|
+
_postman_describe_collection() {
|
|
1525
1609
|
if [[ -z "$subcmd" ]]; then
|
|
1526
1610
|
if [[ "$cur" == -* ]]; then
|
|
1527
1611
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
@@ -1531,11 +1615,11 @@ _postman_context_collection() {
|
|
|
1531
1615
|
return 0
|
|
1532
1616
|
fi
|
|
1533
1617
|
case "$subcmd" in
|
|
1534
|
-
get)
|
|
1618
|
+
get) _postman_describe_collection_get ;;
|
|
1535
1619
|
esac
|
|
1536
1620
|
}
|
|
1537
1621
|
|
|
1538
|
-
|
|
1622
|
+
_postman_describe_collection_get() {
|
|
1539
1623
|
if [[ "$cur" == -* ]]; then
|
|
1540
1624
|
COMPREPLY=( $(compgen -W "-c --collection-id -h --help" -- "$cur") )
|
|
1541
1625
|
return 0
|
|
@@ -1544,7 +1628,7 @@ _postman_context_collection_get() {
|
|
|
1544
1628
|
esac
|
|
1545
1629
|
}
|
|
1546
1630
|
|
|
1547
|
-
|
|
1631
|
+
_postman_describe_request() {
|
|
1548
1632
|
if [[ -z "$subcmd" ]]; then
|
|
1549
1633
|
if [[ "$cur" == -* ]]; then
|
|
1550
1634
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
@@ -1554,12 +1638,12 @@ _postman_context_request() {
|
|
|
1554
1638
|
return 0
|
|
1555
1639
|
fi
|
|
1556
1640
|
case "$subcmd" in
|
|
1557
|
-
get)
|
|
1558
|
-
context)
|
|
1641
|
+
get) _postman_describe_request_get ;;
|
|
1642
|
+
context) _postman_describe_request_context ;;
|
|
1559
1643
|
esac
|
|
1560
1644
|
}
|
|
1561
1645
|
|
|
1562
|
-
|
|
1646
|
+
_postman_describe_request_get() {
|
|
1563
1647
|
if [[ "$cur" == -* ]]; then
|
|
1564
1648
|
COMPREPLY=( $(compgen -W "-r --request-id -c --collection-id -h --help" -- "$cur") )
|
|
1565
1649
|
return 0
|
|
@@ -1568,7 +1652,7 @@ _postman_context_request_get() {
|
|
|
1568
1652
|
esac
|
|
1569
1653
|
}
|
|
1570
1654
|
|
|
1571
|
-
|
|
1655
|
+
_postman_describe_request_context() {
|
|
1572
1656
|
if [[ "$cur" == -* ]]; then
|
|
1573
1657
|
COMPREPLY=( $(compgen -W "-c --collection-id -r --request-id -h --help" -- "$cur") )
|
|
1574
1658
|
return 0
|
|
@@ -1577,7 +1661,7 @@ _postman_context_request_context() {
|
|
|
1577
1661
|
esac
|
|
1578
1662
|
}
|
|
1579
1663
|
|
|
1580
|
-
|
|
1664
|
+
_postman_describe_folder() {
|
|
1581
1665
|
if [[ -z "$subcmd" ]]; then
|
|
1582
1666
|
if [[ "$cur" == -* ]]; then
|
|
1583
1667
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
@@ -1587,11 +1671,11 @@ _postman_context_folder() {
|
|
|
1587
1671
|
return 0
|
|
1588
1672
|
fi
|
|
1589
1673
|
case "$subcmd" in
|
|
1590
|
-
get)
|
|
1674
|
+
get) _postman_describe_folder_get ;;
|
|
1591
1675
|
esac
|
|
1592
1676
|
}
|
|
1593
1677
|
|
|
1594
|
-
|
|
1678
|
+
_postman_describe_folder_get() {
|
|
1595
1679
|
if [[ "$cur" == -* ]]; then
|
|
1596
1680
|
COMPREPLY=( $(compgen -W "--folder-id -c --collection-id -h --help" -- "$cur") )
|
|
1597
1681
|
return 0
|
|
@@ -1600,7 +1684,7 @@ _postman_context_folder_get() {
|
|
|
1600
1684
|
esac
|
|
1601
1685
|
}
|
|
1602
1686
|
|
|
1603
|
-
|
|
1687
|
+
_postman_describe_response() {
|
|
1604
1688
|
if [[ -z "$subcmd" ]]; then
|
|
1605
1689
|
if [[ "$cur" == -* ]]; then
|
|
1606
1690
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
@@ -1610,11 +1694,11 @@ _postman_context_response() {
|
|
|
1610
1694
|
return 0
|
|
1611
1695
|
fi
|
|
1612
1696
|
case "$subcmd" in
|
|
1613
|
-
get)
|
|
1697
|
+
get) _postman_describe_response_get ;;
|
|
1614
1698
|
esac
|
|
1615
1699
|
}
|
|
1616
1700
|
|
|
1617
|
-
|
|
1701
|
+
_postman_describe_response_get() {
|
|
1618
1702
|
if [[ "$cur" == -* ]]; then
|
|
1619
1703
|
COMPREPLY=( $(compgen -W "--id -c --collection-id -r --request-id -h --help" -- "$cur") )
|
|
1620
1704
|
return 0
|
|
@@ -1623,7 +1707,7 @@ _postman_context_response_get() {
|
|
|
1623
1707
|
esac
|
|
1624
1708
|
}
|
|
1625
1709
|
|
|
1626
|
-
|
|
1710
|
+
_postman_describe_workspace() {
|
|
1627
1711
|
if [[ -z "$subcmd" ]]; then
|
|
1628
1712
|
if [[ "$cur" == -* ]]; then
|
|
1629
1713
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
@@ -1633,11 +1717,11 @@ _postman_context_workspace() {
|
|
|
1633
1717
|
return 0
|
|
1634
1718
|
fi
|
|
1635
1719
|
case "$subcmd" in
|
|
1636
|
-
get)
|
|
1720
|
+
get) _postman_describe_workspace_get ;;
|
|
1637
1721
|
esac
|
|
1638
1722
|
}
|
|
1639
1723
|
|
|
1640
|
-
|
|
1724
|
+
_postman_describe_workspace_get() {
|
|
1641
1725
|
if [[ "$cur" == -* ]]; then
|
|
1642
1726
|
COMPREPLY=( $(compgen -W "-w --workspace-id -h --help" -- "$cur") )
|
|
1643
1727
|
return 0
|
|
@@ -1646,7 +1730,7 @@ _postman_context_workspace_get() {
|
|
|
1646
1730
|
esac
|
|
1647
1731
|
}
|
|
1648
1732
|
|
|
1649
|
-
|
|
1733
|
+
_postman_describe_environment() {
|
|
1650
1734
|
if [[ -z "$subcmd" ]]; then
|
|
1651
1735
|
if [[ "$cur" == -* ]]; then
|
|
1652
1736
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
@@ -1656,11 +1740,11 @@ _postman_context_environment() {
|
|
|
1656
1740
|
return 0
|
|
1657
1741
|
fi
|
|
1658
1742
|
case "$subcmd" in
|
|
1659
|
-
get)
|
|
1743
|
+
get) _postman_describe_environment_get ;;
|
|
1660
1744
|
esac
|
|
1661
1745
|
}
|
|
1662
1746
|
|
|
1663
|
-
|
|
1747
|
+
_postman_describe_environment_get() {
|
|
1664
1748
|
if [[ "$cur" == -* ]]; then
|
|
1665
1749
|
COMPREPLY=( $(compgen -W "-e --environment-id -h --help" -- "$cur") )
|
|
1666
1750
|
return 0
|