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.
@@ -1,6 +1,6 @@
1
1
  #compdef postman
2
2
  compdef _postman postman
3
- # Zsh completion for Postman CLI (postman v1.60.0)
3
+ # Zsh completion for Postman CLI (postman v1.62.0)
4
4
  # Auto-generated by scripts/generate.mjs — DO NOT EDIT
5
5
  # Source: spec/commands.json
6
6
  # https://github.com/yokawasa/postman-cli-completion
@@ -25,6 +25,7 @@ _postman() {
25
25
  logout) _postman_logout ;;
26
26
  init) _postman_init ;;
27
27
  whoami) _postman_whoami ;;
28
+ feedback) _postman_feedback ;;
28
29
  update) _postman_update ;;
29
30
  skills) _postman_skills ;;
30
31
  collection) _postman_collection ;;
@@ -35,6 +36,7 @@ _postman() {
35
36
  spec) _postman_spec ;;
36
37
  monitor) _postman_monitor ;;
37
38
  workspace|ws) _postman_workspace ;;
39
+ team) _postman_team ;;
38
40
  performance) _postman_performance ;;
39
41
  flows|fl) _postman_flows ;;
40
42
  request) _postman_request ;;
@@ -42,7 +44,7 @@ _postman() {
42
44
  mock) _postman_mock ;;
43
45
  application|app) _postman_application ;;
44
46
  simulate) _postman_simulate ;;
45
- context) _postman_context ;;
47
+ describe) _postman_describe ;;
46
48
  context-graph) _postman_context_graph ;;
47
49
  search) _postman_search ;;
48
50
  webhook) _postman_webhook ;;
@@ -61,6 +63,7 @@ _postman_commands() {
61
63
  'logout:Delete the stored Postman API key.'
62
64
  'init:Set up Postman artifacts and agent instructions in a repository.'
63
65
  'whoami:Show the Postman account or guest session this CLI session is using.'
66
+ 'feedback:Submit feedback about CLI usability, gaps, and improvement suggestions.'
64
67
  'update:Update Postman CLI using the original installation method.'
65
68
  'skills:Check and update the agent skills in this repository.'
66
69
  'collection:Run and test your Postman collections directly from the command line.'
@@ -72,6 +75,7 @@ _postman_commands() {
72
75
  'monitor:Run and manage Postman monitors.'
73
76
  'workspace:Manage workspace resources.'
74
77
  'ws:Alias for workspace'
78
+ 'team:Work with the teams inside your organisation.'
75
79
  'performance:Manage performance tests on your collections.'
76
80
  'flows:Manage and interact with flows.'
77
81
  'fl:Alias for flows'
@@ -81,7 +85,7 @@ _postman_commands() {
81
85
  'application:Application-level commands\: initialise config and run tests.'
82
86
  'app:Alias for application'
83
87
  'simulate:Start mock servers with simulated failure scenarios.'
84
- 'context:\[Beta\] Get API context for AI coding agents directly from the command line.'
88
+ 'describe:\[Beta\] Get API context for AI coding agents directly from the command line.'
85
89
  'context-graph:Ask natural-language questions about your team'\''s Context Graph.'
86
90
  'search:Search for Postman element types (requests, collections, workspaces, and more).'
87
91
  'webhook:Create and manage Postman webhooks.'
@@ -132,6 +136,15 @@ _postman_whoami() {
132
136
  '(-h --help)'{-h,--help}'[display help for command]'
133
137
  }
134
138
 
139
+ _postman_feedback() {
140
+ _arguments \
141
+ '--type[Feedback type\: cli_gap, improvement_suggestion, bug_report, feature_request, general (default\: general)]:type' \
142
+ '--context[Command or feature context this feedback is about]:context' \
143
+ '--json[Print result as machine-readable JSON]' \
144
+ '(-h --help)'{-h,--help}'[display help for command]' \
145
+ '*:text:'
146
+ }
147
+
135
148
  _postman_update() {
136
149
  _arguments \
137
150
  '--check[Check whether a Postman CLI update is available.]' \
@@ -196,6 +209,7 @@ _postman_collection() {
196
209
  lint) _postman_collection_lint ;;
197
210
  ai-readiness) _postman_collection_ai_readiness ;;
198
211
  get) _postman_collection_get ;;
212
+ request) _postman_collection_request ;;
199
213
  list) _postman_collection_list ;;
200
214
  run) _postman_collection_run ;;
201
215
  esac
@@ -211,6 +225,7 @@ _postman_collection_commands() {
211
225
  'lint:Run linting on a local v3 collection at the given file or directory path.'
212
226
  'ai-readiness:Score a Postman collection for AI readiness by ID, local file path, or local-mode directory.'
213
227
  'get:Fetch a Postman collection in the V3 format and print it.'
228
+ 'request:Add, update, or remove requests in a local v3 collection.'
214
229
  'list:List collections\: your local project'\''s collections by default, or a Postman cloud workspace'\''s collections with --workspace.'
215
230
  'run:Initiate a Postman collection run from a given ID or path.'
216
231
  )
@@ -258,6 +273,78 @@ _postman_collection_get() {
258
273
  '*:id:'
259
274
  }
260
275
 
276
+ _postman_collection_request() {
277
+ local context state state_descr line
278
+ typeset -A opt_args
279
+ _arguments -C \
280
+ '(-h --help)'{-h,--help}'[display help for command]' \
281
+ '1: :_postman_collection_request_commands' \
282
+ '*::arg:->args'
283
+ case $state in
284
+ args)
285
+ case $words[1] in
286
+ add) _postman_collection_request_add ;;
287
+ update) _postman_collection_request_update ;;
288
+ rm|remove) _postman_collection_request_rm ;;
289
+ esac
290
+ ;;
291
+ esac
292
+ }
293
+
294
+ _postman_collection_request_commands() {
295
+ local -a sub
296
+ sub=(
297
+ 'add:Add an empty request to a local v3 collection (set its details later with `update`).'
298
+ 'update:Update a request in a v3 collection (only the fields you pass).'
299
+ 'rm:Remove a request (any type) from a v3 collection.'
300
+ 'remove:Alias for rm'
301
+ )
302
+ _describe -t commands 'request command' sub
303
+ }
304
+
305
+ _postman_collection_request_add() {
306
+ _arguments \
307
+ '--collection[Target collection\: name, directory, id, cloud id, or path. Required.]:id|name' \
308
+ '--folder[Folder within the collection, e.g. "Users/Admin". Defaults to the root.]:id|name|path' \
309
+ '--type[Request type\: http, graphql, grpc, websocket, socketio. (default\: "http")]:type' \
310
+ '(-w --workspace)'{-w,--workspace}'[Target a Postman cloud workspace by id (cloud mode).]:id' \
311
+ '--json[JSON output.]' \
312
+ '(-h --help)'{-h,--help}'[display help for command]' \
313
+ '*:request-name:'
314
+ }
315
+
316
+ _postman_collection_request_update() {
317
+ _arguments \
318
+ '--collection[Target collection\: name, directory, id, cloud id, or path (cloud\: id only). Required.]:id|name' \
319
+ '--folder[Folder to scope the request selector, e.g. "Users/Admin" (local\: name/path; cloud\: id).]:id|name|path' \
320
+ '--rename[Rename the request (moves its file). Any request type.]:name' \
321
+ '--url[Request URL. Any request type.]:url' \
322
+ '--method[HTTP method (http requests only).]:method' \
323
+ '--param[Replace query parameters. Repeatable (http requests only). (default\: \[\])]:key\:value:_files -g "*.(pem|crt|key)"' \
324
+ '(-d --body)'{-d,--body}'[Request payload (inline, @file, or - for stdin), interpreted by request type. For http, an optional "<type>\:" prefix picks the content type\: json/text/xml/html/javascript, file\:<path>, urlencoded\:key=v&k2=v2, or formdata\:key=v&file=@path.]:body' \
325
+ '--variables[GraphQL variables JSON (graphql requests only).]:json' \
326
+ '--description[Request description.]:text' \
327
+ '--headers[Replace request headers. Repeatable; any request type with headers. (default\: \[\])]:key\:value:_files -g "*.(pem|crt|key)"' \
328
+ '--auth[Request auth\: none, inherit, bearer\:TOKEN, basic\:USER\:PASS, apikey\:KEY\:VALUE\[\:header|query\], oauth2\:TOKEN. Any request type.]:spec' \
329
+ '--scripts[Replace scripts. event is prerequest or test; script is @file, - for stdin, or inline. Repeatable; any request type. (default\: \[\])]:event\:script' \
330
+ '(-w --workspace)'{-w,--workspace}'[Target a Postman cloud workspace by id (cloud mode).]:id' \
331
+ '--type[Request type for cloud mode\: http, graphql, grpc, websocket, socketio. (default\: "http")]:type' \
332
+ '--json[JSON output.]' \
333
+ '(-h --help)'{-h,--help}'[display help for command]' \
334
+ '*:request:'
335
+ }
336
+
337
+ _postman_collection_request_rm() {
338
+ _arguments \
339
+ '--collection[Target collection\: name, directory, id, cloud id, or path (cloud\: id only). Required.]:id|name' \
340
+ '--folder[Folder to scope the request selector, e.g. "Users/Admin" (local\: name/path; cloud\: id).]:id|name|path' \
341
+ '(-w --workspace)'{-w,--workspace}'[Target a Postman cloud workspace by id (cloud mode).]:id' \
342
+ '--type[Request type for cloud mode\: http, graphql, grpc, websocket, socketio. (default\: "http")]:type' \
343
+ '--json[JSON output.]' \
344
+ '(-h --help)'{-h,--help}'[display help for command]' \
345
+ '*:request:'
346
+ }
347
+
261
348
  _postman_collection_list() {
262
349
  _arguments \
263
350
  '(-w --workspace)'{-w,--workspace}'[List a Postman cloud workspace'\''s collections by id. Omit to list the local project'\''s collections.]:workspaceId' \
@@ -808,7 +895,7 @@ _postman_monitor_commands() {
808
895
 
809
896
  _postman_monitor_run() {
810
897
  _arguments \
811
- '--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
898
+ '--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a guest session)]:key:_files -g "*.(pem|crt|key)"' \
812
899
  '(-x --suppress-exit-code)'{-x,--suppress-exit-code}'[Specify whether or not to override the default exit code for the current run]' \
813
900
  '(-t --timeout)'{-t,--timeout}'[Maximum wait time for run completion in milliseconds (default\: 15 minutes) (default\: 900000)]:ms' \
814
901
  '--async[Submit the run and return immediately with its job id and Postman URL, without waiting for completion]' \
@@ -840,7 +927,7 @@ _postman_monitor_create() {
840
927
  '--iteration-count[Number of iterations to run]:n' \
841
928
  '--iteration-strategy[How iteration data is consumed, for example round_robin, repeat_last or stop_at_end (requires --iteration-count, --dataset-id and --dataset-view-id)]:strategy' \
842
929
  '--no-run-now[Do not trigger an immediate run after creating the monitor]' \
843
- '--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
930
+ '--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a guest session)]:key:_files -g "*.(pem|crt|key)"' \
844
931
  '--json[Output as JSON instead of a table]' \
845
932
  '(-h --help)'{-h,--help}'[display help for command]'
846
933
  }
@@ -867,7 +954,7 @@ _postman_monitor_update() {
867
954
  '--dataset-view-id[Dataset view to iterate (used together with --dataset-id)]:id' \
868
955
  '--iteration-count[Number of iterations to run]:n' \
869
956
  '--iteration-strategy[How iteration data is consumed, for example round_robin, repeat_last or stop_at_end (requires --iteration-count, --dataset-id and --dataset-view-id)]:strategy' \
870
- '--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
957
+ '--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a guest session)]:key:_files -g "*.(pem|crt|key)"' \
871
958
  '--json[Output as JSON instead of a table]' \
872
959
  '(-h --help)'{-h,--help}'[display help for command]' \
873
960
  '*:monitorId:'
@@ -876,7 +963,7 @@ _postman_monitor_update() {
876
963
  _postman_monitor_delete() {
877
964
  _arguments \
878
965
  '(-y --yes)'{-y,--yes}'[Skip the confirmation prompt]' \
879
- '--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
966
+ '--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a guest session)]:key:_files -g "*.(pem|crt|key)"' \
880
967
  '--json[Output the outcome, including any failure, as JSON instead of a plain message]' \
881
968
  '(-h --help)'{-h,--help}'[display help for command]' \
882
969
  '*:monitorId:'
@@ -965,7 +1052,7 @@ _postman_monitor_runs_get() {
965
1052
 
966
1053
  _postman_monitor_list() {
967
1054
  _arguments \
968
- '--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
1055
+ '--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a guest session)]:key:_files -g "*.(pem|crt|key)"' \
969
1056
  '(-w --workspace)'{-w,--workspace}'[Filter to monitors in this workspace]:id' \
970
1057
  '(-c --collection)'{-c,--collection}'[Filter to monitors on this collection]:id' \
971
1058
  '(-e --environment)'{-e,--environment}'[Filter to monitors on this environment]:id' \
@@ -985,7 +1072,7 @@ _postman_monitor_list() {
985
1072
 
986
1073
  _postman_monitor_get() {
987
1074
  _arguments \
988
- '--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
1075
+ '--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a guest session)]:key:_files -g "*.(pem|crt|key)"' \
989
1076
  '--json[Output as JSON instead of a table]' \
990
1077
  '(-h --help)'{-h,--help}'[display help for command]' \
991
1078
  '*:monitorId:'
@@ -993,7 +1080,7 @@ _postman_monitor_get() {
993
1080
 
994
1081
  _postman_monitor_metrics() {
995
1082
  _arguments \
996
- '--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
1083
+ '--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a guest session)]:key:_files -g "*.(pem|crt|key)"' \
997
1084
  '--since[Only executions at or after this ISO 8601 date-time (defaults to 7 days ago)]:dateTime' \
998
1085
  '--until[Only executions at or before this ISO 8601 date-time (defaults to now)]:dateTime' \
999
1086
  '(-f --filter)'{-f,--filter}'[Show only requests whose name contains this text (case-insensitive)]:text' \
@@ -1005,7 +1092,7 @@ _postman_monitor_metrics() {
1005
1092
 
1006
1093
  _postman_monitor_pause() {
1007
1094
  _arguments \
1008
- '--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
1095
+ '--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a guest session)]:key:_files -g "*.(pem|crt|key)"' \
1009
1096
  '--json[Output as JSON instead of a table]' \
1010
1097
  '(-h --help)'{-h,--help}'[display help for command]' \
1011
1098
  '*:monitorId:'
@@ -1013,7 +1100,7 @@ _postman_monitor_pause() {
1013
1100
 
1014
1101
  _postman_monitor_resume() {
1015
1102
  _arguments \
1016
- '--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
1103
+ '--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a guest session)]:key:_files -g "*.(pem|crt|key)"' \
1017
1104
  '--json[Output as JSON instead of a table]' \
1018
1105
  '(-h --help)'{-h,--help}'[display help for command]' \
1019
1106
  '*:monitorId:'
@@ -1107,9 +1194,11 @@ _postman_workspace_get() {
1107
1194
 
1108
1195
  _postman_workspace_create() {
1109
1196
  _arguments \
1110
- '--visibility[Required. Workspace visibility, e.g. personal or team]:status' \
1197
+ '--visibility[Required. One of\: personal, private, team, public, partner.]:status' \
1111
1198
  '--name[Workspace name (defaults to owner/repo from the git remote)]:name' \
1112
1199
  '--summary[Optional workspace summary]:text' \
1200
+ '--team-id[The team inside your organisation the workspace belongs to. Required for a team workspace when your organisation has teams inside it. Find it with `postman team list`.]:id' \
1201
+ '--team-role[What a team or public workspace grants\: view or edit. Applies to the team named by --team-id, or to your whole organisation when none is named. Defaults to your team'\''s configured default.]:level' \
1113
1202
  '--path[Directory to bind (defaults to the current directory)]:dir:_files -g "*.json"' \
1114
1203
  '--no-connect[Create the workspace without binding it to the repository]' \
1115
1204
  '--force[Create even when a workspace is already recorded for this repo]' \
@@ -1144,6 +1233,38 @@ _postman_workspace_diff() {
1144
1233
  '*:workspaceId:'
1145
1234
  }
1146
1235
 
1236
+ _postman_team() {
1237
+ local context state state_descr line
1238
+ typeset -A opt_args
1239
+ _arguments -C \
1240
+ '(-h --help)'{-h,--help}'[display help for command]' \
1241
+ '1: :_postman_team_commands' \
1242
+ '*::arg:->args'
1243
+ case $state in
1244
+ args)
1245
+ case $words[1] in
1246
+ list) _postman_team_list ;;
1247
+ esac
1248
+ ;;
1249
+ esac
1250
+ }
1251
+
1252
+ _postman_team_commands() {
1253
+ local -a sub
1254
+ sub=(
1255
+ 'list:List the teams inside your organisation.'
1256
+ )
1257
+ _describe -t commands 'team command' sub
1258
+ }
1259
+
1260
+ _postman_team_list() {
1261
+ _arguments \
1262
+ '--can-create-workspace[Only list teams you could create a workspace in.]' \
1263
+ '--json[Print the list as machine-readable JSON.]' \
1264
+ '--timeout[Abort the run after this many milliseconds. Defaults to 30000.]:ms' \
1265
+ '(-h --help)'{-h,--help}'[display help for command]'
1266
+ }
1267
+
1147
1268
  _postman_performance() {
1148
1269
  local context state state_descr line
1149
1270
  typeset -A opt_args
@@ -1184,6 +1305,7 @@ _postman_performance_run() {
1184
1305
  '--dataset-view-id[Dataset view to execute for iteration data (requires --dataset-id)]:id' \
1185
1306
  '--dataset-distribution[How rows map to VUs\: round-robin (default), fixed, random]:strategy' \
1186
1307
  '--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' \
1308
+ '--output[Output format for live results\: auto (default, interactive dashboard) or ndjson (one JSON object per line on stdout, ending with a "summary" event — for CI or other non-interactive use) (default\: "auto")]:format' \
1187
1309
  '--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' \
1188
1310
  '--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' \
1189
1311
  '--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' \
@@ -1755,29 +1877,29 @@ _postman_simulate_run() {
1755
1877
  '*:filepath:_files -g "*.json"'
1756
1878
  }
1757
1879
 
1758
- _postman_context() {
1880
+ _postman_describe() {
1759
1881
  local context state state_descr line
1760
1882
  typeset -A opt_args
1761
1883
  _arguments -C \
1762
1884
  '(-h --help)'{-h,--help}'[display help for command]' \
1763
- '1: :_postman_context_commands' \
1885
+ '1: :_postman_describe_commands' \
1764
1886
  '*::arg:->args'
1765
1887
  case $state in
1766
1888
  args)
1767
1889
  case $words[1] in
1768
- instructions) _postman_context_instructions ;;
1769
- collection) _postman_context_collection ;;
1770
- request) _postman_context_request ;;
1771
- folder) _postman_context_folder ;;
1772
- response) _postman_context_response ;;
1773
- workspace) _postman_context_workspace ;;
1774
- environment) _postman_context_environment ;;
1890
+ instructions) _postman_describe_instructions ;;
1891
+ collection) _postman_describe_collection ;;
1892
+ request) _postman_describe_request ;;
1893
+ folder) _postman_describe_folder ;;
1894
+ response) _postman_describe_response ;;
1895
+ workspace) _postman_describe_workspace ;;
1896
+ environment) _postman_describe_environment ;;
1775
1897
  esac
1776
1898
  ;;
1777
1899
  esac
1778
1900
  }
1779
1901
 
1780
- _postman_context_commands() {
1902
+ _postman_describe_commands() {
1781
1903
  local -a sub
1782
1904
  sub=(
1783
1905
  'instructions:Get agent instructions for using Postman Context with AI coding agents.'
@@ -1788,32 +1910,32 @@ _postman_context_commands() {
1788
1910
  'workspace:Workspace commands'
1789
1911
  'environment:Environment commands'
1790
1912
  )
1791
- _describe -t commands 'context command' sub
1913
+ _describe -t commands 'describe command' sub
1792
1914
  }
1793
1915
 
1794
- _postman_context_instructions() {
1916
+ _postman_describe_instructions() {
1795
1917
  _arguments \
1796
1918
  '(-h --help)'{-h,--help}'[display help for command]' \
1797
1919
  '*:topic:'
1798
1920
  }
1799
1921
 
1800
- _postman_context_collection() {
1922
+ _postman_describe_collection() {
1801
1923
  local context state state_descr line
1802
1924
  typeset -A opt_args
1803
1925
  _arguments -C \
1804
1926
  '(-h --help)'{-h,--help}'[display help for command]' \
1805
- '1: :_postman_context_collection_commands' \
1927
+ '1: :_postman_describe_collection_commands' \
1806
1928
  '*::arg:->args'
1807
1929
  case $state in
1808
1930
  args)
1809
1931
  case $words[1] in
1810
- get) _postman_context_collection_get ;;
1932
+ get) _postman_describe_collection_get ;;
1811
1933
  esac
1812
1934
  ;;
1813
1935
  esac
1814
1936
  }
1815
1937
 
1816
- _postman_context_collection_commands() {
1938
+ _postman_describe_collection_commands() {
1817
1939
  local -a sub
1818
1940
  sub=(
1819
1941
  'get:Get a collection'\''s metadata and a map of its folders and requests. Returns collection info (name, description, variables, auth) plus a recursive tree of folders and requests.'
@@ -1821,30 +1943,30 @@ _postman_context_collection_commands() {
1821
1943
  _describe -t commands 'collection command' sub
1822
1944
  }
1823
1945
 
1824
- _postman_context_collection_get() {
1946
+ _postman_describe_collection_get() {
1825
1947
  _arguments \
1826
1948
  '(-c --collection-id)'{-c,--collection-id}'[Collection ID]:id' \
1827
1949
  '(-h --help)'{-h,--help}'[display help for command]'
1828
1950
  }
1829
1951
 
1830
- _postman_context_request() {
1952
+ _postman_describe_request() {
1831
1953
  local context state state_descr line
1832
1954
  typeset -A opt_args
1833
1955
  _arguments -C \
1834
1956
  '(-h --help)'{-h,--help}'[display help for command]' \
1835
- '1: :_postman_context_request_commands' \
1957
+ '1: :_postman_describe_request_commands' \
1836
1958
  '*::arg:->args'
1837
1959
  case $state in
1838
1960
  args)
1839
1961
  case $words[1] in
1840
- get) _postman_context_request_get ;;
1841
- context) _postman_context_request_context ;;
1962
+ get) _postman_describe_request_get ;;
1963
+ context) _postman_describe_request_context ;;
1842
1964
  esac
1843
1965
  ;;
1844
1966
  esac
1845
1967
  }
1846
1968
 
1847
- _postman_context_request_commands() {
1969
+ _postman_describe_request_commands() {
1848
1970
  local -a sub
1849
1971
  sub=(
1850
1972
  'get:Get a request from a collection'
@@ -1853,37 +1975,37 @@ _postman_context_request_commands() {
1853
1975
  _describe -t commands 'request command' sub
1854
1976
  }
1855
1977
 
1856
- _postman_context_request_get() {
1978
+ _postman_describe_request_get() {
1857
1979
  _arguments \
1858
1980
  '(-r --request-id)'{-r,--request-id}'[Request ID]:id' \
1859
1981
  '(-c --collection-id)'{-c,--collection-id}'[Collection ID]:id' \
1860
1982
  '(-h --help)'{-h,--help}'[display help for command]'
1861
1983
  }
1862
1984
 
1863
- _postman_context_request_context() {
1985
+ _postman_describe_request_context() {
1864
1986
  _arguments \
1865
1987
  '(-c --collection-id)'{-c,--collection-id}'[Collection ID]:id' \
1866
1988
  '(-r --request-id)'{-r,--request-id}'[Request ID]:id' \
1867
1989
  '(-h --help)'{-h,--help}'[display help for command]'
1868
1990
  }
1869
1991
 
1870
- _postman_context_folder() {
1992
+ _postman_describe_folder() {
1871
1993
  local context state state_descr line
1872
1994
  typeset -A opt_args
1873
1995
  _arguments -C \
1874
1996
  '(-h --help)'{-h,--help}'[display help for command]' \
1875
- '1: :_postman_context_folder_commands' \
1997
+ '1: :_postman_describe_folder_commands' \
1876
1998
  '*::arg:->args'
1877
1999
  case $state in
1878
2000
  args)
1879
2001
  case $words[1] in
1880
- get) _postman_context_folder_get ;;
2002
+ get) _postman_describe_folder_get ;;
1881
2003
  esac
1882
2004
  ;;
1883
2005
  esac
1884
2006
  }
1885
2007
 
1886
- _postman_context_folder_commands() {
2008
+ _postman_describe_folder_commands() {
1887
2009
  local -a sub
1888
2010
  sub=(
1889
2011
  'get:Get a folder from a collection'
@@ -1891,30 +2013,30 @@ _postman_context_folder_commands() {
1891
2013
  _describe -t commands 'folder command' sub
1892
2014
  }
1893
2015
 
1894
- _postman_context_folder_get() {
2016
+ _postman_describe_folder_get() {
1895
2017
  _arguments \
1896
2018
  '--folder-id[Folder ID]:id' \
1897
2019
  '(-c --collection-id)'{-c,--collection-id}'[Collection ID]:id' \
1898
2020
  '(-h --help)'{-h,--help}'[display help for command]'
1899
2021
  }
1900
2022
 
1901
- _postman_context_response() {
2023
+ _postman_describe_response() {
1902
2024
  local context state state_descr line
1903
2025
  typeset -A opt_args
1904
2026
  _arguments -C \
1905
2027
  '(-h --help)'{-h,--help}'[display help for command]' \
1906
- '1: :_postman_context_response_commands' \
2028
+ '1: :_postman_describe_response_commands' \
1907
2029
  '*::arg:->args'
1908
2030
  case $state in
1909
2031
  args)
1910
2032
  case $words[1] in
1911
- get) _postman_context_response_get ;;
2033
+ get) _postman_describe_response_get ;;
1912
2034
  esac
1913
2035
  ;;
1914
2036
  esac
1915
2037
  }
1916
2038
 
1917
- _postman_context_response_commands() {
2039
+ _postman_describe_response_commands() {
1918
2040
  local -a sub
1919
2041
  sub=(
1920
2042
  'get:Get a saved response example from a collection'
@@ -1922,7 +2044,7 @@ _postman_context_response_commands() {
1922
2044
  _describe -t commands 'response command' sub
1923
2045
  }
1924
2046
 
1925
- _postman_context_response_get() {
2047
+ _postman_describe_response_get() {
1926
2048
  _arguments \
1927
2049
  '--id[Response ID]:id' \
1928
2050
  '(-c --collection-id)'{-c,--collection-id}'[Collection ID]:id' \
@@ -1930,23 +2052,23 @@ _postman_context_response_get() {
1930
2052
  '(-h --help)'{-h,--help}'[display help for command]'
1931
2053
  }
1932
2054
 
1933
- _postman_context_workspace() {
2055
+ _postman_describe_workspace() {
1934
2056
  local context state state_descr line
1935
2057
  typeset -A opt_args
1936
2058
  _arguments -C \
1937
2059
  '(-h --help)'{-h,--help}'[display help for command]' \
1938
- '1: :_postman_context_workspace_commands' \
2060
+ '1: :_postman_describe_workspace_commands' \
1939
2061
  '*::arg:->args'
1940
2062
  case $state in
1941
2063
  args)
1942
2064
  case $words[1] in
1943
- get) _postman_context_workspace_get ;;
2065
+ get) _postman_describe_workspace_get ;;
1944
2066
  esac
1945
2067
  ;;
1946
2068
  esac
1947
2069
  }
1948
2070
 
1949
- _postman_context_workspace_commands() {
2071
+ _postman_describe_workspace_commands() {
1950
2072
  local -a sub
1951
2073
  sub=(
1952
2074
  'get:Get a workspace by ID'
@@ -1954,29 +2076,29 @@ _postman_context_workspace_commands() {
1954
2076
  _describe -t commands 'workspace command' sub
1955
2077
  }
1956
2078
 
1957
- _postman_context_workspace_get() {
2079
+ _postman_describe_workspace_get() {
1958
2080
  _arguments \
1959
2081
  '(-w --workspace-id)'{-w,--workspace-id}'[Workspace ID]:id' \
1960
2082
  '(-h --help)'{-h,--help}'[display help for command]'
1961
2083
  }
1962
2084
 
1963
- _postman_context_environment() {
2085
+ _postman_describe_environment() {
1964
2086
  local context state state_descr line
1965
2087
  typeset -A opt_args
1966
2088
  _arguments -C \
1967
2089
  '(-h --help)'{-h,--help}'[display help for command]' \
1968
- '1: :_postman_context_environment_commands' \
2090
+ '1: :_postman_describe_environment_commands' \
1969
2091
  '*::arg:->args'
1970
2092
  case $state in
1971
2093
  args)
1972
2094
  case $words[1] in
1973
- get) _postman_context_environment_get ;;
2095
+ get) _postman_describe_environment_get ;;
1974
2096
  esac
1975
2097
  ;;
1976
2098
  esac
1977
2099
  }
1978
2100
 
1979
- _postman_context_environment_commands() {
2101
+ _postman_describe_environment_commands() {
1980
2102
  local -a sub
1981
2103
  sub=(
1982
2104
  'get:Get a single environment by ID'
@@ -1984,7 +2106,7 @@ _postman_context_environment_commands() {
1984
2106
  _describe -t commands 'environment command' sub
1985
2107
  }
1986
2108
 
1987
- _postman_context_environment_get() {
2109
+ _postman_describe_environment_get() {
1988
2110
  _arguments \
1989
2111
  '(-e --environment-id)'{-e,--environment-id}'[Environment ID]:id' \
1990
2112
  '(-h --help)'{-h,--help}'[display help for command]'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postman-cli-completion",
3
- "version": "1.60.0",
3
+ "version": "1.62.0",
4
4
  "description": "Shell completions for the Postman CLI (zsh, bash, fish)",
5
5
  "type": "module",
6
6
  "bin": {