postman-cli-completion 1.45.0 → 1.46.1

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.45.0)
1
+ # Bash completion for Postman CLI (postman v1.46.1)
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 collection api runner spec monitor workspace ws performance flows fl request sdk mock application app simulate context search webhook dataset"
25
+ local top_commands="login logout collection environment globals api runner spec monitor workspace ws performance flows fl request sdk mock application app simulate context search webhook dataset"
26
26
  local global_flags="-v --version --silent --color -h --help -h --help"
27
27
 
28
28
  local i cmd="" subcmd=""
@@ -49,6 +49,8 @@ _postman() {
49
49
  login) _postman_login ;;
50
50
  logout) _postman_logout ;;
51
51
  collection) _postman_collection ;;
52
+ environment) _postman_environment ;;
53
+ globals) _postman_globals ;;
52
54
  api) _postman_api ;;
53
55
  runner) _postman_runner ;;
54
56
  spec) _postman_spec ;;
@@ -206,6 +208,54 @@ _postman_collection_run() {
206
208
  _postman_filematch '!*.@(json)' "$cur"
207
209
  }
208
210
 
211
+ _postman_environment() {
212
+ if [[ -z "$subcmd" ]]; then
213
+ if [[ "$cur" == -* ]]; then
214
+ COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
215
+ else
216
+ COMPREPLY=( $(compgen -W "lint" -- "$cur") )
217
+ fi
218
+ return 0
219
+ fi
220
+ case "$subcmd" in
221
+ lint) _postman_environment_lint ;;
222
+ esac
223
+ }
224
+
225
+ _postman_environment_lint() {
226
+ if [[ "$cur" == -* ]]; then
227
+ COMPREPLY=( $(compgen -W "-f --fail-severity -o --output -h --help" -- "$cur") )
228
+ return 0
229
+ fi
230
+ case "$prev" in
231
+ esac
232
+ _postman_filematch '!*.@(json)' "$cur"
233
+ }
234
+
235
+ _postman_globals() {
236
+ if [[ -z "$subcmd" ]]; then
237
+ if [[ "$cur" == -* ]]; then
238
+ COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
239
+ else
240
+ COMPREPLY=( $(compgen -W "lint" -- "$cur") )
241
+ fi
242
+ return 0
243
+ fi
244
+ case "$subcmd" in
245
+ lint) _postman_globals_lint ;;
246
+ esac
247
+ }
248
+
249
+ _postman_globals_lint() {
250
+ if [[ "$cur" == -* ]]; then
251
+ COMPREPLY=( $(compgen -W "-f --fail-severity -o --output -h --help" -- "$cur") )
252
+ return 0
253
+ fi
254
+ case "$prev" in
255
+ esac
256
+ _postman_filematch '!*.@(json)' "$cur"
257
+ }
258
+
209
259
  _postman_api() {
210
260
  if [[ -z "$subcmd" ]]; then
211
261
  if [[ "$cur" == -* ]]; then
@@ -913,7 +963,7 @@ _postman_search() {
913
963
  if [[ "$cur" == -* ]]; then
914
964
  COMPREPLY=( $(compgen -W "--ownership -n --limit --cursor -o --output --filter --filter-json -h --help" -- "$cur") )
915
965
  else
916
- COMPREPLY=( $(compgen -W "requests collections workspaces flows specs mocks environments" -- "$cur") )
966
+ COMPREPLY=( $(compgen -W "requests collections workspaces flows specs mocks environments documents" -- "$cur") )
917
967
  fi
918
968
  return 0
919
969
  fi
@@ -925,6 +975,7 @@ _postman_search() {
925
975
  specs) _postman_search_specs ;;
926
976
  mocks) _postman_search_mocks ;;
927
977
  environments) _postman_search_environments ;;
978
+ documents) _postman_search_documents ;;
928
979
  esac
929
980
  }
930
981
 
@@ -977,6 +1028,13 @@ _postman_search_environments() {
977
1028
  fi
978
1029
  }
979
1030
 
1031
+ _postman_search_documents() {
1032
+ if [[ "$cur" == -* ]]; then
1033
+ COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
1034
+ return 0
1035
+ fi
1036
+ }
1037
+
980
1038
  _postman_webhook() {
981
1039
  if [[ -z "$subcmd" ]]; then
982
1040
  if [[ "$cur" == -* ]]; then
@@ -1,10 +1,10 @@
1
- # Fish completion for Postman CLI (postman v1.45.0)
1
+ # Fish completion for Postman CLI (postman v1.46.1)
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 collection 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 logout collection environment globals api runner spec monitor workspace ws performance flows fl request sdk mock application app simulate context search webhook dataset
8
8
  end
9
9
 
10
10
  function __postman_using_subcommand
@@ -24,6 +24,8 @@ complete -c postman -n __postman_no_subcommand -s h -l help -d 'display help for
24
24
  complete -c postman -n __postman_no_subcommand -a login -d 'Authenticate with Postman to access your resources.'
25
25
  complete -c postman -n __postman_no_subcommand -a logout -d 'Delete the stored Postman API key.'
26
26
  complete -c postman -n __postman_no_subcommand -a collection -d 'Run and test your Postman collections directly from the command line.'
27
+ complete -c postman -n __postman_no_subcommand -a environment -d 'Work with local Postman environments from the command line.'
28
+ complete -c postman -n __postman_no_subcommand -a globals -d 'Work with local Postman globals from the command line.'
27
29
  complete -c postman -n __postman_no_subcommand -a api -d 'Publish and test your APIs directly from the command line'
28
30
  complete -c postman -n __postman_no_subcommand -a runner -d 'Run runners on your own environments for monitoring your APIs'
29
31
  complete -c postman -n __postman_no_subcommand -a spec -d 'Lint and validate Specifications from the command line'
@@ -112,7 +114,7 @@ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_
112
114
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l cookie-jar -d 'Specify the path to a custom cookie jar (serialized tough-cookie JSON)' -r
113
115
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l export-cookie-jar -d 'Exports the cookie jar to a file after completing the run' -r
114
116
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l verbose -d 'Show detailed information of collection run and each request sent'
115
- complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l mock -d 'Start a mock server from manifest (.json) file' -r
117
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l mock -d 'Start a mock server from manifest (.json, .yaml or .yml) file' -r
116
118
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l simulate -d 'Start mock servers with fault-injection scenarios from a .sim.yaml file' -r
117
119
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l report-events -d 'Send run results and analytics to Postman'
118
120
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -s h -l help -d 'display help for command'
@@ -129,6 +131,24 @@ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_
129
131
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l reporter-html-omitAllHeadersAndBody -d 'Remove all request/response headers and bodies from the report.'
130
132
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -r -k -a '(__fish_complete_suffix .json)'
131
133
 
134
+ # ---------- environment ----------
135
+ complete -c postman -n '__postman_using_subcommand environment lint' -a lint -d 'Run linting on a local Postman environment at the given file or directory path.'
136
+ complete -c postman -n '__fish_seen_subcommand_from environment' -s h -l help -d 'display help for command'
137
+ # ---------- environment lint ----------
138
+ 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
139
+ 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
140
+ complete -c postman -n '__fish_seen_subcommand_from environment; and __fish_seen_subcommand_from lint' -s h -l help -d 'display help for command'
141
+ complete -c postman -n '__fish_seen_subcommand_from environment; and __fish_seen_subcommand_from lint' -r -k -a '(__fish_complete_suffix .json)'
142
+
143
+ # ---------- globals ----------
144
+ complete -c postman -n '__postman_using_subcommand globals lint' -a lint -d 'Run linting on a local Postman globals file at the given file or directory path.'
145
+ complete -c postman -n '__fish_seen_subcommand_from globals' -s h -l help -d 'display help for command'
146
+ # ---------- globals lint ----------
147
+ complete -c postman -n '__fish_seen_subcommand_from globals; 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
148
+ complete -c postman -n '__fish_seen_subcommand_from globals; and __fish_seen_subcommand_from lint' -s o -l output -d 'Output format: cli (human-readable), table, json, or csv. (default: "cli")' -x
149
+ complete -c postman -n '__fish_seen_subcommand_from globals; and __fish_seen_subcommand_from lint' -s h -l help -d 'display help for command'
150
+ complete -c postman -n '__fish_seen_subcommand_from globals; and __fish_seen_subcommand_from lint' -r -k -a '(__fish_complete_suffix .json)'
151
+
132
152
  # ---------- api ----------
133
153
  complete -c postman -n '__postman_using_subcommand api lint publish' -a lint -d 'Run linting on the schema of the given API ID or local file in the given path. If [api] is not provided we will run the linting on the schema present in the .postman config file'
134
154
  complete -c postman -n '__postman_using_subcommand api lint publish' -a publish -d 'Publish a version of an API for the given apiId. All entities added to the API will be published by default. User can choose which entities to publish by using additional options.'
@@ -216,7 +236,7 @@ complete -c postman -n '__fish_seen_subcommand_from performance' -s h -l help -d
216
236
  complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -s e -l environment -d 'Specify an Id to a Postman Environment' -x
217
237
  complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -s g -l globals -d 'Specify an Id to a Postman Globals' -x
218
238
  complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -l vu-count -d 'Number of virtual users (default: 20)' -x
219
- complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -s d -l duration -d 'Duration of the performance test in minutes (default: 10)' -x
239
+ complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -s d -l duration -d 'Duration of the performance test in minutes (default: 1)' -x
220
240
  complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -s p -l load-profile -d 'Load profile type: fixed, ramp-up, spike, peak (default: "ramp-up")' -x
221
241
  complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -l data-file -d 'Path to a JSON or CSV data file to use with the collection' -r
222
242
  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
@@ -367,7 +387,7 @@ complete -c postman -n '__fish_seen_subcommand_from sdk' -s h -l help -d 'displa
367
387
  complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcommand_from init' -s y -l yes -d 'Skip prompts and overwrite existing sdk config'
368
388
  complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcommand_from init' -s h -l help -d 'display help for command'
369
389
  # ---------- sdk generate ----------
370
- complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcommand_from generate' -s l -l language -d 'Target language(s) for SDK generation. Specify one or more languages. [choices: "typescript", "python", "java", "go", "csharp", "php", "ruby", "cli", "kotlin", "rust"]' -x
390
+ complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcommand_from generate' -s l -l language -d 'Target language(s) for SDK generation. Specify one or more languages. [choices: "typescript", "python", "java", "go", "csharp", "php", "ruby", "cli", "kotlin", "rust", "swift"]' -x
371
391
  complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcommand_from generate' -l all -d 'Generate SDKs for all supported languages'
372
392
  complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcommand_from generate' -s o -l output-dir -d 'Directory where the generated SDK will be saved (default: "./sdks")' -x
373
393
  complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcommand_from generate' -l name -d 'Name for the generated SDK package' -x
@@ -383,7 +403,7 @@ complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcomm
383
403
  complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcommand_from generate' -l no-emit -d 'Skip downloading and saving SDK artifacts to disk. Useful in CI when the build only needs to trigger server-side pull requests.'
384
404
  complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcommand_from generate' -s h -l help -d 'display help for command'
385
405
  # ---------- sdk track ----------
386
- complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcommand_from track' -s l -l language -d 'Language(s) to track. [choices: "typescript", "python", "java", "go", "csharp", "php", "ruby", "cli", "kotlin", "rust"]' -x
406
+ complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcommand_from track' -s l -l language -d 'Language(s) to track. [choices: "typescript", "python", "java", "go", "csharp", "php", "ruby", "cli", "kotlin", "rust", "swift"]' -x
387
407
  complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcommand_from track' -s o -l output-dir -d 'Base directory containing generated SDKs (default: "./sdks")' -x
388
408
  complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcommand_from track' -s h -l help -d 'display help for command'
389
409
  # ---------- sdk list ----------
@@ -399,7 +419,7 @@ complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcomm
399
419
  complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcommand_from fetch' -l log-level -d 'Set build log detail level. "warn" (default) shows errors/warnings inline and collapses info notes; "info" expands all log entries (default: "warn")' -x
400
420
  complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcommand_from fetch' -s h -l help -d 'display help for command'
401
421
  # ---------- sdk connect ----------
402
- complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcommand_from connect' -s l -l language -d 'SDK language (required) [choices: typescript, python, java, go, csharp, php, ruby, cli, kotlin, rust]' -x
422
+ complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcommand_from connect' -s l -l language -d 'SDK language (required) [choices: typescript, python, java, go, csharp, php, ruby, cli, kotlin, rust, swift]' -x
403
423
  complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcommand_from connect' -s r -l repo -d 'GitHub repository in <owner>/<name> form (alternative to --repo-owner + --repo-name)' -x
404
424
  complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcommand_from connect' -l repo-owner -d 'GitHub repository owner (user or org)' -x
405
425
  complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcommand_from connect' -l repo-name -d 'GitHub repository name' -x
@@ -426,7 +446,7 @@ complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcomm
426
446
  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'
427
447
 
428
448
  # ---------- mock ----------
429
- complete -c postman -n '__postman_using_subcommand mock run' -a run -d 'Start a local mock server given a manifest file.'
449
+ complete -c postman -n '__postman_using_subcommand mock run' -a run -d 'Start a local mock server given a manifest file (JSON or YAML).'
430
450
  complete -c postman -n '__fish_seen_subcommand_from mock' -s h -l help -d 'display help for command'
431
451
  # ---------- mock run ----------
432
452
  complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from run' -s e -l environment -d 'Path to an environment file (JSON or YAML) for pm.environment' -r
@@ -523,13 +543,14 @@ complete -c postman -n '__fish_seen_subcommand_from context; and __fish_seen_sub
523
543
  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'
524
544
 
525
545
  # ---------- search ----------
526
- complete -c postman -n '__postman_using_subcommand search requests collections workspaces flows specs mocks environments' -a requests -d 'Search for requests by name or keyword.'
527
- complete -c postman -n '__postman_using_subcommand search requests collections workspaces flows specs mocks environments' -a collections -d 'Search for collections by name or keyword.'
528
- complete -c postman -n '__postman_using_subcommand search requests collections workspaces flows specs mocks environments' -a workspaces -d 'Search for workspaces by name or keyword.'
529
- complete -c postman -n '__postman_using_subcommand search requests collections workspaces flows specs mocks environments' -a flows -d 'Search for flows by name or keyword.'
530
- complete -c postman -n '__postman_using_subcommand search requests collections workspaces flows specs mocks environments' -a specs -d 'Search for API specs by name or keyword.'
531
- complete -c postman -n '__postman_using_subcommand search requests collections workspaces flows specs mocks environments' -a mocks -d 'Search for mocks by name or keyword.'
532
- complete -c postman -n '__postman_using_subcommand search requests collections workspaces flows specs mocks environments' -a environments -d 'Search for environments by name or keyword.'
546
+ 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.'
547
+ 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.'
548
+ complete -c postman -n '__postman_using_subcommand search requests collections workspaces flows specs mocks environments documents' -a workspaces -d 'Search for workspaces by name or keyword.'
549
+ complete -c postman -n '__postman_using_subcommand search requests collections workspaces flows specs mocks environments documents' -a flows -d 'Search for flows by name or keyword.'
550
+ complete -c postman -n '__postman_using_subcommand search requests collections workspaces flows specs mocks environments documents' -a specs -d 'Search for API specs by name or keyword.'
551
+ complete -c postman -n '__postman_using_subcommand search requests collections workspaces flows specs mocks environments documents' -a mocks -d 'Search for mocks by name or keyword.'
552
+ complete -c postman -n '__postman_using_subcommand search requests collections workspaces flows specs mocks environments documents' -a environments -d 'Search for environments by name or keyword.'
553
+ complete -c postman -n '__postman_using_subcommand search requests collections workspaces flows specs mocks environments documents' -a documents -d 'Search for documents by name or keyword.'
533
554
  complete -c postman -n '__fish_seen_subcommand_from search' -l ownership -d 'Ownership: organization (or org), external, all (default: "organization")' -x
534
555
  complete -c postman -n '__fish_seen_subcommand_from search' -s n -l limit -d 'Max results per page. Max allowed limit: 25 (default: 10)' -x
535
556
  complete -c postman -n '__fish_seen_subcommand_from search' -l cursor -d 'Cursor for pagination' -x
@@ -551,6 +572,8 @@ complete -c postman -n '__fish_seen_subcommand_from search; and __fish_seen_subc
551
572
  complete -c postman -n '__fish_seen_subcommand_from search; and __fish_seen_subcommand_from mocks' -s h -l help -d 'display help for command'
552
573
  # ---------- search environments ----------
553
574
  complete -c postman -n '__fish_seen_subcommand_from search; and __fish_seen_subcommand_from environments' -s h -l help -d 'display help for command'
575
+ # ---------- search documents ----------
576
+ complete -c postman -n '__fish_seen_subcommand_from search; and __fish_seen_subcommand_from documents' -s h -l help -d 'display help for command'
554
577
 
555
578
  # ---------- webhook ----------
556
579
  complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests forward' -a create -d 'Create a new webhook and print its public URL.'
@@ -1,6 +1,6 @@
1
1
  #compdef postman
2
2
  compdef _postman postman
3
- # Zsh completion for Postman CLI (postman v1.45.0)
3
+ # Zsh completion for Postman CLI (postman v1.46.1)
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
@@ -23,6 +23,8 @@ _postman() {
23
23
  login) _postman_login ;;
24
24
  logout) _postman_logout ;;
25
25
  collection) _postman_collection ;;
26
+ environment) _postman_environment ;;
27
+ globals) _postman_globals ;;
26
28
  api) _postman_api ;;
27
29
  runner) _postman_runner ;;
28
30
  spec) _postman_spec ;;
@@ -50,6 +52,8 @@ _postman_commands() {
50
52
  'login:Authenticate with Postman to access your resources.'
51
53
  'logout:Delete the stored Postman API key.'
52
54
  'collection:Run and test your Postman collections directly from the command line.'
55
+ 'environment:Work with local Postman environments from the command line.'
56
+ 'globals:Work with local Postman globals from the command line.'
53
57
  'api:Publish and test your APIs directly from the command line'
54
58
  'runner:Run runners on your own environments for monitoring your APIs'
55
59
  'spec:Lint and validate Specifications from the command line'
@@ -179,7 +183,7 @@ _postman_collection_run() {
179
183
  '--cookie-jar[Specify the path to a custom cookie jar (serialized tough-cookie JSON)]:path:_files -g "*.json"' \
180
184
  '--export-cookie-jar[Exports the cookie jar to a file after completing the run]:path:_files -g "*.json"' \
181
185
  '--verbose[Show detailed information of collection run and each request sent]' \
182
- '--mock[Start a mock server from manifest (.json) file]:path:_files -g "*.json"' \
186
+ '--mock[Start a mock server from manifest (.json, .yaml or .yml) file]:path:_files -g "*.json"' \
183
187
  '--simulate[Start mock servers with fault-injection scenarios from a .sim.yaml file]:path:_files -g "*.(sim.yaml|yaml|yml)"' \
184
188
  '--report-events[Send run results and analytics to Postman]' \
185
189
  '(-h --help)'{-h,--help}'[display help for command]' \
@@ -197,6 +201,70 @@ _postman_collection_run() {
197
201
  '*:collectionId/Path:_files -g "*.json"'
198
202
  }
199
203
 
204
+ _postman_environment() {
205
+ local context state state_descr line
206
+ typeset -A opt_args
207
+ _arguments -C \
208
+ '(-h --help)'{-h,--help}'[display help for command]' \
209
+ '1: :_postman_environment_commands' \
210
+ '*::arg:->args'
211
+ case $state in
212
+ args)
213
+ case $words[1] in
214
+ lint) _postman_environment_lint ;;
215
+ esac
216
+ ;;
217
+ esac
218
+ }
219
+
220
+ _postman_environment_commands() {
221
+ local -a sub
222
+ sub=(
223
+ 'lint:Run linting on a local Postman environment at the given file or directory path.'
224
+ )
225
+ _describe -t commands 'environment command' sub
226
+ }
227
+
228
+ _postman_environment_lint() {
229
+ _arguments \
230
+ '(-f --fail-severity)'{-f,--fail-severity}'[Exit with failure if diagnostics at this level or above are present. \[choices\: "error", "warning"\] (default\: "error")]:value' \
231
+ '(-o --output)'{-o,--output}'[Output format\: cli (human-readable), table, json, or csv. (default\: "cli")]:value' \
232
+ '(-h --help)'{-h,--help}'[display help for command]' \
233
+ '*:path:_files -g "*.json"'
234
+ }
235
+
236
+ _postman_globals() {
237
+ local context state state_descr line
238
+ typeset -A opt_args
239
+ _arguments -C \
240
+ '(-h --help)'{-h,--help}'[display help for command]' \
241
+ '1: :_postman_globals_commands' \
242
+ '*::arg:->args'
243
+ case $state in
244
+ args)
245
+ case $words[1] in
246
+ lint) _postman_globals_lint ;;
247
+ esac
248
+ ;;
249
+ esac
250
+ }
251
+
252
+ _postman_globals_commands() {
253
+ local -a sub
254
+ sub=(
255
+ 'lint:Run linting on a local Postman globals file at the given file or directory path.'
256
+ )
257
+ _describe -t commands 'globals command' sub
258
+ }
259
+
260
+ _postman_globals_lint() {
261
+ _arguments \
262
+ '(-f --fail-severity)'{-f,--fail-severity}'[Exit with failure if diagnostics at this level or above are present. \[choices\: "error", "warning"\] (default\: "error")]:value' \
263
+ '(-o --output)'{-o,--output}'[Output format\: cli (human-readable), table, json, or csv. (default\: "cli")]:value' \
264
+ '(-h --help)'{-h,--help}'[display help for command]' \
265
+ '*:path:_files -g "*.json"'
266
+ }
267
+
200
268
  _postman_api() {
201
269
  local context state state_descr line
202
270
  typeset -A opt_args
@@ -442,7 +510,7 @@ _postman_performance_run() {
442
510
  '(-e --environment)'{-e,--environment}'[Specify an Id to a Postman Environment]:id' \
443
511
  '(-g --globals)'{-g,--globals}'[Specify an Id to a Postman Globals]:id' \
444
512
  '--vu-count[Number of virtual users (default\: 20)]:count' \
445
- '(-d --duration)'{-d,--duration}'[Duration of the performance test in minutes (default\: 10)]:minutes' \
513
+ '(-d --duration)'{-d,--duration}'[Duration of the performance test in minutes (default\: 1)]:minutes' \
446
514
  '(-p --load-profile)'{-p,--load-profile}'[Load profile type\: fixed, ramp-up, spike, peak (default\: "ramp-up")]:profile' \
447
515
  '--data-file[Path to a JSON or CSV data file to use with the collection]:path:_files -g "*.json"' \
448
516
  '--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' \
@@ -678,7 +746,7 @@ _postman_sdk_init() {
678
746
 
679
747
  _postman_sdk_generate() {
680
748
  _arguments \
681
- '(-l --language)'{-l,--language}'[Target language(s) for SDK generation. Specify one or more languages. \[choices\: "typescript", "python", "java", "go", "csharp", "php", "ruby", "cli", "kotlin", "rust"\]]:languages...' \
749
+ '(-l --language)'{-l,--language}'[Target language(s) for SDK generation. Specify one or more languages. \[choices\: "typescript", "python", "java", "go", "csharp", "php", "ruby", "cli", "kotlin", "rust", "swift"\]]:languages...' \
682
750
  '--all[Generate SDKs for all supported languages]' \
683
751
  '(-o --output-dir)'{-o,--output-dir}'[Directory where the generated SDK will be saved (default\: "./sdks")]:path:_files -/' \
684
752
  '--name[Name for the generated SDK package]:name' \
@@ -698,7 +766,7 @@ _postman_sdk_generate() {
698
766
 
699
767
  _postman_sdk_track() {
700
768
  _arguments \
701
- '(-l --language)'{-l,--language}'[Language(s) to track. \[choices\: "typescript", "python", "java", "go", "csharp", "php", "ruby", "cli", "kotlin", "rust"\]]:languages...' \
769
+ '(-l --language)'{-l,--language}'[Language(s) to track. \[choices\: "typescript", "python", "java", "go", "csharp", "php", "ruby", "cli", "kotlin", "rust", "swift"\]]:languages...' \
702
770
  '(-o --output-dir)'{-o,--output-dir}'[Base directory containing generated SDKs (default\: "./sdks")]:path:_files -/' \
703
771
  '(-h --help)'{-h,--help}'[display help for command]'
704
772
  }
@@ -725,7 +793,7 @@ _postman_sdk_fetch() {
725
793
 
726
794
  _postman_sdk_connect() {
727
795
  _arguments \
728
- '(-l --language)'{-l,--language}'[SDK language (required) \[choices\: typescript, python, java, go, csharp, php, ruby, cli, kotlin, rust\]]:language' \
796
+ '(-l --language)'{-l,--language}'[SDK language (required) \[choices\: typescript, python, java, go, csharp, php, ruby, cli, kotlin, rust, swift\]]:language' \
729
797
  '(-r --repo)'{-r,--repo}'[GitHub repository in <owner>/<name> form (alternative to --repo-owner + --repo-name)]:owner/name' \
730
798
  '--repo-owner[GitHub repository owner (user or org)]:owner' \
731
799
  '--repo-name[GitHub repository name]:name' \
@@ -802,7 +870,7 @@ _postman_mock() {
802
870
  _postman_mock_commands() {
803
871
  local -a sub
804
872
  sub=(
805
- 'run:Start a local mock server given a manifest file.'
873
+ 'run:Start a local mock server given a manifest file (JSON or YAML).'
806
874
  )
807
875
  _describe -t commands 'mock command' sub
808
876
  }
@@ -1155,6 +1223,7 @@ _postman_search() {
1155
1223
  specs) _postman_search_specs ;;
1156
1224
  mocks) _postman_search_mocks ;;
1157
1225
  environments) _postman_search_environments ;;
1226
+ documents) _postman_search_documents ;;
1158
1227
  esac
1159
1228
  ;;
1160
1229
  esac
@@ -1170,6 +1239,7 @@ _postman_search_commands() {
1170
1239
  'specs:Search for API specs by name or keyword.'
1171
1240
  'mocks:Search for mocks by name or keyword.'
1172
1241
  'environments:Search for environments by name or keyword.'
1242
+ 'documents:Search for documents by name or keyword.'
1173
1243
  )
1174
1244
  _describe -t commands 'search command' sub
1175
1245
  }
@@ -1216,6 +1286,12 @@ _postman_search_environments() {
1216
1286
  '*:query:'
1217
1287
  }
1218
1288
 
1289
+ _postman_search_documents() {
1290
+ _arguments \
1291
+ '(-h --help)'{-h,--help}'[display help for command]' \
1292
+ '*:query:'
1293
+ }
1294
+
1219
1295
  _postman_webhook() {
1220
1296
  local context state state_descr line
1221
1297
  typeset -A opt_args
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postman-cli-completion",
3
- "version": "1.45.0",
3
+ "version": "1.46.1",
4
4
  "description": "Shell completions for the Postman CLI (zsh, bash, fish)",
5
5
  "type": "module",
6
6
  "bin": {