postman-cli-completion 1.60.0 → 1.63.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.60.0)
1
+ # Bash completion for Postman CLI (postman v1.63.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 context context-graph search webhook dataset dependency"
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
- context) _postman_context ;;
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 folder list run" -- "$cur") )
172
183
  fi
173
184
  return 0
174
185
  fi
@@ -178,6 +189,8 @@ _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 ;;
193
+ folder) _postman_collection_folder ;;
181
194
  list) _postman_collection_list ;;
182
195
  run) _postman_collection_run ;;
183
196
  esac
@@ -237,6 +250,98 @@ _postman_collection_get() {
237
250
  esac
238
251
  }
239
252
 
253
+ _postman_collection_request() {
254
+ if [[ -z "$subcmd" ]]; then
255
+ if [[ "$cur" == -* ]]; then
256
+ COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
257
+ else
258
+ COMPREPLY=( $(compgen -W "add update rm remove" -- "$cur") )
259
+ fi
260
+ return 0
261
+ fi
262
+ case "$subcmd" in
263
+ add) _postman_collection_request_add ;;
264
+ update) _postman_collection_request_update ;;
265
+ rm|remove) _postman_collection_request_rm ;;
266
+ esac
267
+ }
268
+
269
+ _postman_collection_request_add() {
270
+ if [[ "$cur" == -* ]]; then
271
+ COMPREPLY=( $(compgen -W "--collection --folder --type -w --workspace --json -h --help" -- "$cur") )
272
+ return 0
273
+ fi
274
+ case "$prev" in
275
+ esac
276
+ }
277
+
278
+ _postman_collection_request_update() {
279
+ if [[ "$cur" == -* ]]; then
280
+ COMPREPLY=( $(compgen -W "--collection --folder --rename --url --method --param -d --body --variables --description --headers --auth --scripts -w --workspace --type --json -h --help" -- "$cur") )
281
+ return 0
282
+ fi
283
+ case "$prev" in
284
+ --param)
285
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
286
+ return 0 ;;
287
+ --headers)
288
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
289
+ return 0 ;;
290
+ esac
291
+ }
292
+
293
+ _postman_collection_request_rm() {
294
+ if [[ "$cur" == -* ]]; then
295
+ COMPREPLY=( $(compgen -W "--collection --folder -w --workspace --type --json -h --help" -- "$cur") )
296
+ return 0
297
+ fi
298
+ case "$prev" in
299
+ esac
300
+ }
301
+
302
+ _postman_collection_folder() {
303
+ if [[ -z "$subcmd" ]]; then
304
+ if [[ "$cur" == -* ]]; then
305
+ COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
306
+ else
307
+ COMPREPLY=( $(compgen -W "add update rm remove" -- "$cur") )
308
+ fi
309
+ return 0
310
+ fi
311
+ case "$subcmd" in
312
+ add) _postman_collection_folder_add ;;
313
+ update) _postman_collection_folder_update ;;
314
+ rm|remove) _postman_collection_folder_rm ;;
315
+ esac
316
+ }
317
+
318
+ _postman_collection_folder_add() {
319
+ if [[ "$cur" == -* ]]; then
320
+ COMPREPLY=( $(compgen -W "--collection --folder -w --workspace --json -h --help" -- "$cur") )
321
+ return 0
322
+ fi
323
+ case "$prev" in
324
+ esac
325
+ }
326
+
327
+ _postman_collection_folder_update() {
328
+ if [[ "$cur" == -* ]]; then
329
+ COMPREPLY=( $(compgen -W "--collection --folder --name --description --auth --scripts -w --workspace --json -h --help" -- "$cur") )
330
+ return 0
331
+ fi
332
+ case "$prev" in
333
+ esac
334
+ }
335
+
336
+ _postman_collection_folder_rm() {
337
+ if [[ "$cur" == -* ]]; then
338
+ COMPREPLY=( $(compgen -W "--collection --folder -y --yes -w --workspace --json -h --help" -- "$cur") )
339
+ return 0
340
+ fi
341
+ case "$prev" in
342
+ esac
343
+ }
344
+
240
345
  _postman_collection_list() {
241
346
  if [[ "$cur" == -* ]]; then
242
347
  COMPREPLY=( $(compgen -W "-w --workspace -f --filter --verbose --debug --json -h --help" -- "$cur") )
@@ -960,7 +1065,7 @@ _postman_workspace_get() {
960
1065
 
961
1066
  _postman_workspace_create() {
962
1067
  if [[ "$cur" == -* ]]; then
963
- COMPREPLY=( $(compgen -W "--visibility --name --summary --path --no-connect --force -h --help" -- "$cur") )
1068
+ COMPREPLY=( $(compgen -W "--visibility --name --summary --team-id --team-role --path --no-connect --force -h --help" -- "$cur") )
964
1069
  return 0
965
1070
  fi
966
1071
  case "$prev" in
@@ -996,6 +1101,29 @@ _postman_workspace_diff() {
996
1101
  esac
997
1102
  }
998
1103
 
1104
+ _postman_team() {
1105
+ if [[ -z "$subcmd" ]]; then
1106
+ if [[ "$cur" == -* ]]; then
1107
+ COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
1108
+ else
1109
+ COMPREPLY=( $(compgen -W "list" -- "$cur") )
1110
+ fi
1111
+ return 0
1112
+ fi
1113
+ case "$subcmd" in
1114
+ list) _postman_team_list ;;
1115
+ esac
1116
+ }
1117
+
1118
+ _postman_team_list() {
1119
+ if [[ "$cur" == -* ]]; then
1120
+ COMPREPLY=( $(compgen -W "--can-create-workspace --json --timeout -h --help" -- "$cur") )
1121
+ return 0
1122
+ fi
1123
+ case "$prev" in
1124
+ esac
1125
+ }
1126
+
999
1127
  _postman_performance() {
1000
1128
  if [[ -z "$subcmd" ]]; then
1001
1129
  if [[ "$cur" == -* ]]; then
@@ -1013,7 +1141,7 @@ _postman_performance() {
1013
1141
 
1014
1142
  _postman_performance_run() {
1015
1143
  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") )
1144
+ 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
1145
  return 0
1018
1146
  fi
1019
1147
  case "$prev" in
@@ -1494,7 +1622,7 @@ _postman_simulate_run() {
1494
1622
  _postman_filematch '!*.@(json)' "$cur"
1495
1623
  }
1496
1624
 
1497
- _postman_context() {
1625
+ _postman_describe() {
1498
1626
  if [[ -z "$subcmd" ]]; then
1499
1627
  if [[ "$cur" == -* ]]; then
1500
1628
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
@@ -1504,24 +1632,24 @@ _postman_context() {
1504
1632
  return 0
1505
1633
  fi
1506
1634
  case "$subcmd" in
1507
- instructions) _postman_context_instructions ;;
1508
- collection) _postman_context_collection ;;
1509
- request) _postman_context_request ;;
1510
- folder) _postman_context_folder ;;
1511
- response) _postman_context_response ;;
1512
- workspace) _postman_context_workspace ;;
1513
- environment) _postman_context_environment ;;
1635
+ instructions) _postman_describe_instructions ;;
1636
+ collection) _postman_describe_collection ;;
1637
+ request) _postman_describe_request ;;
1638
+ folder) _postman_describe_folder ;;
1639
+ response) _postman_describe_response ;;
1640
+ workspace) _postman_describe_workspace ;;
1641
+ environment) _postman_describe_environment ;;
1514
1642
  esac
1515
1643
  }
1516
1644
 
1517
- _postman_context_instructions() {
1645
+ _postman_describe_instructions() {
1518
1646
  if [[ "$cur" == -* ]]; then
1519
1647
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
1520
1648
  return 0
1521
1649
  fi
1522
1650
  }
1523
1651
 
1524
- _postman_context_collection() {
1652
+ _postman_describe_collection() {
1525
1653
  if [[ -z "$subcmd" ]]; then
1526
1654
  if [[ "$cur" == -* ]]; then
1527
1655
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
@@ -1531,11 +1659,11 @@ _postman_context_collection() {
1531
1659
  return 0
1532
1660
  fi
1533
1661
  case "$subcmd" in
1534
- get) _postman_context_collection_get ;;
1662
+ get) _postman_describe_collection_get ;;
1535
1663
  esac
1536
1664
  }
1537
1665
 
1538
- _postman_context_collection_get() {
1666
+ _postman_describe_collection_get() {
1539
1667
  if [[ "$cur" == -* ]]; then
1540
1668
  COMPREPLY=( $(compgen -W "-c --collection-id -h --help" -- "$cur") )
1541
1669
  return 0
@@ -1544,7 +1672,7 @@ _postman_context_collection_get() {
1544
1672
  esac
1545
1673
  }
1546
1674
 
1547
- _postman_context_request() {
1675
+ _postman_describe_request() {
1548
1676
  if [[ -z "$subcmd" ]]; then
1549
1677
  if [[ "$cur" == -* ]]; then
1550
1678
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
@@ -1554,12 +1682,12 @@ _postman_context_request() {
1554
1682
  return 0
1555
1683
  fi
1556
1684
  case "$subcmd" in
1557
- get) _postman_context_request_get ;;
1558
- context) _postman_context_request_context ;;
1685
+ get) _postman_describe_request_get ;;
1686
+ context) _postman_describe_request_context ;;
1559
1687
  esac
1560
1688
  }
1561
1689
 
1562
- _postman_context_request_get() {
1690
+ _postman_describe_request_get() {
1563
1691
  if [[ "$cur" == -* ]]; then
1564
1692
  COMPREPLY=( $(compgen -W "-r --request-id -c --collection-id -h --help" -- "$cur") )
1565
1693
  return 0
@@ -1568,7 +1696,7 @@ _postman_context_request_get() {
1568
1696
  esac
1569
1697
  }
1570
1698
 
1571
- _postman_context_request_context() {
1699
+ _postman_describe_request_context() {
1572
1700
  if [[ "$cur" == -* ]]; then
1573
1701
  COMPREPLY=( $(compgen -W "-c --collection-id -r --request-id -h --help" -- "$cur") )
1574
1702
  return 0
@@ -1577,7 +1705,7 @@ _postman_context_request_context() {
1577
1705
  esac
1578
1706
  }
1579
1707
 
1580
- _postman_context_folder() {
1708
+ _postman_describe_folder() {
1581
1709
  if [[ -z "$subcmd" ]]; then
1582
1710
  if [[ "$cur" == -* ]]; then
1583
1711
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
@@ -1587,11 +1715,11 @@ _postman_context_folder() {
1587
1715
  return 0
1588
1716
  fi
1589
1717
  case "$subcmd" in
1590
- get) _postman_context_folder_get ;;
1718
+ get) _postman_describe_folder_get ;;
1591
1719
  esac
1592
1720
  }
1593
1721
 
1594
- _postman_context_folder_get() {
1722
+ _postman_describe_folder_get() {
1595
1723
  if [[ "$cur" == -* ]]; then
1596
1724
  COMPREPLY=( $(compgen -W "--folder-id -c --collection-id -h --help" -- "$cur") )
1597
1725
  return 0
@@ -1600,7 +1728,7 @@ _postman_context_folder_get() {
1600
1728
  esac
1601
1729
  }
1602
1730
 
1603
- _postman_context_response() {
1731
+ _postman_describe_response() {
1604
1732
  if [[ -z "$subcmd" ]]; then
1605
1733
  if [[ "$cur" == -* ]]; then
1606
1734
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
@@ -1610,11 +1738,11 @@ _postman_context_response() {
1610
1738
  return 0
1611
1739
  fi
1612
1740
  case "$subcmd" in
1613
- get) _postman_context_response_get ;;
1741
+ get) _postman_describe_response_get ;;
1614
1742
  esac
1615
1743
  }
1616
1744
 
1617
- _postman_context_response_get() {
1745
+ _postman_describe_response_get() {
1618
1746
  if [[ "$cur" == -* ]]; then
1619
1747
  COMPREPLY=( $(compgen -W "--id -c --collection-id -r --request-id -h --help" -- "$cur") )
1620
1748
  return 0
@@ -1623,7 +1751,7 @@ _postman_context_response_get() {
1623
1751
  esac
1624
1752
  }
1625
1753
 
1626
- _postman_context_workspace() {
1754
+ _postman_describe_workspace() {
1627
1755
  if [[ -z "$subcmd" ]]; then
1628
1756
  if [[ "$cur" == -* ]]; then
1629
1757
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
@@ -1633,11 +1761,11 @@ _postman_context_workspace() {
1633
1761
  return 0
1634
1762
  fi
1635
1763
  case "$subcmd" in
1636
- get) _postman_context_workspace_get ;;
1764
+ get) _postman_describe_workspace_get ;;
1637
1765
  esac
1638
1766
  }
1639
1767
 
1640
- _postman_context_workspace_get() {
1768
+ _postman_describe_workspace_get() {
1641
1769
  if [[ "$cur" == -* ]]; then
1642
1770
  COMPREPLY=( $(compgen -W "-w --workspace-id -h --help" -- "$cur") )
1643
1771
  return 0
@@ -1646,7 +1774,7 @@ _postman_context_workspace_get() {
1646
1774
  esac
1647
1775
  }
1648
1776
 
1649
- _postman_context_environment() {
1777
+ _postman_describe_environment() {
1650
1778
  if [[ -z "$subcmd" ]]; then
1651
1779
  if [[ "$cur" == -* ]]; then
1652
1780
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
@@ -1656,11 +1784,11 @@ _postman_context_environment() {
1656
1784
  return 0
1657
1785
  fi
1658
1786
  case "$subcmd" in
1659
- get) _postman_context_environment_get ;;
1787
+ get) _postman_describe_environment_get ;;
1660
1788
  esac
1661
1789
  }
1662
1790
 
1663
- _postman_context_environment_get() {
1791
+ _postman_describe_environment_get() {
1664
1792
  if [[ "$cur" == -* ]]; then
1665
1793
  COMPREPLY=( $(compgen -W "-e --environment-id -h --help" -- "$cur") )
1666
1794
  return 0