postman-cli-completion 1.47.2 → 1.48.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.47.2)
1
+ # Bash completion for Postman CLI (postman v1.48.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
@@ -382,7 +382,7 @@ _postman_workspace() {
382
382
  if [[ "$cur" == -* ]]; then
383
383
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
384
384
  else
385
- COMPREPLY=( $(compgen -W "list prepare push" -- "$cur") )
385
+ COMPREPLY=( $(compgen -W "list prepare push lint" -- "$cur") )
386
386
  fi
387
387
  return 0
388
388
  fi
@@ -390,6 +390,7 @@ _postman_workspace() {
390
390
  list) _postman_workspace_list ;;
391
391
  prepare) _postman_workspace_prepare ;;
392
392
  push) _postman_workspace_push ;;
393
+ lint) _postman_workspace_lint ;;
393
394
  esac
394
395
  }
395
396
 
@@ -418,6 +419,15 @@ _postman_workspace_push() {
418
419
  esac
419
420
  }
420
421
 
422
+ _postman_workspace_lint() {
423
+ if [[ "$cur" == -* ]]; then
424
+ COMPREPLY=( $(compgen -W "-f --fail-severity -o --output --meta --workspace-id -h --help" -- "$cur") )
425
+ return 0
426
+ fi
427
+ case "$prev" in
428
+ esac
429
+ }
430
+
421
431
  _postman_performance() {
422
432
  if [[ -z "$subcmd" ]]; then
423
433
  if [[ "$cur" == -* ]]; then
@@ -758,7 +768,7 @@ _postman_application_init() {
758
768
 
759
769
  _postman_application_test() {
760
770
  if [[ "$cur" == -* ]]; then
761
- COMPREPLY=( $(compgen -W "--target --target-collection --target-environment --command --network-log --capture-only --output --force --report-events --verbose -h --help" -- "$cur") )
771
+ COMPREPLY=( $(compgen -W "--target --target-collection --target-environment --command --deployed-version --network-log --capture-only --output --force --report-events --verbose -h --help" -- "$cur") )
762
772
  return 0
763
773
  fi
764
774
  case "$prev" in
@@ -1,4 +1,4 @@
1
- # Fish completion for Postman CLI (postman v1.47.2)
1
+ # Fish completion for Postman CLI (postman v1.48.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
@@ -208,9 +208,10 @@ complete -c postman -n '__fish_seen_subcommand_from monitor; and __fish_seen_sub
208
208
  complete -c postman -n '__fish_seen_subcommand_from monitor; and __fish_seen_subcommand_from run' -s h -l help -d 'display help for command'
209
209
 
210
210
  # ---------- workspace ----------
211
- complete -c postman -n '__postman_using_subcommand workspace list prepare push' -a list -d 'List all available Postman Workspaces'
212
- complete -c postman -n '__postman_using_subcommand workspace list prepare push' -a prepare -d 'Prepare local collections and environments for push by validating and regenerating IDs if needed.'
213
- complete -c postman -n '__postman_using_subcommand workspace list prepare push' -a push -d 'Push local workspace entities (collections, environments, specifications, and more) to Postman workspace.'
211
+ complete -c postman -n '__postman_using_subcommand workspace list prepare push lint' -a list -d 'List all available Postman Workspaces'
212
+ complete -c postman -n '__postman_using_subcommand workspace list prepare push lint' -a prepare -d 'Prepare local collections and environments for push by validating and regenerating IDs if needed.'
213
+ complete -c postman -n '__postman_using_subcommand workspace list prepare push lint' -a push -d 'Push local workspace entities (collections, environments, specifications, and more) to Postman workspace.'
214
+ complete -c postman -n '__postman_using_subcommand workspace list prepare push lint' -a lint -d 'Lint the current local Postman workspace: its configuration (.postman/resources.yaml) plus every discovered entity. Use --meta to lint only the configuration.'
214
215
  complete -c postman -n '__fish_seen_subcommand_from workspace' -s h -l help -d 'display help for command'
215
216
  # ---------- workspace list ----------
216
217
  complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from list' -s f -l filter -d 'Filter workspaces by name.' -x
@@ -229,6 +230,12 @@ complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_s
229
230
  complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from push' -l verbose -d 'Show detailed logging'
230
231
  complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from push' -l report-events -d 'Send workspace push events to Postman'
231
232
  complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from push' -s h -l help -d 'display help for command'
233
+ # ---------- workspace lint ----------
234
+ complete -c postman -n '__fish_seen_subcommand_from workspace; 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", "info", "hint"] (default: "error")' -x
235
+ complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from lint' -s o -l output -d 'Output format: cli (human-readable), table, or json. (default: "cli")' -x
236
+ complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from lint' -l meta -d 'Only lint the workspace configuration (.postman/resources.yaml); skip per-entity linting.'
237
+ complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from lint' -l workspace-id -d 'The workspace ID to use for fetching governance rulesets. Defaults to the id in .postman/resources.yaml.' -x
238
+ complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from lint' -s h -l help -d 'display help for command'
232
239
 
233
240
  # ---------- performance ----------
234
241
  complete -c postman -n '__postman_using_subcommand performance run' -a run -d 'Run a performance test on a collection'
@@ -481,6 +488,7 @@ complete -c postman -n '__fish_seen_subcommand_from application; and __fish_seen
481
488
  complete -c postman -n '__fish_seen_subcommand_from application; and __fish_seen_subcommand_from test' -l target-collection -d 'Collection override for the selected target (repeatable) (default: [])' -r
482
489
  complete -c postman -n '__fish_seen_subcommand_from application; and __fish_seen_subcommand_from test' -l target-environment -d 'Environment override for the selected target (last value wins) (default: [])' -r
483
490
  complete -c postman -n '__fish_seen_subcommand_from application; and __fish_seen_subcommand_from test' -l command -d 'Command to run first (primary task). Overrides config.' -x
491
+ complete -c postman -n '__fish_seen_subcommand_from application; and __fish_seen_subcommand_from test' -l deployed-version -d 'Version identity of the application under test (e.g. a build ID, release tag, or version string). Also read from the APP_DEPLOYED_VERSION environment variable.' -x
484
492
  complete -c postman -n '__fish_seen_subcommand_from application; and __fish_seen_subcommand_from test' -l network-log -d 'Directory to scan for captured artifacts, or a direct path to a Playwright JSON report / NDJSON capture file. When a directory is given, recursively discovers `*.json` Playwright reports plus their `trace.zip` attachments, and `network-capture-*.ndjson` at the top level. By default, scans Playwright config `outputDir`, test-results/, then pm-results/.' -r
485
493
  complete -c postman -n '__fish_seen_subcommand_from application; and __fish_seen_subcommand_from test' -l capture-only -d 'Skip collection matching and tests; capture traffic and save a V3 collection organised by host'
486
494
  complete -c postman -n '__fish_seen_subcommand_from application; and __fish_seen_subcommand_from test' -l output -d 'Output directory for captured collection (default: pm-results/captured/; used with --capture-only)' -r
@@ -1,6 +1,6 @@
1
1
  #compdef postman
2
2
  compdef _postman postman
3
- # Zsh completion for Postman CLI (postman v1.47.2)
3
+ # Zsh completion for Postman CLI (postman v1.48.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
@@ -441,6 +441,7 @@ _postman_workspace() {
441
441
  list) _postman_workspace_list ;;
442
442
  prepare) _postman_workspace_prepare ;;
443
443
  push) _postman_workspace_push ;;
444
+ lint) _postman_workspace_lint ;;
444
445
  esac
445
446
  ;;
446
447
  esac
@@ -452,6 +453,7 @@ _postman_workspace_commands() {
452
453
  'list:List all available Postman Workspaces'
453
454
  'prepare:Prepare local collections and environments for push by validating and regenerating IDs if needed.'
454
455
  'push:Push local workspace entities (collections, environments, specifications, and more) to Postman workspace.'
456
+ 'lint:Lint the current local Postman workspace\: its configuration (.postman/resources.yaml) plus every discovered entity. Use --meta to lint only the configuration.'
455
457
  )
456
458
  _describe -t commands 'workspace command' sub
457
459
  }
@@ -482,6 +484,15 @@ _postman_workspace_push() {
482
484
  '(-h --help)'{-h,--help}'[display help for command]'
483
485
  }
484
486
 
487
+ _postman_workspace_lint() {
488
+ _arguments \
489
+ '(-f --fail-severity)'{-f,--fail-severity}'[Exit with failure if diagnostics at this level or above are present. \[choices\: "error", "warning", "info", "hint"\] (default\: "error")]:value' \
490
+ '(-o --output)'{-o,--output}'[Output format\: cli (human-readable), table, or json. (default\: "cli")]:value' \
491
+ '--meta[Only lint the workspace configuration (.postman/resources.yaml); skip per-entity linting.]' \
492
+ '--workspace-id[The workspace ID to use for fetching governance rulesets. Defaults to the id in .postman/resources.yaml.]:value' \
493
+ '(-h --help)'{-h,--help}'[display help for command]'
494
+ }
495
+
485
496
  _postman_performance() {
486
497
  local context state state_descr line
487
498
  typeset -A opt_args
@@ -942,6 +953,7 @@ _postman_application_test() {
942
953
  '--target-collection[Collection override for the selected target (repeatable) (default\: \[\])]:path:_files -g "*.json"' \
943
954
  '--target-environment[Environment override for the selected target (last value wins) (default\: \[\])]:path:_files -g "*.json"' \
944
955
  '--command[Command to run first (primary task). Overrides config.]:cmd' \
956
+ '--deployed-version[Version identity of the application under test (e.g. a build ID, release tag, or version string). Also read from the APP_DEPLOYED_VERSION environment variable.]:version' \
945
957
  '--network-log[Directory to scan for captured artifacts, or a direct path to a Playwright JSON report / NDJSON capture file. When a directory is given, recursively discovers `*.json` Playwright reports plus their `trace.zip` attachments, and `network-capture-*.ndjson` at the top level. By default, scans Playwright config `outputDir`, test-results/, then pm-results/.]:path:_files -g "*.json"' \
946
958
  '--capture-only[Skip collection matching and tests; capture traffic and save a V3 collection organised by host]' \
947
959
  '--output[Output directory for captured collection (default\: pm-results/captured/; used with --capture-only)]:path:_files -g "*.json"' \
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postman-cli-completion",
3
- "version": "1.47.2",
3
+ "version": "1.48.0",
4
4
  "description": "Shell completions for the Postman CLI (zsh, bash, fish)",
5
5
  "type": "module",
6
6
  "bin": {